Call of Duty 2: sMeansOfDeath Values Reference

This is a complete reference of all sMeansOfDeath values found in the CoD2 dedicated server binary. These are passed to Callback_PlayerDamage and Callback_PlayerKilled.

Note: These strings are generated by the game engine. Modders use them for custom kill handling, obituaries, damage feedback, etc.

sMeansOfDeath Table

sMeansOfDeath Description
MOD_CRUSH Crushed by moving objects, tanks, or collapsing structures.
MOD_EXPLOSIVE Generic explosive damage (satchels, artillery, etc.).
MOD_FALLING Falling from height.
MOD_GRENADE Direct grenade impact.
MOD_GRENADE_SPLASH Grenade explosion splash damage (most common grenade death).
MOD_HEAD_SHOT Headshot with bullets. Engine usually sets this automatically on head hits.
MOD_MELEE Knife / bayonet kill.
MOD_PISTOL_BULLET Pistol bullet damage.
MOD_PROJECTILE Direct rocket hit (Panzerfaust / Panzerschreck).
MOD_PROJECTILE_SPLASH Rocket explosion splash damage.
MOD_RIFLE_BULLET Rifle, SMG, and machine gun bullets (most common).
MOD_SUICIDE Suicide via /kill command.
MOD_TELEFRAG Rare spawn-on-player telefrag.
MOD_TRIGGER_HURT Map trigger_hurt zones (fire, gas, death zones, etc.).
MOD_UNKNOWN Unknown damage type (fallback).

Common GSC Usage Example

if (sMeansOfDeath == "MOD_HEAD_SHOT")
    iPrintLnBold("^2HEADSHOT!");

else if (sMeansOfDeath == "MOD_MELEE")
    // knife death logic

else if (sMeansOfDeath == "MOD_GRENADE" || sMeansOfDeath == "MOD_GRENADE_SPLASH" || sMeansOfDeath == "MOD_EXPLOSIVE")
    // explosive handling

else if (sMeansOfDeath == "MOD_FALLING")
    // fall damage

else if (sMeansOfDeath == "MOD_RIFLE_BULLET" || sMeansOfDeath == "MOD_PISTOL_BULLET")
    // bullet damage
Bottom Left BackgroundBottom Right Background