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 / Weapon Swap script help?

Author
Message
0NTRACK
17
Years of Service
User Offline
Joined: 12th Sep 2007
Location:
Posted: 18th Nov 2007 22:31
I am making a script that when the player presses the use key, they will drop the weapon they are currently using, and pick up the one they are looking at.
Here is the current code:


The problem with it is that when I press the use key, I pick up the weapon, but I don't drop the one I'm currently holding!
Please help

ALL WHO OPPOSE ME WILL BE CONSUMED BY FIREY BLACK DEATH!
I also like cookies
0NTRACK
17
Years of Service
User Offline
Joined: 12th Sep 2007
Location:
Posted: 19th Nov 2007 01:04
Hello?! Anyone?!

ALL WHO OPPOSE ME WILL BE CONSUMED BY FIREY BLACK DEATH!
I also like cookies
Fruitless CRUNK
17
Years of Service
User Offline
Joined: 3rd Mar 2007
Location: DRINKING MY HOT COFFEE =:-)
Posted: 19th Nov 2007 02:53
This is more than a script can do. Golbal Varables is what you need, and yes a crap load of scripting. What I would do is give the player a sernt number of gun's. Remember this creator isn't Cryteck.

If you can't win, cheat. If you can't cheat, quite.
Inspire
17
Years of Service
User Offline
Joined: 23rd Dec 2006
Location: Rochester, NY
Posted: 19th Nov 2007 03:38
Quote: "Remember this creator isn't Cryteck"


?

BULLSHOCK 2
Retired Moderator
19
Years of Service
User Offline
Joined: 14th Jun 2005
Location: Shocking Bulls
Posted: 19th Nov 2007 03:54
wont happen.

plrdrop doesn't work. i tried this ages ago and begged for it to be implemented but it never was.

http://www.seqoiagames.com
0NTRACK
17
Years of Service
User Offline
Joined: 12th Sep 2007
Location:
Posted: 19th Nov 2007 07:07 Edited at: 19th Nov 2007 08:41
Awww.... Thanks for your help though guys...

ALL WHO OPPOSE ME WILL BE CONSUMED BY FIREY BLACK DEATH!
I also like cookies
Squelchy Tom
18
Years of Service
User Offline
Joined: 25th Aug 2006
Location:
Posted: 19th Nov 2007 08:25
couldent you make it so the player can only use one gun in the game, but when you pick up a gun it will automatically switch to it.

So in theory you can have 12 guns but only use the one you last picked up, meaning there is no need for a plrdrop.
FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 19th Nov 2007 08:42
You can use the mouse wheel to select a weapon if you have more than 9...at least that's what I have been told.

Please have mercy and use the search function.
Squelchy Tom
18
Years of Service
User Offline
Joined: 25th Aug 2006
Location:
Posted: 19th Nov 2007 08:43
^ guess someone didnt read the first post lolar >_<
FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 19th Nov 2007 16:49
I guess since we already covered the fact that we can't drop a weapon once it's been picked up (again) I was suggesting an alternative of sorts.

Please have mercy and use the search function.
Slayer222
17
Years of Service
User Offline
Joined: 19th Mar 2007
Location: Wherever I feel like
Posted: 19th Nov 2007 17:43
I tried a zone that makes you lose your weapons, it failed miserably. plrdrop is indeed very broken.

EOT
[img][/img]
Check it out here: http://eliteops.piczo.com/?cr=6&rfm=y
Fruitless CRUNK
17
Years of Service
User Offline
Joined: 3rd Mar 2007
Location: DRINKING MY HOT COFFEE =:-)
Posted: 19th Nov 2007 23:31
Yeah my frind tryed this but, he didn't get even close.

If you can't win, cheat. If you can't cheat, quite.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 21st Nov 2007 10:12
Getting the weapon to drop is no problem... getting it to drop when you WANT it to and being able to pick it back up is the tricky bit.


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!

Login to post a reply

Server time is: 2024-11-24 01:31:14
Your offset time is: 2024-11-24 01:31:14