Difference between revisions of "Zombie Panic! Source Events"

From AlliedModders Wiki
Jump to: navigation, search
(Updated for ZPS 3.0)
(Updated for ZPS 3.0)
Line 11: Line 11:
 
{{end-hl2msg}}
 
{{end-hl2msg}}
  
=== zombie_death ===
+
=== player_connected ===
{{qnotice|When a zombie dies}}<br>
+
{{qnotice|When a player joins the server}}<br>
{{begin-hl2msg|zombie_death|string}}
+
{{begin-hl2msg|player_connected|string}}
{{hl2msg|byte|count}}
+
{{hl2msg|string|name|name of the player that connected}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}
  

Revision as of 08:19, 19 December 2017

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

player_death

Note: When a player dies

Name: player_death
Structure:
short userid player who died
short attacker player who killed
short assistant player who assisted the attacker
string weapon name of the weapon
bool headshot true if player died from headshot
short dmgbits damage type


player_connected

Note: When a player joins the server

Name: player_connected
Structure:
string name name of the player that connected


ambient_play

Note: Called when a sound plays

Name: ambient_play
Structure:
string sound Sound file which played
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 New value after the change


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}}}