Nuclide
Software Development Kit for id Technology
damage.h
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{
20 DMG_GENERIC = 1,
21 DMG_CRUSH = 2,
22 DMG_BULLET = 4,
23 DMG_SLASH = 8,
24 DMG_FREEZE = 16,
25 DMG_BURN = 32,
26 DMG_VEHICLE = 64,
27 DMG_FALL = 128,
28 DMG_EXPLODE = 256,
29 DMG_BLUNT = 512,
30 DMG_ELECTRO = 1024,
31 DMG_SOUND = 2048,
32 DMG_ENERGYBEAM = 4096,
33 DMG_GIB_NEVER = 8192,
34 DMG_GIB_ALWAYS = 16384,
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
46} damageType_t;
47
48#define DMG_ACID DMG_CHEMICAL