Damage event
How can I get the id of the person who's being damaged?
|
read_data(1)
|
Is that the first arg of every event?
|
No.
|
Lol as much as that helped avalanche I just need a little more information. Actually to make it better, do you know where I can get a list of the arguments for most of the the events?
|
read_data(1) for attacker in the event which gets the damage event.
read_data(2) is victim. |
Arguments of the Damage event:
arg1: BYTE : dmg save ? arg2: BYTE : dmg take ? arg3: LONG : dmg types-bits arg4: COORD : dmg origin x arg5: COORD : dmg origin y arg6: COORD : dmg origin z Use get_user_attacker() to get the attacker's id (or use client_damage() instead). [edit] Oh, to get the victim? Code:
|
As for the list of events...
http://forums.alliedmods.net/showthread.php?t=9260 http://forums.alliedmods.net/showthread.php?t=9239 |
Twilight that doesn't make much sense. Lookin at the events and their arguments I don't see anything about gettin the id of the victim and attacker but I'll give it a try netherless. Thanks for everyone elses help.
|
Still haven't been able to test it but can anyone give me a better way of hooking the damage without using that event so I can get a reliable way to get the victim and attacker?
|
| All times are GMT -4. The time now is 19:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.