Skip to content

Instantly share code, notes, and snippets.

@sigsegv-mvm
Created January 6, 2018 05:46
Show Gist options
  • Save sigsegv-mvm/f20d2bc8d4065a89b442796764180990 to your computer and use it in GitHub Desktop.
Save sigsegv-mvm/f20d2bc8d4065a89b442796764180990 to your computer and use it in GitHub Desktop.
TF2 damage type bits/flags
TF2 DAMAGE BITS
BIT MASK NAME
--------------------------------------------------------------------------------
xx 00000000 DMG_GENERIC
00 00000001 DMG_CRUSH
01 00000002 DMG_BULLET
02 00000004 DMG_SLASH
03 00000008 DMG_BURN
04 00000010 DMG_VEHICLE
05 00000020 DMG_FALL
06 00000040 DMG_BLAST
07 00000080 DMG_CLUB
08 00000100 DMG_SHOCK
09 00000200 DMG_SONIC
0A 00000400 DMG_RADIUS_MAX [HL2: DMG_ENERGYBEAM]
0B 00000800 DMG_PREVENT_PHYSICS_FORCE
0C 00001000 DMG_NEVERGIB
0D 00002000 DMG_ALWAYSGIB
0E 00004000 DMG_DROWN
0F 00008000 DMG_PARALYZE
10 00010000 DMG_NERVEGAS
11 00020000 DMG_NOCLOSEDISTANCEMOD [HL2: DMG_POISON]
12 00040000 DMG_HALF_FALLOFF [HL2: DMG_RADIATION]
13 00080000 DMG_DROWNRECOVER
14 00100000 DMG_CRITICAL [HL2: DMG_ACID]
15 00200000 DMG_USEDISTANCEMOD [HL2: DMG_SLOWBURN]
16 00400000 DMG_REMOVENORAGDOLL
17 00800000 DMG_PHYSGUN
18 01000000 DMG_IGNITE [HL2: DMG_PLASMA]
19 02000000 DMG_USE_HITLOCATIONS [HL2: DMG_AIRBOAT]
1A 04000000 DMG_DISSOLVE
1B 08000000 DMG_BLAST_SURFACE
1C 10000000 DMG_DIRECT
1D 20000000 DMG_BUCKSHOT
1E 40000000 <unused>
1F 80000000 <unused>
@Kurotama-str
Copy link

Thanks, that helped find the ones I was missing.

Now DMG_CRIT instead of DMG_CRITICAL.
All these worked with sourcemod 1.12 compiler
DMG_GENERIC,
DMG_DIRECT,
DMG_CRUSH,
DMG_CRIT,
DMG_BULLET,
DMG_SLASH,
DMG_BUCKSHOT,
DMG_BURN,
DMG_IGNITE,
DMG_CLUB,
DMG_SHOCK,
DMG_SONIC,
DMG_BLAST,
DMG_BLAST_SURFACE,
DMG_ACID,
DMG_POISON,
DMG_RADIATION,
DMG_DROWN,
DMG_DROWNRECOVER,
DMG_PARALYZE,
DMG_NERVEGAS,
DMG_SLOWBURN,
DMG_PLASMA,
DMG_AIRBOAT,
DMG_VEHICLE,
DMG_DISSOLVE,
DMG_PREVENT_PHYSICS_FORCE,
DMG_USE_HITLOCATIONS,
DMG_NOCLOSEDISTANCEMOD,
DMG_USEDISTANCEMOD,
DMG_HALF_FALLOFF,
DMG_NEVERGIB,
DMG_ALWAYSGIB,
DMG_REMOVENORAGDOLL,
DMG_ENERGYBEAM,
DMG_RADIUS_MAX,
DMG_PHYSGUN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment