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 / Preventing Running

Author
Message
A r e n a s
16
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 5th May 2009 20:23
Hey does anyone know a command in either the normal FPSC or in Ply's mod which prevents the player from running?
Apple Slicer
16
Years of Service
User Offline
Joined: 14th Nov 2008
Location: Oregon, in the rain...
Posted: 5th May 2009 20:25
Do you mean shift key?

Wizzmod does.

A r e n a s
16
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 5th May 2009 20:34
Ye. A command which renders the shift key useless. And another command which will make it work again. This way you can have an 'energy bar'. Ive written it all but have no command like this/these.
Apple Slicer
16
Years of Service
User Offline
Joined: 14th Nov 2008
Location: Oregon, in the rain...
Posted: 5th May 2009 20:38
There is none.

Only a mod would have it. I dont know if Plys mod has it or not.
A r e n a s
16
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 5th May 2009 20:45
Ok... I hope that ply will reply to this PLY???
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 6th May 2009 02:54
Ply's Mod does not directly do this, but it can be done by combining the "plrspeed" and the "plrusingrun" commands.

Basically, if the player is holding downt he shift key ("plrusingrun=1") then change their speed to something that will feel like a walk, or maybe even slower than a walk if they're fatigued.


The one and only,


A r e n a s
16
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 6th May 2009 18:40
Do you have any idea what the walk speed roughly is so that i have a starting point?
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 7th May 2009 08:43 Edited at: 7th May 2009 08:45
Well, you can't look at it as a "speed" since the speed given to the player is a percentage of a value hard-coded in the engine.

The values for running and walking are 55 and 35.

So, the walking speed is roughly 64% of the running speed. So if the user is trying to run and they shouldn't be, you could change the player's speed to 64 or 63 to make it feel like they aren't really running. When they release the shift key, you gotta change it back to 100, though or they'll be even slower.

[EDIT]

Also of note here, the command "plrusingrun" does not check the shift key directly. It checks the key that is used FOR running. So if you built a game and changed the run key to something else, then the command will still work.


The one and only,


A r e n a s
16
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 7th May 2009 15:27
Thanks i'll start work on that when i get back home I'll post again when ive started the script.

Login to post a reply

Server time is: 2024-11-25 01:35:16
Your offset time is: 2024-11-25 01:35:16