AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Adding speed! (https://forums.alliedmods.net/showthread.php?t=162452)

olari9 07-19-2011 06:27

Adding speed!
 
Hi, i wanted to ask wich native is best for adding speed for specified class? Thanks!

drekes 07-19-2011 06:59

Re: Adding speed!
 
set_user_maxspeed()

You may also want to read this thread: http://forums.alliedmods.net/showthread.php?t=94331

olari9 07-19-2011 07:15

Re: Adding speed!
 
Thank you! I dont want to creat anather thread so il ask here, how to add gravity to specified class?

drekes 07-19-2011 08:20

Re: Adding speed!
 
set_user_gravity()

olari9 07-19-2011 17:59

Re: Adding speed!
 
Ty again! BTW the set_user_maxspeed wont work for some reason!

fysiks 07-19-2011 18:01

Re: Adding speed!
 
Quote:

Originally Posted by olari9 (Post 1514153)
Ty again! BTW the set_user_maxspeed wont work for some reason!

Because speed is reset on the current weapon message (everytime your weapon changes in you hand IIRC). Search how to do it.

Search for "CurWeapon speed" in just the scripting help forum.

Honors 07-20-2011 04:40

Re: Adding speed!
 
You should hook Ham_Item_PreFrame.

olari9 08-15-2011 17:54

Re: Adding speed!
 
fysiks, i only have the knife for my classes.

APPLESAUCE 08-15-2011 18:47

Re: Adding speed!
 
How are you using the set_user_maxspeed() and set_user_gravity() natives? Show us the code.

drekes 08-15-2011 19:07

Re: Adding speed!
 
They are both links.
Click on them to get a description.


All times are GMT -4. The time now is 00:48.

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