Nuclide
Software Development Kit for id Tech
damage.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016-2024 Vera Visions LLC.
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*/
16
18typedef enum
19{
25 DMG_BURN = 32,
27 DMG_FALL = 128,
29 DMG_BLUNT = 512,
30 DMG_ELECTRO = 1024,
31 DMG_SOUND = 2048,
35 DMG_DROWN = 32768,
36 DMG_PARALYZE = 65536,
37 DMG_NERVEGAS = 131072,
38 DMG_POISON = 262144,
39 DMG_RADIATION = 524288,
40 DMG_DROWNRECOVER = 1048576,
41 DMG_CHEMICAL = 2097152,
42 DMG_SLOWBURN = 4194304,
43 DMG_SLOWFREEZE = 8388608,
44 DMG_SKIP_ARMOR = 16777216,
45 DMG_SKIP_RAGDOLL = 33554432
47
48#define DMG_ACID DMG_CHEMICAL
damageType_t
All available damage types.
Definition: damage.h:19
@ DMG_BULLET
Shot by a gun.
Definition: damage.h:22
@ DMG_SKIP_RAGDOLL
This damage will not affect ragdolls.
Definition: damage.h:45
@ DMG_DROWN
Drown damage, gets restored over time.
Definition: damage.h:35
@ DMG_PARALYZE
Paralyzation damage.
Definition: damage.h:36
@ DMG_BURN
Short flame, or on-fire type damage.
Definition: damage.h:25
@ DMG_CHEMICAL
Chemical damage.
Definition: damage.h:41
@ DMG_SLASH
Cutting, from swords or knives.
Definition: damage.h:23
@ DMG_POISON
Poisonous damage.
Definition: damage.h:38
@ DMG_ENERGYBEAM
Energy beam damage.
Definition: damage.h:32
@ DMG_FREEZE
Ice/freezing temperature damage.
Definition: damage.h:24
@ DMG_GIB_NEVER
This damage type doesn't cause gibbing.
Definition: damage.h:33
@ DMG_GENERIC
Non specific.
Definition: damage.h:20
@ DMG_SOUND
Noise so irritating it creates damage.
Definition: damage.h:31
@ DMG_GIB_ALWAYS
This damage type will always gib.
Definition: damage.h:34
@ DMG_NERVEGAS
Toxins to the nerve, special effect?
Definition: damage.h:37
@ DMG_CRUSH
Being crushed by something heavy.
Definition: damage.h:21
@ DMG_SLOWBURN
Slow burning, just like burning but different rate.
Definition: damage.h:42
@ DMG_DROWNRECOVER
Health increase from drown recovery.
Definition: damage.h:40
@ DMG_FALL
Fall damage.
Definition: damage.h:27
@ DMG_RADIATION
Radiation damage.
Definition: damage.h:39
@ DMG_VEHICLE
Vehicle ramming into you at speed.
Definition: damage.h:26
@ DMG_ELECTRO
Electric shock damage.
Definition: damage.h:30
@ DMG_SLOWFREEZE
Slow freeze, just freezing but different rate.
Definition: damage.h:43
@ DMG_BLUNT
Blunt damage, like from a pipe or a bat.
Definition: damage.h:29
@ DMG_EXPLODE
Firery explosion damage.
Definition: damage.h:28
@ DMG_SKIP_ARMOR
This damage will skip armor checks entirely.
Definition: damage.h:44