Ham_ResetSpeed
using the following code
PHP Code:
and so every one knows its a post hook. Any ideas why it "resets" before the weapon actually changes?? Also would setting a task be a work around? (Ways to check for rapid switching so not to create 200 set tasks lol) |
Re: Ham_ResetSpeed
Hook CurWeapon instead.
|
Re: Ham_ResetSpeed
Quote:
when i zoom in cur weapon... it resets my speed back to normal instead of what the gun is set to. |
Re: Ham_ResetSpeed
Who told you not to use CurWeapon? What bug?
Well you could hook Ham_Weapon_SecondaryAttack with each weapon that has a zoom function, and set the speed back to what you want? |
Re: Ham_ResetSpeed
Quote:
|
Re: Ham_ResetSpeed
Quote:
as of right now i just removed the weapons part so with my snipers the same speed with all his guns. |
Re: Ham_ResetSpeed
ResetMaxSpeed is called when you switch weapon after you deploy it.
get_user_weapon is not updated yet at this time. It updates when CurWeapon message is sent. So, to get the correct weapon name : - Retrieve your current active weapon with m_pActiveItem offset : weapon = get_pdata_cbase( id, 373 ) - Get the weapon [CSW] Id with the m_iId offset : weaponId = get_pdata_int( weapon, 43, 4 ) - Then, get_weaponname( weaponId, ... ) |
Re: Ham_ResetSpeed
Quote:
Where do you get these offsets from?? |
Re: Ham_ResetSpeed
Quote:
|
Re: Ham_ResetSpeed
Quote:
|
| All times are GMT -4. The time now is 03:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.