Half-Life 2: Deathmatch/Scripting/Game Events
Jump to navigation
Jump to search
Warning:Some events have parameter 'class' which cannot be accessed with dot syntax, i.e.
Tip:To see what events fire during the game, download this script (right click and Save Page), place it into your
This article lists game events in Half-Life 2: Deathmatch, in addition to the base game events. These were retrieved from modevents.res
in the resource
folder.

params.class
, as class
is a reserved word in Squirrel. Instead, use string indexing like so: params["class"]

scripts/vscripts/
folder and run script_execute showevents
in console.Todo: Distinguish which events are clientside and/or serverside
achievement_earned
Unused, as HL2DM lacks achievements.
- player (byte) - entindex of the player
- achievement (short) - achievement ID
player_death
a game event, name may be 32 charaters long
- userid (short) - user ID who died
- attacker (short) - user ID who killed
- weapon (string) - weapon name killed used
teamplay_round_start
round restart
- full_reset (bool) - is this a full reset of the map