Nuclide
Software Development Kit for id Tech
damage.h File Reference

Go to the source code of this file.

Macros

#define DMG_ACID   DMG_CHEMICAL
 

Enumerations

enum  damageType_t {
  DMG_GENERIC = 1 , DMG_CRUSH = 2 , DMG_BULLET = 4 , DMG_SLASH = 8 ,
  DMG_FREEZE = 16 , DMG_BURN = 32 , DMG_VEHICLE = 64 , DMG_FALL = 128 ,
  DMG_EXPLODE = 256 , DMG_BLUNT = 512 , DMG_ELECTRO = 1024 , DMG_SOUND = 2048 ,
  DMG_ENERGYBEAM = 4096 , DMG_GIB_NEVER = 8192 , DMG_GIB_ALWAYS = 16384 , DMG_DROWN = 32768 ,
  DMG_PARALYZE = 65536 , DMG_NERVEGAS = 131072 , DMG_POISON = 262144 , DMG_RADIATION = 524288 ,
  DMG_DROWNRECOVER = 1048576 , DMG_CHEMICAL = 2097152 , DMG_SLOWBURN = 4194304 , DMG_SLOWFREEZE = 8388608 ,
  DMG_SKIP_ARMOR = 16777216 , DMG_SKIP_RAGDOLL = 33554432
}
 All available damage types. More...
 

Macro Definition Documentation

◆ DMG_ACID

#define DMG_ACID   DMG_CHEMICAL

Enumeration Type Documentation

◆ damageType_t

All available damage types.

Enumerator
DMG_GENERIC 

Non specific.

DMG_CRUSH 

Being crushed by something heavy.

DMG_BULLET 

Shot by a gun.

DMG_SLASH 

Cutting, from swords or knives.

DMG_FREEZE 

Ice/freezing temperature damage.

DMG_BURN 

Short flame, or on-fire type damage.

DMG_VEHICLE 

Vehicle ramming into you at speed.

DMG_FALL 

Fall damage.

DMG_EXPLODE 

Firery explosion damage.

DMG_BLUNT 

Blunt damage, like from a pipe or a bat.

DMG_ELECTRO 

Electric shock damage.

DMG_SOUND 

Noise so irritating it creates damage.

DMG_ENERGYBEAM 

Energy beam damage.

DMG_GIB_NEVER 

This damage type doesn't cause gibbing.

DMG_GIB_ALWAYS 

This damage type will always gib.

DMG_DROWN 

Drown damage, gets restored over time.

DMG_PARALYZE 

Paralyzation damage.

DMG_NERVEGAS 

Toxins to the nerve, special effect?

DMG_POISON 

Poisonous damage.

Similar to nervegas?

DMG_RADIATION 

Radiation damage.

Geiger counter go brrr

DMG_DROWNRECOVER 

Health increase from drown recovery.

DMG_CHEMICAL 

Chemical damage.

DMG_SLOWBURN 

Slow burning, just like burning but different rate.

DMG_SLOWFREEZE 

Slow freeze, just freezing but different rate.

DMG_SKIP_ARMOR 

This damage will skip armor checks entirely.

DMG_SKIP_RAGDOLL 

This damage will not affect ragdolls.