Shouldn't this work for hooking the damage event?
Code:
Shouldn't this add 10 to the damage? It doesn't. edited by SniperBeamer: changed bbcode to [ small ] |
Re: Shouldn't this work for hooking the damage event?
Quote:
|
I thought set_msg_arg_int(2,ARG_BYTE,damage) changes it before the engine receives the message. What does this function do then?
|
register_message registers a client message. That is a message that the server sends to the client so that the clients data is updated. On Damage, it sends how many dmg was done, so that the client draws it. if you modify the damage parameter, the health drawn in the client will differ from the 'real' helath on the server...
|
Odd, it didn't even modify the health on my machine (the client). Will it be possible to change the damage dealt before it hits the engine?
|
All times are GMT -4. The time now is 02:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.