Raised This Month: $ Target: $400
 0% 

Ham_ResetSpeed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-09-2011 , 03:41   Re: Ham_ResetSpeed
Reply With Quote #1

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, ... )
__________________

Last edited by Arkshine; 08-09-2011 at 03:45.
Arkshine is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-09-2011 , 06:02   Re: Ham_ResetSpeed
Reply With Quote #2

Quote:
Originally Posted by Arkshine View Post
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, ... )
THANKS.. will give it a shot

Where do you get these offsets from??

Last edited by Doc-Holiday; 08-09-2011 at 06:07.
Doc-Holiday is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 08-09-2011 , 06:24   Re: Ham_ResetSpeed
Reply With Quote #3

Quote:
Originally Posted by Doc-Holiday View Post
THANKS.. will give it a shot

Where do you get these offsets from??
HLDSK i guess.
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-09-2011 , 06:37   Re: Ham_ResetSpeed
Reply With Quote #4

Quote:
Originally Posted by Doc-Holiday View Post
Where do you get these offsets from??
Those offsets have been collected/searched from some years so we all have kind of list on our computers
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 08-09-2011 at 13:58.
ConnorMcLeod is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-09-2011 , 10:05   Re: Ham_ResetSpeed
Reply With Quote #5

Quote:
Originally Posted by Doc-Holiday View Post
Where do you get these offsets from??
Some of them are listed on the AMXX Wiki.

http://wiki.amxmodx.org/Category:CS_Class_List
http://wiki.amxmodx.org/CBasePlayerItem_(CS)
http://wiki.amxmodx.org/CBasePlayer_(CS)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 03:20.


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