Thread: return damage.
View Single Post
--kml--
Senior Member
Join Date: Jan 2009
Old 06-25-2009 , 09:35   Re: return damage.
Reply With Quote #2

Oo

you can find it in the wiki

http://wiki.amxmodx.org/Half-Life_1_Game_Events#Damage


Quote:
Called when a player takes damage, to display the red locational indicators. The last three arguments is the origin of the damage inflictor or victim origin if inflictor isn't found. DamageType is a bitwise value usually consist of a single bit.


Note: To caputure this message,you should use "b" as the third parameter in the register_event() function.

Quote:
Name: Damage
Structure: byte DamageSave
byte DamageTake
long DamageType
coord CoordX
coord CoordY
coord CoordZ
And for Ham i guess is

Quote:
* Description: Usually called whenever an entity gets attacked by a hitscan (such as a gun) weapon.
* Use the get/set tr2 natives in fakemeta to handle the traceresult data.
* Do not use a handle of 0 as a traceresult in execution, use create_tr2() from Fakemeta
* to pass a custom handle instead. (Don't forget to free the handle when you're done.)
* Forward params: function(this, idattacker, Float:damage, Float:direction[3], traceresult, damagebits)
* Return type: None.
* Execute params: ExecuteHam(Ham_TraceAttack, this, idattacker, Float:damage, Float:direction[3], tracehandle, damagebits);
*/
Ham_TraceAttack,
xD

P.S : what is your Garena ACC?
__________________
wooT now is asking season
will ask you plenty of things for learning

Last edited by --kml--; 06-25-2009 at 09:41.
--kml-- is offline