Player index / userid
Posted: Wed Aug 08, 2012 6:07 pm
Whats the difference?
A second question would be whats the difference between "player_spawned" and "player_spawn" events ??
"player_death" // a game event, name may be 32 characters long
{
// this extents the original player_death by a new fields
"userid" "short" // user ID who died
"attacker" "short" // user ID who killed
"assister" "short" // user ID who assisted in the kill
"weapon" "string" // weapon name killer used
"headshot" "bool" // singals a headshot
"dominated" "short" // did killer dominate victim with this kill
"revenge" "short" // did killer get revenge on victim with this kill
"penetrated" "short" // number of objects shot penetrated before killing target
}
"player_hurt"
{
"userid" "short" // player index who was hurt
"attacker" "short" // player index who attacked
"health" "byte" // remaining health points
"armor" "byte" // remaining armor points
"weapon" "string" // weapon name attacker used, if not the world
"dmg_health" "short" // damage done to health
"dmg_armor" "byte" // damage done to armor
"hitgroup" "byte" // hitgroup that was damaged
}
A second question would be whats the difference between "player_spawned" and "player_spawn" events ??