AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Friction? (https://forums.alliedmods.net/showthread.php?t=22164)

mysticssjgoku4 12-20-2005 09:27

Friction?
 
Is there a way to set the friction for one person only? Thanks.

Batman/Gorlag 12-20-2005 11:35

Code:
entity_set_float(player, EV_FL_friction, whateverFloatValueHere)  //1.0 being the normal value of friction

mysticssjgoku4 12-20-2005 19:15

How would I trigger that when a player presses a strafe key?

SubFive 12-20-2005 19:32

get_user_button?

Although not all people use the same buttons to strafe. Not sure, sorry. :?

mysticssjgoku4 12-20-2005 20:15

I think it has to be a foward, but I'm not sure how I'd use it.

Batman/Gorlag 12-20-2005 22:21

Code:
get_user_button(id) & IN_MOVELEFT || get_user_button(id) & IN_MOVERIGHT
This code just tells when the client has pushed the strafe left or strafe right button, so it'll work.

atomic 12-21-2005 01:41

i made a plugin simular to that, its called ice skating wars and it change the frition to everybody on the server


All times are GMT -4. The time now is 15:55.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.