Difference between revisions of "Generic Source Events"
m (→teamplay_broadcast_audio) |
Joinedsenses (talk | contribs) m (Update notes for a few events) |
||
(4 intermediate revisions by one other user not shown) | |||
Line 26: | Line 26: | ||
=== player_team === | === player_team === | ||
− | {{qnotice| | + | {{qnotice|A player changed their team}}<br> |
{{begin-hl2msg|player_team|string}} | {{begin-hl2msg|player_team|string}} | ||
{{hl2msg|short|userid|user ID on the server}} | {{hl2msg|short|userid|user ID on the server}} | ||
Line 38: | Line 38: | ||
=== player_class === | === player_class === | ||
− | {{qnotice|A player changed | + | {{qnotice|A player changed their class}}<br> |
{{begin-hl2msg|player_class|string}} | {{begin-hl2msg|player_class|string}} | ||
{{hl2msg|short|userid|user ID on server}} | {{hl2msg|short|userid|user ID on server}} | ||
Line 83: | Line 83: | ||
=== player_shoot === | === player_shoot === | ||
− | {{qnotice|Player shot | + | {{qnotice|Player shot their weapon}}<br> |
{{begin-hl2msg|player_shoot|string}} | {{begin-hl2msg|player_shoot|string}} | ||
{{hl2msg|short|userid|user ID on server}} | {{hl2msg|short|userid|user ID on server}} | ||
Line 103: | Line 103: | ||
{{hl2msg|string|oldname|players old (current) name}} | {{hl2msg|string|oldname|players old (current) name}} | ||
{{hl2msg|string|newname|players new name}} | {{hl2msg|string|newname|players new name}} | ||
+ | {{end-hl2msg}} | ||
+ | |||
+ | === player_hintmessage === | ||
+ | {{qnotice|??? (OB only)}}<br> | ||
+ | {{begin-hl2msg|player_hintmessage|string}} | ||
+ | {{hl2msg|string|hintmessage|localizable string of a hint}} | ||
+ | {{end-hl2msg}} | ||
+ | |||
+ | === base_player_teleported === | ||
+ | {{qnotice|??? (OB only)}}<br> | ||
+ | {{begin-hl2msg|base_player_teleported|string}} | ||
+ | {{hl2msg|short|entindex|}} | ||
{{end-hl2msg}} | {{end-hl2msg}} | ||
Line 254: | Line 266: | ||
=== vote_changed === | === vote_changed === | ||
− | {{qnotice|Currently unused. (OB only)}}<br> | + | {{qnotice|Currently unused. See vote_manager entity netprops instead.(OB only)}}<br> |
{{begin-hl2msg|vote_changed|string}} | {{begin-hl2msg|vote_changed|string}} | ||
− | {{hl2msg|byte| | + | {{hl2msg|byte|vote_option1|}} |
− | {{hl2msg|byte| | + | {{hl2msg|byte|vote_option2|}} |
− | {{hl2msg|byte| | + | {{hl2msg|byte|vote_option3|}} |
− | {{hl2msg|byte| | + | {{hl2msg|byte|vote_option4|}} |
− | {{hl2msg|byte| | + | {{hl2msg|byte|vote_option5|}} |
{{hl2msg|byte|potentialVotes|}} | {{hl2msg|byte|potentialVotes|}} | ||
{{end-hl2msg}} | {{end-hl2msg}} | ||
Line 271: | Line 283: | ||
{{hl2msg|byte|team|}} | {{hl2msg|byte|team|}} | ||
{{end-hl2msg}} | {{end-hl2msg}} | ||
− | |||
=== vote_failed === | === vote_failed === |
Latest revision as of 19:45, 4 May 2022
- Refer back to Game Events (Source) for more events.
These should apply to all Source engine games. It is taken from the Orange Box resource\gameevents.res list.
Contents
- 1 team_info
- 2 team_score
- 3 teamplay_broadcast_audio
- 4 player_team
- 5 player_class
- 6 player_death
- 7 player_hurt
- 8 player_chat
- 9 player_score
- 10 player_spawn
- 11 player_shoot
- 12 player_use
- 13 player_changename
- 14 player_hintmessage
- 15 base_player_teleported
- 16 game_init
- 17 game_newmap
- 18 game_start
- 19 game_end
- 20 round_start
- 21 round_end
- 22 game_message
- 23 break_breakable
- 24 break_prop
- 25 entity_killed
- 26 bonus_updated
- 27 achievement_event
- 28 achievement_increment
- 29 physgun_pickup
- 30 flare_ignite_npc
- 31 helicopter_grenade_punt_miss
- 32 user_data_downloaded
- 33 ragdoll_dissolved
- 34 hltv_changed_mode
- 35 hltv_changed_target
- 36 vote_ended
- 37 vote_started
- 38 vote_changed
- 39 vote_passed
- 40 vote_failed
- 41 vote_cast
- 42 vote_options
- 43 replay_saved
- 44 entered_performance_mode
- 45 browse_replays
- 46 replay_youtube_stats
- 47 inventory_updated
- 48 cart_updated
- 49 store_pricesheet_updated
- 50 gc_connected
- 51 item_schema_initialized
team_info
Note: Info about team
Name: | team_info | ||||||
Structure: |
|
team_score
Note: Team score changed
Note: This is not called in Counter-Strike: Source
Name: | team_info | ||||||
Structure: |
|
teamplay_broadcast_audio
Note: emits a sound to everyone on a team. (OB Only)
Name: | teamplay_broadcast_audio | ||||||
Structure: |
|
player_team
Note: A player changed their team
Name: | player_team | |||||||||||||||||||||
Structure: |
|
player_class
Note: A player changed their class
Name: | player_class | ||||||
Structure: |
|
player_death
Note: A player has died
Name: | player_death | ||||||
Structure: |
|
player_hurt
Note: A player was hurt
Name: | player_hurt | |||||||||
Structure: |
|
player_chat
Note: A public player chat
Name: | player_chat | |||||||||
Structure: |
|
player_score
Note: Player's scores changed
Name: | player_score | ||||||||||||
Structure: |
|
player_spawn
Note: Player spawned in game
Name: | player_spawn | |||
Structure: |
|
player_shoot
Note: Player shot their weapon
Name: | player_shoot | |||||||||
Structure: |
|
player_use
Note: When a player uses an option
Name: | player_use | ||||||
Structure: |
|
player_changename
Note: Player changed name
Name: | player_changename | |||||||||
Structure: |
|
player_hintmessage
Note: ??? (OB only)
Name: | player_hintmessage | |||
Structure: |
|
base_player_teleported
Note: ??? (OB only)
Name: | base_player_teleported | |||
Structure: |
|
game_init
Note: Sent when a new game is started (OB only)
game_newmap
Note: Sent when new map is completely loaded
Name: | game_newmap | |||
Structure: |
|
game_start
Note: A new game starts
Name: | game_start | ||||||||||||
Structure: |
|
game_end
Note: A game ended
Name: | game_end | |||
Structure: |
|
round_start
Note: The round started
Name: | round_start | |||||||||
Structure: |
|
round_end
Note: The round ended
Name: | round_end | |||||||||
Structure: |
|
game_message
Note: A message sent by game logic to everyone
Name: | game_message | ||||||
Structure: |
|
break_breakable
Note: A breakable (func_break) is broken.
Name: | break_breakable | |||||||||
Structure: |
|
break_prop
Note: A breakable prop is broken.
Name: | break_prop | ||||||
Structure: |
|
entity_killed
Note: An entity has been killed (OB only)
Name: | entity_killed | ||||||||||||
Structure: |
|
bonus_updated
Note: ??? (OB only)
Name: | bonus_updated | ||||||||||||
Structure: |
|
achievement_event
Note: A player has received an achievement (OB only)
Name: | achievement_earned | |||||||||
Structure: |
|
achievement_increment
Note: Sent whenever an achievement that's tracked on the HUD increases (OB only)
Name: | achievement_increment | |||||||||
Structure: |
|
physgun_pickup
Note: Player picked up a physgun (OB only)
Name: | physgun_pickup | |||
Structure: |
|
flare_ignite_npc
Note: A flare has ignited a NPC (OB only)
Name: | flare_ignite_npc | |||
Structure: |
|
helicopter_grenade_punt_miss
Note: ??? (OB only)
user_data_downloaded
Note: Fired when achievements/stats are downloaded from Steam or XBOX Live (OB only)
ragdoll_dissolved
Note: A ragdoll has dissolved (OB only)
Name: | ragdoll_dissolved | |||
Structure: |
|
hltv_changed_mode
Note: ??? (OB only)
Name: | hltv_changed_mode | |||||||||
Structure: |
|
hltv_changed_target
Note: ??? (OB only)
Name: | hltv_changed_target | |||||||||
Structure: |
|
vote_ended
Note: Not currently implemented. See VotePass and VoteFailed UserMessages instead. (OB only)
vote_started
Note: Currently unused. See the VoteStart UserMessage instead. (OB only)
Name: | vote_started | ||||||||||||
Structure: |
|
vote_changed
Note: Currently unused. See vote_manager entity netprops instead.(OB only)
Name: | vote_changed | ||||||||||||||||||
Structure: |
|
vote_passed
Note: Currently unused. See the VotePass UserMessage instead. (OB only)
Name: | vote_passed | |||||||||
Structure: |
|
vote_failed
Note: Currently unused. See the VoteFailed UserMessage instead. (OB only)
Name: | vote_failed | |||
Structure: |
|
vote_cast
Note: Sent to all players when a player chooses a vote option (or more specifically, the server receives a vote command) (OB only)
Name: | vote_cast | |||||||||
Structure: |
|
vote_options
Note: Sent to players before VoteStart UserMessage to populate choices for a multiple choice vote (OB only)
Name: | vote_options | ||||||||||||||||||
Structure: |
|
replay_saved
Note: ??? (OB only)
entered_performance_mode
Note: ??? (OB only)
browse_replays
Note: ??? (OB only)
replay_youtube_stats
Note: ??? (OB only)
Name: | replay_youtube_stats | |||||||||
Structure: |
|
inventory_updated
Note: ??? (OB only)
cart_updated
Note: ??? (OB only)
store_pricesheet_updated
Note: ??? (OB only)
gc_connected
Note: ??? (OB only)
item_schema_initialized
Note: ??? (OB only)