i'm trying to log all the parameters of Ham_TakeDamage but for damagebits i get 32 if i fell to my death.
But how do i format it to see which bits are used ?
PHP Code:
public FwdTakeDamagePlayerPre(victim, inflictor, attacker, Float: Damage, damagebits)
{
new Data[128];
formatex(Data, charsmax(Data), "^nvictim = %i^ninflictor = %i^nattacker = %i^n Damage = %.2f^n bits = %i",
victim, inflictor, attacker, Damage, damagebits);
log_to_file("addons/amxmodx/takedamagelog.txt", Data);
}
i know this is a bad way to log it, but it's just to see the parameters.
This is the output when i fell to my death:
Code:
L 01/09/2011 - 19:44:10: Log file started (file "cstrike\addons\amxmodx\takedamagelog.txt") (game "cstrike") (amx "1.8.1.3746")
L 01/09/2011 - 19:44:10:
victim = 1
inflictor = 0
attacker = 0
Damage = 312.50
bits = 32
__________________