Difference between revisions of "Zombie Panic! Source Events"

From AlliedModders Wiki
Jump to: navigation, search
(player_death)
Line 3: Line 3:
 
{{qnotice|When a client dies}}<br>
 
{{qnotice|When a client dies}}<br>
 
{{begin-hl2msg|player_death|string}}
 
{{begin-hl2msg|player_death|string}}
{{hl2msg|short|userid}}
+
{{hl2msg|short|userid|player who died}}
{{hl2msg|short|attacker}}
+
{{hl2msg|short|attacker|player who killed}}
{{hl2msg|string|weapon}}
+
{{hl2msg|string|weapon|Name of the weapon}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}
  

Revision as of 11:30, 6 September 2014

Refer back to Game Events (Source) for more events.

player_death

Note: When a client dies

Name: player_death
Structure:
short userid player who died
short attacker player who killed
string weapon Name of the weapon


zombie_death

Note: When a zombie dies

Name: zombie_death
Structure:
byte count {{{3}}}


ambient_play

Note: None

Name: ambient_play
Structure:
string sound {{{3}}}
bool fade {{{3}}}


game_round_restart

Note: When one team won the round and players can select their team again

Name: game_round_restart
Structure:
none none {{{3}}}


gravity_change

Note: When the gravity changes

Name: gravity_change
Structure:
float newgravity {{{3}}}


achievement_earned

Note: None

Name: achievement_earned
Structure:
byte player {{{3}}}
short achievement {{{3}}}


spec_target_updated

Note: None

Name: spec_target_updated
Structure:
none none {{{3}}}