Difference between revisions of "Game Events (Source)"

From AlliedModders Wiki
Jump to: navigation, search
(Game Events)
m (Correct redirect for No More Room in Hell)
 
(38 intermediate revisions by 15 users not shown)
Line 1: Line 1:
= Game Events =
+
These are all the games that the Source engine covers (that we could find).
These are all the games that the Source engine covers.
+
* [[Generic Source Events]]
 +
* [[Generic Source Server Events]]
 +
* [[Alien Swarm Events]]
 +
* [[Black Mesa Events]]
 +
* [[Codename Cure Events]]
 
* [[Counter-Strike: Source Events]]
 
* [[Counter-Strike: Source Events]]
 +
* [[Counter-Strike: Global Offensive Events]]
 
* [[Day of Defeat: Source Events]]
 
* [[Day of Defeat: Source Events]]
 +
* [[Dota 2 Events]]
 
* [[Dystopia Events]]
 
* [[Dystopia Events]]
 +
* [[Empires Events]]
 +
* [[Garry's Mod Events]]
 +
* [[Half-Life 2: Capture the Flag Events]]
 +
* [[Half-Life 2: Deathmatch Events]]
 +
* [[Hidden: Source Events]]
 +
* [[Insurgency: Source  Events]]
 +
* [[Iron Grip: Source  Events]]
 +
* [[Left 4 Dead Events]]
 +
* [[Left 4 Dead 2 Events]]
 +
* [[Neotokyo Events]]
 +
* [[No More Room in Hell Events]]
 +
* [[Nuclear Dawn Events]]
 +
* [[Perfect Dark: Source Events]]
 
* [[Pirates, Vikings, Knights II Events]]
 
* [[Pirates, Vikings, Knights II Events]]
 
* [[SourceForts Events]]
 
* [[SourceForts Events]]
* [[Hidden: Source Events]]
+
* [[Team Fortress 2 Events]]
* [[Perfect Dark: Source Events]]
+
* [[Zombie Panic! Source Events]]
 
 
= Generic Source Events =
 
 
 
=== team_info ===
 
{{qnotice|Info about team}}<br>
 
{{begin-hl2msg|team_info|string}}
 
{{hl2msg|byte|teamid}}
 
{{hl2msg|string|teamname}}
 
{{end-hl2msg}}
 
 
 
=== team_score ===
 
{{qnotice|Team score changed}}<br>
 
{{begin-hl2msg|team_info|string}}
 
{{hl2msg|byte|teamid}}
 
{{hl2msg|short|score}}
 
{{end-hl2msg}}
 
 
 
=== player_team ===
 
{{qnotice|Player change his team}}<br>
 
{{begin-hl2msg|player_team|string}}
 
{{hl2msg|short|userid}}
 
{{hl2msg|byte|team}}
 
{{hl2msg|byte|oldteam}}
 
{{hl2msg|bool|disconnect}}
 
{{end-hl2msg}}
 
 
 
=== player_class ===
 
{{qnotice|A player changed his class}}<br>
 
{{begin-hl2msg|player_class|string}}
 
{{hl2msg|short|userid}}
 
{{hl2msg|string|class}}
 
{{end-hl2msg}}
 
 
 
=== player_death ===
 
{{qnotice|A game event, name may be 32 charaters long}}<br>
 
{{begin-hl2msg|player_death|string}}
 
{{hl2msg|short|userid}}
 
{{hl2msg|short|attacker}}
 
{{end-hl2msg}}
 
 
 
=== player_hurt ===
 
{{qnotice|A player was hurt}}<br>
 
{{begin-hl2msg|player_hurt|string}}
 
{{hl2msg|short|userid}}
 
{{hl2msg|short|attacker}}
 
{{hl2msg|byte|health}}
 
{{end-hl2msg}}
 
 
 
=== player_chat ===
 
{{qnotice|A public player chat}}<br>
 
{{begin-hl2msg|player_chat|string}}
 
{{hl2msg|bool|teamonly}}
 
{{hl2msg|short|userid}}
 
{{hl2msg|string|text}}
 
{{end-hl2msg}}
 
 
 
=== player_score ===
 
{{qnotice|Players scores changed}}<br>
 
{{begin-hl2msg|player_score|string}}
 
{{hl2msg|short|userid}}
 
{{hl2msg|short|kills}}
 
{{hl2msg|short|deaths}}
 
{{hl2msg|short|score}}
 
{{end-hl2msg}}
 
 
 
=== player_spawn ===
 
{{qnotice|player spawned in game}}<br>
 
{{begin-hl2msg|player_spawn|string}}
 
{{hl2msg|short|userid}}
 
{{end-hl2msg}}
 
 
 
=== player_shoot ===
 
{{qnotice|Player shoot his weapon}}<br>
 
{{begin-hl2msg|player_shoot|string}}
 
{{hl2msg|short|userid}}
 
{{hl2msg|byte|weapon}}
 
{{hl2msg|byte|mode}}
 
{{end-hl2msg}}
 
 
 
=== player_use ===
 
{{qnotice|When a player uses an option}}<br>
 
{{begin-hl2msg|player_use|string}}
 
{{hl2msg|short|userid}}
 
{{hl2msg|short|entity}}
 
{{end-hl2msg}}
 
 
 
=== player_changename ===
 
{{qnotice|Player changed name}}<br>
 
{{begin-hl2msg|player_changename|string}}
 
{{hl2msg|string|userid}}
 
{{hl2msg|string|oldname}}
 
{{hl2msg|string|newname}}
 
{{end-hl2msg}}
 
 
 
=== game_newmap ===
 
{{qnotice|Send when new map is completely loaded}}<br>
 
{{begin-hl2msg|game_newmap|string}}
 
{{hl2msg|string|mapname}}
 
{{end-hl2msg}}
 
 
 
=== game_start ===
 
{{qnotice|A new game starts}}<br>
 
{{begin-hl2msg|game_start|string}}
 
{{hl2msg|long|roundslimit}}
 
{{hl2msg|long|timelimit}}
 
{{hl2msg|long|fraglimit}}
 
{{hl2msg|string|objective}}
 
{{end-hl2msg}}
 
 
 
=== game_end ===
 
{{qnotice|A game ended}}<br>
 
{{begin-hl2msg|game_end|string}}
 
{{hl2msg|byte|winner}}
 
{{end-hl2msg}}
 
 
 
=== round_start ===
 
{{qnotice|The round started}}<br>
 
{{begin-hl2msg|player_changename|string}}
 
{{hl2msg|long|timelimit}}
 
{{hl2msg|long|fraglimit}}
 
{{hl2msg|string|objective}}
 
{{end-hl2msg}}
 
 
 
=== round_end ===
 
{{qnotice|The round ended}}<br>
 
{{begin-hl2msg|round_end|string}}
 
{{hl2msg|byte|winner}}
 
{{hl2msg|byte|reason}}
 
{{hl2msg|string|message}}
 
{{end-hl2msg}}
 
 
 
=== game_message ===
 
{{qnotice|A game message}}<br>
 
{{begin-hl2msg|game_message|string}}
 
{{hl2msg|byte|target}}
 
{{hl2msg|string|text}}
 
{{end-hl2msg}}
 
 
 
=== break_breakable ===
 
{{qnotice|A breakable (func_break) is broken.}}<br>
 
{{begin-hl2msg|break_breakable|string}}
 
{{hl2msg|long|entindex}}
 
{{hl2msg|short|userid}}
 
{{hl2msg|byte|material}}
 
{{end-hl2msg}}
 
 
 
=== break_prop ===
 
{{qnotice|A breakable prop is broken.}}<br>
 
{{begin-hl2msg|break_prop|string}}
 
{{hl2msg|long|entindex}}
 
{{hl2msg|short|userid}}
 
{{end-hl2msg}}
 
 
 
= Generic Source Server Events =
 
=== server_spawn ===
 
{{qnotice|Send once a server starts}}<br>
 
{{begin-hl2msg|server_start|string}}
 
{{hl2msg|string|hostname}}
 
{{hl2msg|string|address}}
 
{{hl2msg|string|port}}
 
{{hl2msg|string|game}}
 
{{hl2msg|string|mapname}}
 
{{hl2msg|long|maxplayers}}
 
{{hl2msg|string|os}}
 
{{hl2msg|bool|dedicated}}
 
{{hl2msg|bool|password}}
 
{{end-hl2msg}}
 
 
 
=== server_shutdown ===
 
{{qnotice|Server shut down}}
 
{{begin-hl2msg|server_shutdown|string}}
 
{{hl2msg|string|reason}}
 
{{end-hl2msg}}
 
 
 
=== server_cvar ===
 
{{qnotice|A server console var has changed}}
 
{{begin-hl2msg|server_cvar|string}}
 
{{hl2msg|string|cvarname}}
 
{{hl2msg|string|cvarvalue}}
 
{{end-hl2msg}}
 
 
 
=== server_msg ===
 
{{qnotice|A generic server message}}
 
{{begin-hl2msg|server_message|string}}
 
{{hl2msg|string|text}}
 
{{end-hl2msg}}
 
 
 
=== server_addban ===
 
{{qnotice|When the server has a ban added}}
 
{{begin-hl2msg|server_addban|string}}
 
{{hl2msg|string|name}}
 
{{hl2msg|string|userid}}
 
{{hl2msg|string|networkid}}
 
{{hl2msg|string|ip}}
 
{{hl2msg|string|duration}}
 
{{hl2msg|string|by}}
 
{{hl2msg|bool|kicked}}
 
{{end-hl2msg}}
 
 
 
=== server_removeban ===
 
{{qnotice|When the server has a ban removed}}
 
{{begin-hl2msg|server_removeban|string}}
 
{{hl2msg|string|networkid}}
 
{{hl2msg|string|ip}}
 
{{hl2msg|stsring|by}}
 
{{end-hl2msg}}
 
 
 
=== player_connect ===
 
{{qnotice|A new player connected}}
 
{{begin-hl2msg|player_connect|string}}
 
{{hl2msg|string|name}}
 
{{hl2msg|byte|index}}
 
{{hl2msg|short|userid}}
 
{{hl2msg|string|networkid}}
 
{{hl2msg|string|address}}
 
{{end-hl2msg}}
 
 
 
=== player_info ===
 
{{qnotice|A player changed his name}}
 
{{begin-hl2msg|player_info|string}}
 
{{hl2msg|string|name}}
 
{{hl2msg|byte|index}}
 
{{hl2msg|short|userid}}
 
{{hl2msg|string|networkid}}
 
{{hl2msg|bool|bot}}
 
{{end-hl2msg}}
 
 
 
=== player_disconnect ===
 
{{qnotice|A client was disconnected}}
 
{{begin-hl2msg|player_disconnect|string}}
 
{{hl2msg|short|userid}}
 
{{hl2msg|string|reason}}
 
{{hl2msg|string|name}}
 
{{hl2msg|string|networkid}}
 
{{end-hl2msg}}
 
  
=== player_activate ===
+
== Credits ==
{{qnotice|A client has entered the game (connected and loaded)}}
+
*[[User:Shane|Shane]] - Writing some of the events pages and organization and general wikiknowhow
{{begin-hl2msg|player_activate|string}}
+
*[[User:FlyingMongoose|FlyingMongoose]] - Writing a lot of the events pages
{{hl2msg|short|userid}}
+
*[[User:sslice|sslice]] - For creating a wikitizer application for these events
{{end-hl2msg}}
+
*[[User:RedSword|RedSword]] - For creating a wikitizer [https://forums.alliedmods.net/showthread.php?p=2268802#post2268802 application] for these events
 +
*[[User:404UNF|404UNF]] - Updating events
  
=== player_say ===
+
[[Category:Metamod:Source Development]]
{{qnotice|When a client sends a message in chat}}
+
[[Category:SourceMod Development]]
{{begin-hl2msg|player_say|string}}
+
[[Category:SourceMod Scripting]]
{{hl2msg|short|userid}}
 
{{hl2msg|string|text}}
 
{{end-hl2msg}}
 

Latest revision as of 16:23, 2 December 2019