Weapon's max speed
I've been messing around with fun module's set_user_maxspeed native. Now i'm wondering how do i set it back to the user's max speed (or previous speed)
set_user_maxspeed(id, 0.0) seems to set it to cl_maxspeed, not the original speed. Is there a way for me to get it? I looked over pdata and couldn't find what i'm looking for. (m_flGroundSpeed was't correct) Any ideas? |
Re: Weapon's max speed
https://forums.alliedmods.net/showthread.php?t=94331
Sorry if I missunderstood what you are trying to do. |
Re: Weapon's max speed
I think you should use hamsandwich for this
Code:
|
Re: Weapon's max speed
Quote:
But it did give me insparation to look back and i think i found this.... #define m_flWeaponSpeed 58 // used for guns to restore after shield Not sure if ti will work or not....I'll test and report back. Quote:
UPDATE: it seems that all of these are just giving 0.00000 back. This is my current code (using the ham function) Code:
// slow victim's speedI've also tried Code:
new Float:pdataSpeed = get_pdata(victimID, m_flWeaponSpeed, linux) |
Re: Weapon's max speed
Reset speed :
ExecuteHamB(Ham_CS_Player_ResetMaxspeed, id) |
| All times are GMT -4. The time now is 05:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.