45 Man survivor = source.GetHierarchyRootPlayer();
46 if ( survivor && source.IsWeapon() )
57 float current_dist =
vector.
Distance( shooter.GetPosition(), target.GetPosition() );
60 if ( longest_hit_dist < current_dist )
62 dist_update = current_dist - longest_hit_dist;
83 Man killer_survivor = killer_entity.GetHierarchyRootPlayer();
84 if ( killer_survivor )
86 if ( target.IsPlayer() )
90 else if ( target.IsZombie() )
protected void OnPlayerKilled(Man killer, EntityAI target)
protected void OnInfectedKilled(Man killer, EntityAI target)
const string STAT_INFECTED_KILLED
void OnPlayerConnect(Man player)
const string STAT_DISTANCE
void OnEntityHit(EntityAI source, Man target)
void OnEntityKilled(Object killer, EntityAI target)
void OnPlayerDisconnect(Man player)
const string STAT_PLAYERS_KILLED
const string STAT_PLAYTIME
const string STAT_LONGEST_SURVIVOR_HIT
protected void OnPlayerToPlayerHit(Man shooter, Man target)
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.