AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Speed after switching weapon (https://forums.alliedmods.net/showthread.php?t=232919)

Monster Truck 01-06-2014 15:20

Speed after switching weapon
 
Hi, i have a new problem.

I have a plugin that gives speed to terror. But when they switch weapons, it takes the normal value (320) but it was 700.

I remember that i need to hook something, but forgot what ... Thanks in advance for any answer

(sorry for english)

mottzi 01-06-2014 15:41

Re: Speed after switching weapon
 
You could hook the CurWeapon-event, or a new, more efficient Hamsandwich-Forward (wich I cant remember atm)

simanovich 01-06-2014 16:09

Re: Speed after switching weapon
 
Quote:

Originally Posted by mottzi (Post 2082149)
You could hook the CurWeapon-event, or a new, more efficient Hamsandwich-Forward (wich I cant remember atm)

CurWeapon is bad idea, ham_item_deploy is better

Strick3n 01-06-2014 16:25

Re: Speed after switching weapon
 
Someone already asked this before, just use the magical search button.

hornet 01-06-2014 18:51

Re: Speed after switching weapon
 
Quote:

Originally Posted by mottzi (Post 2082149)
You could hook the CurWeapon-event, or a new, more efficient Hamsandwich-Forward (wich I cant remember atm)

Quote:

Originally Posted by simanovich (Post 2082162)
CurWeapon is bad idea, ham_item_deploy is better

CurWeapon is only a good method if your trying to detect a certain weapon using registered conditions.
You want Ham_CS_Player_ResetMaxSpeed.

Monster Truck 01-08-2014 02:47

Re: Speed after switching weapon
 
Thanks, i needed the last one and it works really fine. Thanks again.


All times are GMT -4. The time now is 10:13.

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