Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Drop/switch weapon or inventory system

Author
Message
Alexb1096
7
Years of Service
User Offline
Joined: 3rd Dec 2016
Location:
Posted: 11th Jan 2018 16:28
Hi, i'm looking for a script to switch weapons (or only drop weapons).
I found a script to remove a specific weapon in a specific place, but i need a more flexible script.
I'd like to see the dropped weapon on the floor.

Years ago i found also this script but it doesn't work.
;Artificial Intelligence Script

;Header

desc = Weapon Pickup (can drop = delete key)

;Triggers

:scancodekeypressed=53:plrsound=$1,playerdropcurrent

:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupaweapon.tga,hudname=weaponprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40:state=1,playertake,coloff,rundecal=-1,plrsound=audiobank\items\pickupweapon.wav,hudshow=weaponprompt,hudfadeout=weaponprompt
;state=2:state=3,playerdrop,colon,plrsound=audiobank\items\pickup.wav
:state=3,plrdistfurther=65:state=0

;End of Script



I tried also a script with a HUD (opened with H to select the weapon to drop) but it doesn't work...


I have FPSC X9 1.20 beta 18 with Black Ice Mod
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 12th Jan 2018 23:47
Alexb1096 So let me get this right, your looking for a script so the player and hit a "key" and drop his current weapon ? Correct?
This script uses the #53 key ( that would be the foreslash key "/" ) to drop players current weapon ( playerdropcurrent )
But the rest of the script is for "picking up" a weapon ???
Quote: "I'd like to see the dropped weapon on the floor"

So before I work this one out let me get this right, you would like the player to "drop" his weapon with a specific key ( which one?)
and then to see the dropped weapon on floor.... and then be able to pickup again if needed, correct
I did something exactly like this a few years ago...
My games never have bugs. They just develop random features..
Lots and lots of random features...

Login to post a reply

Server time is: 2024-11-21 12:58:03
Your offset time is: 2024-11-21 12:58:03