Difference between revisions of "Zombie Panic! Source Events"
m (→discord_callstatusupdate) |
(Removed events that are not called by the game.) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
:''Refer back to [[Game Events (Source)]] for more events.'' | :''Refer back to [[Game Events (Source)]] for more events.'' | ||
− | === | + | === player_feed === |
− | {{qnotice| | + | {{qnotice|Whenever the player feed is updated. This is also called whenever someone becomes infected by a player}}<br> |
− | {{begin-hl2msg| | + | {{begin-hl2msg|player_feed|string}} |
− | {{hl2msg|short|userid|player who died}} | + | {{hl2msg|short|userid|player who died or got infected}} |
− | {{hl2msg|short|attacker|player who killed}} | + | {{hl2msg|short|attacker|player who killed or caused the infection}} |
{{hl2msg|short|assistant|player who assisted the attacker}} | {{hl2msg|short|assistant|player who assisted the attacker}} | ||
{{hl2msg|string|weapon|name of the weapon}} | {{hl2msg|string|weapon|name of the weapon}} | ||
{{hl2msg|bool|headshot|true if player died from headshot}} | {{hl2msg|bool|headshot|true if player died from headshot}} | ||
+ | {{hl2msg|bool|death|true if the player died}} | ||
{{hl2msg|short|dmgbits|damage type}} | {{hl2msg|short|dmgbits|damage type}} | ||
+ | {{end-hl2msg}} | ||
+ | |||
+ | === player_spawn === | ||
+ | {{qnotice|When a player spawns}}<br> | ||
+ | {{begin-hl2msg|player_spawn|string}} | ||
+ | {{hl2msg|short|entindex|Entity index of the player that spawned}} | ||
+ | {{end-hl2msg}} | ||
+ | |||
+ | === player_exploded === | ||
+ | {{qnotice|When a player explodes}}<br> | ||
+ | {{begin-hl2msg|player_exploded|string}} | ||
+ | {{hl2msg|float|x|X Position of the player}} | ||
+ | {{hl2msg|float|y|Y Position of the player}} | ||
+ | {{hl2msg|float|z|Z Position of the player}} | ||
{{end-hl2msg}} | {{end-hl2msg}} | ||
Line 22: | Line 37: | ||
{{hl2msg|string|name|name of the player that left}} | {{hl2msg|string|name|name of the player that left}} | ||
{{hl2msg|short|flag}} | {{hl2msg|short|flag}} | ||
+ | {{hl2msg|short|userid|player who left}} | ||
{{hl2msg|string|reason|reason why the player left}} | {{hl2msg|string|reason|reason why the player left}} | ||
{{end-hl2msg}} | {{end-hl2msg}} | ||
Line 31: | Line 47: | ||
{{end-hl2msg}} | {{end-hl2msg}} | ||
− | === | + | === clientsound === |
− | {{qnotice|Called when | + | {{qnotice|Called when a specific sound is played. Eg. Round Start, Round End, Survivor Escapes etc.}}<br> |
− | {{begin-hl2msg| | + | {{begin-hl2msg|clientsound|string}} |
− | {{hl2msg| | + | {{hl2msg|string|sound|File path for the song, or the SoundScript}} |
+ | {{hl2msg|short|teamid|(optional) If specified, it will only send to clients within a specific team}} | ||
{{end-hl2msg}} | {{end-hl2msg}} | ||
− | === | + | === clientsound_player === |
− | {{qnotice|Called when a sound | + | {{qnotice|Called when a specific sound to a player is played. Eg. Using an Inoculator, Flashlight, Panic etc.}}<br> |
− | {{begin-hl2msg| | + | {{begin-hl2msg|clientsound_player|string}} |
− | {{hl2msg| | + | {{hl2msg|short|entindex|Entity index concerned by this sound}} |
− | {{hl2msg| | + | {{hl2msg|string|sound|File path for the song, or the SoundScript}} |
− | |||
{{end-hl2msg}} | {{end-hl2msg}} | ||
=== force_song === | === force_song === | ||
{{qnotice|Called when the logic_music entity changes the song}}<br> | {{qnotice|Called when the logic_music entity changes the song}}<br> | ||
− | {{begin-hl2msg| | + | {{begin-hl2msg|force_song|string}} |
− | {{hl2msg|string|song| | + | {{hl2msg|string|song|File path for the song}} |
− | {{hl2msg|string|title| | + | {{hl2msg|string|title|Custom song title}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{end-hl2msg}} | {{end-hl2msg}} | ||
Line 61: | Line 71: | ||
{{qnotice|Called when a new arm model is set from AngelScript}}<br> | {{qnotice|Called when a new arm model is set from AngelScript}}<br> | ||
{{begin-hl2msg|armmodel_as|string}} | {{begin-hl2msg|armmodel_as|string}} | ||
+ | {{hl2msg|short|entindex|player who's arm model got changed}} | ||
{{hl2msg|string|model|arm model that should be used}} | {{hl2msg|string|model|arm model that should be used}} | ||
{{end-hl2msg}} | {{end-hl2msg}} | ||
Line 68: | Line 79: | ||
{{begin-hl2msg|spawned_player|string}} | {{begin-hl2msg|spawned_player|string}} | ||
{{hl2msg|string|name|name of the player that spawned}} | {{hl2msg|string|name|name of the player that spawned}} | ||
+ | {{end-hl2msg}} | ||
+ | |||
+ | === reset_arms === | ||
+ | {{qnotice|Called when player has fully turned into a zombie}}<br> | ||
+ | {{begin-hl2msg|reset_arms|string}} | ||
+ | {{hl2msg|short|entindex|Entindex of the player}} | ||
+ | {{hl2msg|bool|infected|Whether to use the infected model or not. Seems to be always true}} | ||
{{end-hl2msg}} | {{end-hl2msg}} | ||
Line 73: | Line 91: | ||
{{qnotice|Send an Update to Discord RPC}}<br> | {{qnotice|Send an Update to Discord RPC}}<br> | ||
{{begin-hl2msg|discord_callstatusupdate|string}} | {{begin-hl2msg|discord_callstatusupdate|string}} | ||
− | |||
{{hl2msg|string|hostname|Server Hostname}} | {{hl2msg|string|hostname|Server Hostname}} | ||
− | {{hl2msg|string| | + | {{hl2msg|string|gamemode|Gamemode}} |
− | {{hl2msg|string| | + | {{hl2msg|string|party_id|}} |
− | {{hl2msg|string| | + | {{hl2msg|string|party_port|Server Port?}} |
− | {{ | + | {{hl2msg|string|party_size|Player count currently playing}} |
− | + | {{hl2msg|string|party_max|How many players can join}} | |
− | |||
− | |||
− | |||
− | |||
− | {{hl2msg| | ||
− | |||
{{end-hl2msg}} | {{end-hl2msg}} | ||
Line 95: | Line 106: | ||
{{end-hl2msg}} | {{end-hl2msg}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== achievement_earned === | === achievement_earned === | ||
Line 126: | Line 113: | ||
{{hl2msg|string|achid|achievement id}} | {{hl2msg|string|achid|achievement id}} | ||
{{hl2msg|string|achtitle|title of the achievement}} | {{hl2msg|string|achtitle|title of the achievement}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{end-hl2msg}} | {{end-hl2msg}} | ||
Line 243: | Line 167: | ||
{{end-hl2msg}} | {{end-hl2msg}} | ||
− | === | + | |
− | {{qnotice|Called when the round | + | === endslate === |
− | {{begin-hl2msg| | + | {{qnotice|Called when the round ends}}<br> |
− | {{hl2msg| | + | {{begin-hl2msg|endslate|string}} |
+ | {{hl2msg|string|win_text|Who won?}} | ||
+ | {{hl2msg|string|timespent|Time spent on the round}} | ||
+ | {{hl2msg|string|gamemode|Current Gamemode}} | ||
+ | {{hl2msg|string|map|Current Map (If official, it shows the title of the map)}} | ||
{{end-hl2msg}} | {{end-hl2msg}} | ||
− | === | + | === vote_started === |
− | {{qnotice|Called when | + | {{qnotice|Called when a vote has started}}<br> |
− | {{begin-hl2msg| | + | {{begin-hl2msg|vote_started|string}} |
− | {{hl2msg| | + | {{hl2msg|string|title|Title of the vote}} |
+ | {{hl2msg|string|desc|Description of the vote}} | ||
+ | {{hl2msg|string|arg|Argument(s) of the vote}} | ||
+ | {{hl2msg|short|maxargs|Amount of arguments for the vote}} | ||
+ | {{hl2msg|short|caller|player who started the vote}} | ||
+ | {{hl2msg|float|time|Duration of the vote?}} | ||
+ | {{hl2msg|float|time_real|Time when the vote started?}} | ||
{{end-hl2msg}} | {{end-hl2msg}} | ||
− | === | + | === vote_update === |
− | {{qnotice|Called when | + | {{qnotice|Called when a vote updates}}<br> |
− | {{begin-hl2msg| | + | {{begin-hl2msg|vote_update|string}} |
− | {{hl2msg|string| | + | {{hl2msg|string|title|Title of the vote}} |
+ | {{hl2msg|string|desc|Description of the vote}} | ||
+ | {{hl2msg|string|arg|Argument(s) of the vote}} | ||
+ | {{hl2msg|short|caller|player who started the vote}} | ||
+ | {{hl2msg|byte|result|}} | ||
+ | {{hl2msg|byte|maxargs|}} | ||
+ | {{hl2msg|byte|option0|}} | ||
+ | {{hl2msg|byte|option1|}} | ||
+ | {{hl2msg|byte|option2|}} | ||
+ | {{hl2msg|byte|option3|}} | ||
+ | {{hl2msg|byte|option4|}} | ||
+ | {{hl2msg|byte|option5|}} | ||
{{end-hl2msg}} | {{end-hl2msg}} | ||
Line 264: | Line 209: | ||
{{qnotice|Called when a vote has ended}}<br> | {{qnotice|Called when a vote has ended}}<br> | ||
{{begin-hl2msg|vote_ended|string}} | {{begin-hl2msg|vote_ended|string}} | ||
− | {{hl2msg| | + | {{hl2msg|string|arg|Argument(s) of the vote}} |
− | + | {{hl2msg|string|endmsg|}} | |
− | + | {{hl2msg|short|target|player who got targeted by the caller}} | |
− | + | {{hl2msg|short|caller|player who started the vote}} | |
− | + | {{hl2msg|short|state|}} | |
− | {{ | + | {{hl2msg|short|result|}} |
− | |||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | {{hl2msg| | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{hl2msg| | ||
− | |||
− | {{hl2msg| | ||
− | |||
{{end-hl2msg}} | {{end-hl2msg}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | === | + | === badge_reward_announce === |
− | {{qnotice|Called when a | + | {{qnotice|Called when the player is notified about receiving a badge reward.}}<br> |
− | {{begin-hl2msg| | + | {{begin-hl2msg|badge_reward_announce|string}} |
− | {{hl2msg| | + | {{hl2msg|long|entindex|player who got the badge reward}} |
− | {{hl2msg|string| | + | {{hl2msg|string|name|Name of the badge reward}} |
− | + | {{hl2msg|string|desc|Description of the badge reward}} | |
− | + | {{hl2msg|string|icon|Icon which is shown}} | |
− | + | {{hl2msg|long|reward|}} | |
− | |||
− | |||
− | {{ | ||
− | |||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{hl2msg|long| | ||
{{end-hl2msg}} | {{end-hl2msg}} |
Latest revision as of 13:13, 2 February 2022
- Refer back to Game Events (Source) for more events.
Contents
- 1 player_feed
- 2 player_spawn
- 3 player_exploded
- 4 player_connected
- 5 player_disconnected
- 6 map_change
- 7 clientsound
- 8 clientsound_player
- 9 force_song
- 10 armmodel_as
- 11 spawned_player
- 12 reset_arms
- 13 discord_callstatusupdate
- 14 cleanupmap
- 15 achievement_earned
- 16 instructor_tutor
- 17 instructor_server_hint_create
- 18 instructor_server_hint_stop
- 19 instructor_survivor_supply
- 20 endslate
- 21 vote_started
- 22 vote_update
- 23 vote_ended
- 24 badge_reward_announce
player_feed
Note: Whenever the player feed is updated. This is also called whenever someone becomes infected by a player
Name: | player_feed | |||||||||||||||||||||
Structure: |
|
player_spawn
Note: When a player spawns
Name: | player_spawn | |||
Structure: |
|
player_exploded
Note: When a player explodes
Name: | player_exploded | |||||||||
Structure: |
|
player_connected
Note: When a player joins the server
Name: | player_connected | |||
Structure: |
|
player_disconnected
Note: When a player leaves the server
Name: | player_disconnected | ||||||||||||
Structure: |
|
map_change
Note: Called when the map changes
Name: | map_change | |||
Structure: |
|
clientsound
Note: Called when a specific sound is played. Eg. Round Start, Round End, Survivor Escapes etc.
Name: | clientsound | ||||||
Structure: |
|
clientsound_player
Note: Called when a specific sound to a player is played. Eg. Using an Inoculator, Flashlight, Panic etc.
Name: | clientsound_player | ||||||
Structure: |
|
force_song
Note: Called when the logic_music entity changes the song
Name: | force_song | ||||||
Structure: |
|
armmodel_as
Note: Called when a new arm model is set from AngelScript
Name: | armmodel_as | ||||||
Structure: |
|
spawned_player
Note: Called when player has spawned
Name: | spawned_player | |||
Structure: |
|
reset_arms
Note: Called when player has fully turned into a zombie
Name: | reset_arms | ||||||
Structure: |
|
discord_callstatusupdate
Note: Send an Update to Discord RPC
Name: | discord_callstatusupdate | ||||||||||||||||||
Structure: |
|
cleanupmap
Note: when the server calls CleanUpMap(), it will tell the client todo the same for temp and client sided entities
Name: | cleanupmap | |||
Structure: |
|
achievement_earned
Note: None
Name: | achievement_earned | |||||||||
Structure: |
|
instructor_tutor
Note: Called from the instructor tutorial
Name: | instructor_tutor | |||||||||||||||||||||||||||
Structure: |
|
instructor_server_hint_create
Note: create a hint using data supplied entirely by the server/map. Intended for hints to smooth playtests before content is ready to make the hint unneccessary. NOT INTENDED AS A SHIPPABLE CRUTCH
Name: | instructor_server_hint_create | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Structure: |
|
instructor_server_hint_stop
Note: destroys a server/map created hint
Name: | instructor_server_hint_stop | |||
Structure: |
|
instructor_survivor_supply
Note: None
Name: | instructor_survivor_supply | |||||||||
Structure: |
|
endslate
Note: Called when the round ends
Name: | endslate | ||||||||||||
Structure: |
|
vote_started
Note: Called when a vote has started
Name: | vote_started | |||||||||||||||||||||
Structure: |
|
vote_update
Note: Called when a vote updates
Name: | vote_update | ||||||||||||||||||||||||||||||||||||
Structure: |
|
vote_ended
Note: Called when a vote has ended
Name: | vote_ended | ||||||||||||||||||
Structure: |
|
badge_reward_announce
Note: Called when the player is notified about receiving a badge reward.
Name: | badge_reward_announce | |||||||||||||||
Structure: |
|