Raised This Month: $ Target: $400
 0% 

Friction?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 12-20-2005 , 09:27   Friction?
Reply With Quote #1

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

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
Batman/Gorlag
Senior Member
Join Date: Aug 2005
Old 12-20-2005 , 11:35  
Reply With Quote #2

Code:
entity_set_float(player, EV_FL_friction, whateverFloatValueHere)  //1.0 being the normal value of friction
__________________
GRR If only the amxmod programming were in Java.....
Java and C used to be two different languages, now Java is turning into another C. My logevent plugin
Batman/Gorlag is offline
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 12-20-2005 , 19:15  
Reply With Quote #3

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

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
SubFive
Senior Member
Join Date: Dec 2005
Location: USA
Old 12-20-2005 , 19:32  
Reply With Quote #4

get_user_button?

Although not all people use the same buttons to strafe. Not sure, sorry.
SubFive is offline
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 12-20-2005 , 20:15  
Reply With Quote #5

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

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
Batman/Gorlag
Senior Member
Join Date: Aug 2005
Old 12-20-2005 , 22:21  
Reply With Quote #6

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.
__________________
GRR If only the amxmod programming were in Java.....
Java and C used to be two different languages, now Java is turning into another C. My logevent plugin
Batman/Gorlag is offline
atomic
Veteran Member
Join Date: Jan 2005
Location: What The Foot?
Old 12-21-2005 , 01:41  
Reply With Quote #7

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



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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