Debian Codegraph @

Descent3/deathinfo_external.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 --- HISTORICAL COMMENTS FOLLOW ---
19
20 * $Logfile: /DescentIII/main/deathinfo_external.h $
21 * $Revision: 10 $
22 * $Date: 4/26/99 11:39p $
23 * $Author: Matt $
24 *
25 * I don't know why we need this file, but here it is.
26 *
27 * $Log: /DescentIII/main/deathinfo_external.h $
28 *
29 * 10 4/26/99 11:39p Matt
30 * Added a flag to make fly-in-air deaths no tumble
31 *
32 * 9 4/25/99 10:19p Matt
33 * Fixed multiplayer and demo problems will killing an object from script,
34 * and cleaned up the death code a bit in the process.
35 *
36 * 8 4/23/99 12:32a Matt
37 * Added a death info option to play the explosion sound at the start of
38 * the delay, instead of at the end when the object actually dies.
39 *
40 * 7 4/21/99 3:01p Matt
41 * Added a new type for dying objects that have AI, instead of keeping a
42 * flag in the dying info.
43 *
44 * 6 4/02/99 2:46p Matt
45 * Moved flags from deathinfo to deathinfo_external, because the arhive
46 * builder only copies the latter into the archive.
47 *
48 * 5 4/02/99 11:23a Matt
49 * Made KillObject not take a death_info struct, but rather the death info
50 * as individual parameters. Moved death_info into objinfo.h, since it's
51 * only used for generic objects. Took out fade-away death hack, now that
52 * fade-away deaths can be explicitely set.
53 *
54 */
55
56 //
57 // Object death info flags
58 //
59
60 // Not a bit flag, but an override value
61 #define DF_DEFAULT -1 // use the default death for this object
62
63 // Unused flag
64 #define DF_UNUSED 0x0000001
65
66 // Delay options
67 #define DF_DELAY_FROM_ANIM 0x0000002 // delay time from death animation
68 #define DF_DELAY_SPARKS 0x0000004 // delay with sparks
69 #define DF_DELAY_LOSES_ANTIGRAV 0x0000008 // object gets gravity during delay
70 #define DF_DELAY_SMOKES 0x0000010 // delay with smoke
71 #define DF_DELAY_FLYING 0x0100000 // delay with object flying up into the air
72 #define DF_DELAY_FIREBALL 0x0200000 // delay with fireballs
73 #define DF_DELAY_FADE_AWAY 0x0400000 // fade away
74 #define DF_DELAY_NO_TUMBLE_FLY 0x2000000 // don't tumble while flying up in the air
75
76 // Options for what happens on death
77 #define DF_FIREBALL 0x0000020 // there are fireballs when the object dies
78 #define DF_BREAKS_APART 0x0000040 // the object breaks into pieces when it dies
79 #define DF_BLAST_RING 0x0000080 // a blast ring is created when the object dies
80 #define DF_REMAINS 0x0000100 // the object does not go away when it does
81 #define DF_LOSES_ANTIGRAV 0x0000200 // object gets gravity on death
82 #define DF_FADE_AWAY 0x0800000 // fades away
83
84 // Explosion size if there is a death fireball
85 #define DF_EXPL_SMALL 0x0000000 // use a small explosion
86 #define DF_EXPL_MEDIUM 0x0000400 // use a medium explosion
87 #define DF_EXPL_LARGE 0x0000800 // use a large explosion
88 #define DF_EXPL_SIZE_MASK 0x0000c00
89 #define DF_EXPL_SIZE_SHIFT 10
90
91 // What happens when this object hits something during delay
92 #define DF_CONTACT_FIREBALL 0x0001000 // creates fireballs
93 #define DF_CONTACT_BREAKS_APART 0x0002000 // break apart
94 #define DF_CONTACT_BLAST_RING 0x0004000 // blast ring
95 #define DF_CONTACT_REMAINS 0x0008000 // stays around
96
97 // Whether the debris puts off smoke
98 #define DF_DEBRIS_SMOKES 0x0010000 // the debris that's created smokes
99
100 // What happens to the debris when it times out or hits something
101 #define DF_DEBRIS_FIREBALL 0x0020000 // creates fireballs
102 #define DF_DEBRIS_BLAST_RING 0x0040000 // blast ring
103 #define DF_DEBRIS_REMAINS 0x0080000 // stays around
104
105 // Sound option
106 #define DF_DELAY_SOUND 0x1000000 // play sound at start of fade