Difference between revisions of "Generic Source Server Events"
m (Pretty sure it's not "server_meSSSage" either :p) |
Joinedsenses (talk | contribs) m (→player_info) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 7: | Line 7: | ||
{{hl2msg|string|hostname|public host name}} | {{hl2msg|string|hostname|public host name}} | ||
{{hl2msg|string|address|hostame, IP or DNS name}} | {{hl2msg|string|address|hostame, IP or DNS name}} | ||
+ | {{hl2msg|string|ip|}} | ||
{{hl2msg|string|port|server port}} | {{hl2msg|string|port|server port}} | ||
{{hl2msg|string|game|game dir}} | {{hl2msg|string|game|game dir}} | ||
Line 13: | Line 14: | ||
{{hl2msg|string|os|WIN32, LINUX}} | {{hl2msg|string|os|WIN32, LINUX}} | ||
{{hl2msg|bool|dedicated|true if dedicated server}} | {{hl2msg|bool|dedicated|true if dedicated server}} | ||
+ | {{hl2msg|bool|official|true if official valve dedicated server}} | ||
{{hl2msg|bool|password|true if password protected}} | {{hl2msg|bool|password|true if password protected}} | ||
{{end-hl2msg}} | {{end-hl2msg}} | ||
Line 63: | Line 65: | ||
{{hl2msg|string|networkid|player network (i.e steam) id}} | {{hl2msg|string|networkid|player network (i.e steam) id}} | ||
{{hl2msg|string|address|ip:port}} | {{hl2msg|string|address|ip:port}} | ||
+ | {{hl2msg|short|bot|is a bot}} | ||
+ | {{end-hl2msg}} | ||
+ | |||
+ | === player_connect_client === | ||
+ | {{qnotice|A new client connected, only present in OB}} | ||
+ | {{begin-hl2msg|player_connect_client|string}} | ||
+ | {{hl2msg|string|name|player name}} | ||
+ | {{hl2msg|byte|index|player slot (entity index-1)}} | ||
+ | {{hl2msg|short|userid|user ID on server (unique on server)}} | ||
+ | {{hl2msg|string|networkid|player network (i.e steam) id}} | ||
{{hl2msg|short|bot|is a bot}} | {{hl2msg|short|bot|is a bot}} | ||
{{end-hl2msg}} | {{end-hl2msg}} | ||
=== player_info === | === player_info === | ||
− | {{qnotice|A player changed | + | {{qnotice|A player changed their name}} |
{{begin-hl2msg|player_info|string}} | {{begin-hl2msg|player_info|string}} | ||
{{hl2msg|string|name|player name}} | {{hl2msg|string|name|player name}} | ||
Line 80: | Line 92: | ||
{{begin-hl2msg|player_disconnect|string}} | {{begin-hl2msg|player_disconnect|string}} | ||
{{hl2msg|short|userid|user ID on server}} | {{hl2msg|short|userid|user ID on server}} | ||
− | {{hl2msg|string|reason| | + | {{hl2msg|string|reason|reason the player left the server}} |
{{hl2msg|string|name|player name}} | {{hl2msg|string|name|player name}} | ||
{{hl2msg|string|networkid|player network (i.e steam) id}} | {{hl2msg|string|networkid|player network (i.e steam) id}} |
Latest revision as of 19:40, 4 May 2022
- Refer back to Game Events (Source) for more events.
These should apply to all Source Engine Servers
Contents
server_spawn
Note: Send once a server starts (spawns)
Name: | server_spawn | |||||||||||||||||||||||||||||||||
Structure: |
|
server_shutdown
Note: Server shut down
Name: | server_shutdown | |||
Structure: |
|
server_cvar
Note: A server console var has changed
Name: | server_cvar | ||||||
Structure: |
|
server_message
Note: A generic server message
Name: | server_message | |||
Structure: |
|
server_addban
Note: When the server has a ban added
Name: | server_addban | |||||||||||||||||||||
Structure: |
|
server_removeban
Note: When the server has a ban removed
Name: | server_removeban | |||||||||
Structure: |
|
player_connect
Note: A new client connected
Name: | player_connect | ||||||||||||||||||
Structure: |
|
player_connect_client
Note: A new client connected, only present in OB
Name: | player_connect_client | |||||||||||||||
Structure: |
|
player_info
Note: A player changed their name
Name: | player_info | |||||||||||||||
Structure: |
|
player_disconnect
Note: A client was disconnected
Name: | player_disconnect | |||||||||||||||
Structure: |
|
player_activate
Note: A client has entered the game (connected and loaded)
Name: | player_activate | |||
Structure: |
|
player_say
Note: When a client sends a message in chat
Name: | player_say | ||||||
Structure: |
|