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 / throwing weapons?

Author
Message
Replay the Master of Time
15
Years of Service
User Offline
Joined: 15th Dec 2008
Location: Everywhere at every given time
Posted: 12th May 2009 13:54
is there a way to throw the weapon currently being held like in counter strike? if so how do i use ammo pooling in ply's mod to keep ammo same for when picked up again?

Silver Eye Productions
User Banned
Posted: 12th May 2009 14:28 Edited at: 12th May 2009 14:35
Like i said in the "story" post you made...


Quote: "You could script this, i think."


SEP

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 13th May 2009 07:16
Well, with the newest beta of Ply's Mod, we have the fix that Lee put in to allow the "plrdrop" command to work, so if the weapon was picked up in the same level, you could script it to be dropped when the player presses a certain key.

To keep ammo the same when you pick it back up, you may need to have the initial weapon pickup have 0 ammo, and the player gets ammo a different way.
In another way, you could alter the script so that the FIRST time the player picks it up, it gives them ammo by altering the ammo pool variable that you gave to the weapon. Subsequent times it is picked up will not give the player ammo. (For this one you will also need to set the weapon pickup's "ammo" or "clip amount" to 0 on the entity so that the ammo given is specified by the script)


The one and only,


Replay the Master of Time
15
Years of Service
User Offline
Joined: 15th Dec 2008
Location: Everywhere at every given time
Posted: 13th May 2009 11:28 Edited at: 13th May 2009 11:29
cool thanks
and could you tell me how to use ammo pooling as this is one thing i've wanted to know for a while

btw the beta of v109, how long do you think before it will be finished?

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 13th May 2009 19:09
Ammo Pooling:

Opent he gunspec.txt file for the weapon you are wanting to implement ammo pooling for.

Add the following line to the bottom of the gunspec:


Replace "[Variable]" with the name of the variable you want to use for the ammo pooling.

Now, use that same variable in the gunspec.txt files for the other weapons that you want to be a part of that ammo pool.



The beta will be finished as soon as I can get the last feature working and properly tested.


The one and only,


Replay the Master of Time
15
Years of Service
User Offline
Joined: 15th Dec 2008
Location: Everywhere at every given time
Posted: 14th May 2009 01:18
cool thanks

ive already got v108 but i can't wait for v109

xX TOXIC Xx
15
Years of Service
User Offline
Joined: 13th May 2009
Location: cyberspace
Posted: 14th May 2009 02:40
thx cheers to Plystire you are AWSOME WOOT!!

If you saw what was to be seen then you wouldent look.- xX TOXIC Xx

Login to post a reply

Server time is: 2024-11-25 01:46:33
Your offset time is: 2024-11-25 01:46:33