Raised This Month: $ Target: $400
 0% 

Speed after switching weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Monster Truck
Member
Join Date: Jan 2012
Location: France
Old 01-06-2014 , 15:20   Speed after switching weapon
Reply With Quote #1

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)
Monster Truck is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 01-06-2014 , 15:41   Re: Speed after switching weapon
Reply With Quote #2

You could hook the CurWeapon-event, or a new, more efficient Hamsandwich-Forward (wich I cant remember atm)
mottzi is offline
Send a message via MSN to mottzi
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 01-06-2014 , 16:09   Re: Speed after switching weapon
Reply With Quote #3

Quote:
Originally Posted by mottzi View Post
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
__________________
simanovich is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 01-06-2014 , 18:51   Re: Speed after switching weapon
Reply With Quote #4

Quote:
Originally Posted by mottzi View Post
You could hook the CurWeapon-event, or a new, more efficient Hamsandwich-Forward (wich I cant remember atm)
Quote:
Originally Posted by simanovich View Post
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.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Monster Truck
Member
Join Date: Jan 2012
Location: France
Old 01-08-2014 , 02:47   Re: Speed after switching weapon
Reply With Quote #5

Thanks, i needed the last one and it works really fine. Thanks again.
Monster Truck is offline
Strick3n
Member
Join Date: Apr 2013
Old 01-06-2014 , 16:25   Re: Speed after switching weapon
Reply With Quote #6

Someone already asked this before, just use the magical search button.
Strick3n 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 10:13.


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