Raised This Month: $ Target: $400
 0% 

max speed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GhostMan
Senior Member
Join Date: Jun 2012
Old 02-05-2013 , 08:49   max speed
Reply With Quote #1

set_user_maxspeed should be used in
PHP Code:
RegisterHam(Ham_Item_PreFrame"player""FwdPreFrame_Post"1
Or

PHP Code:
register_event("CurWeapon""HookCurWeapon""be""1=1"
In both functions it works, but which one is better to use?

Last edited by GhostMan; 02-05-2013 at 08:50.
GhostMan is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 02-05-2013 , 10:00   Re: max speed
Reply With Quote #2

id prefer CurWeapon since it allows you to save cpu storage.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Kiske
Veteran Member
Join Date: May 2009
Old 02-05-2013 , 11:08   Re: max speed
Reply With Quote #3

I think ItemPreFrame is better.
__________________

Kiske is offline
Send a message via Skype™ to Kiske
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-05-2013 , 11:16   Re: max speed
Reply With Quote #4

Quote:
Originally Posted by Napoleon_be View Post
id prefer CurWeapon since it allows you to save cpu storage.
You miss the point that ItemPostFrame() with "player" is equivalent to ResetMaxSpeed() because using the same offset.
ResetMaxSpeed is a virtual function which is not included with the current Ham version. It's in the unofficial version though.

So, the answer is the first, since you will modify onyl maxspeed when needs.
__________________

Last edited by Arkshine; 02-05-2013 at 11:17.
Arkshine is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 02-05-2013 , 12:17   Re: max speed
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
You miss the point that ItemPostFrame() with "player" is equivalent to ResetMaxSpeed() because using the same offset.
ResetMaxSpeed is a virtual function which is not included with the current Ham version. It's in the unofficial version though.

So, the answer is the first, since you will modify onyl maxspeed when needs.
Mhh okay didn't know that
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Old 02-06-2013, 21:23
n0br41ner
This message has been deleted by n0br41ner. Reason: nvm
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 20:40.


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