-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.h
146 lines (135 loc) · 5.95 KB
/
constants.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
//just replaced it with rattle's. plus no dealing with a pissy Argh claiming that now we have to GPL EEEVVVRRYYTHING
//Argh, if you read this: honestly, wtf were you thinking trying to GPL a list of #defines?
// With the original cavedog comments STILL IN THEM!?
// You could at least have made it less bloody obvious that it was a direct copy/paste.
#ifndef CONSTANTS_H_
#define CONSTANTS_H_
#endif
#define SFXTYPE_VTOL 1
#define SFXTYPE_THRUST 2
#define SFXTYPE_WAKE1 3
#define SFXTYPE_WAKE2 4
#define SFXTYPE_REVERSEWAKE1 5
#define SFXTYPE_REVERSEWAKE2 6
#define SFXTYPE_POINTBASED 256
#define SFXTYPE_WHITESMOKE 256|1
#define SFXTYPE_BLACKSMOKE 256|2
#define SFXTYPE_SUBBUBBLES 256|3
#define SHATTER 1
#define EXPLODE_ON_HIT 2
#define FALL 4
#define SMOKE 8
#define FIRE 16
#define BITMAPONLY 32
#define BITMAP 10000001
// Explosion generators
#define UNIT_SFX1 1024
#define UNIT_SFX2 1025
#define UNIT_SFX3 1026
#define UNIT_SFX4 1027
#define UNIT_SFX5 1028
#define UNIT_SFX6 1029
#define UNIT_SFX7 1030
#define UNIT_SFX8 1031
// Weapons
#define FIRE_W1 2048
#define FIRE_W2 2049
#define FIRE_W3 2050
#define FIRE_W4 2051
#define FIRE_W5 2052
#define FIRE_W6 2053
#define FIRE_W7 2054
#define FIRE_W8 2055
#define DETO_W1 4096
#define DETO_W2 4097
#define DETO_W3 4098
#define DETO_W4 4099
#define DETO_W5 4100
#define DETO_W6 4101
#define DETO_W7 4102
#define DETO_W8 4103
// COB constants, as in CobInstance.cpp
// Indices for set/get value
#define ACTIVATION 1 // set or get
#define STANDINGMOVEORDERS 2 // set or get
#define STANDINGFIREORDERS 3 // set or get
#define HEALTH 4 // get (0-100%)
#define INBUILDSTANCE 5 // set or get
#define BUSY 6 // set or get (used by misc. special case missions like transport ships)
#define PIECE_XZ 7 // get
#define PIECE_Y 8 // get
#define UNIT_XZ 9 // get
#define UNIT_Y 10 // get
#define UNIT_HEIGHT 11 // get
#define XZ_ATAN 12 // get atan of packed x,z coords
#define XZ_HYPOT 13 // get hypot of packed x,z coords
#define ATAN 14 // get ordinary two-parameter atan
#define HYPOT 15 // get ordinary two-parameter hypot
#define GROUND_HEIGHT 16 // get land height, 0 if below water
#define BUILD_PERCENT_LEFT 17 // get 0 = unit is built and ready, 1-100 = How much is left to build
#define YARD_OPEN 18 // set or get (change which plots we occupy when building opens and closes)
#define BUGGER_OFF 19 // set or get (ask other units to clear the area)
#define ARMORED 20 // set or get
/*#define WEAPON_AIM_ABORTED 21
#define WEAPON_READY 22
#define WEAPON_LAUNCH_NOW 23
#define FINISHED_DYING 26
#define ORIENTATION 27*/
#define IN_WATER 28
#define CURRENT_SPEED 29
//#define MAGIC_DEATH 31
#define VETERAN_LEVEL 32
#define ON_ROAD 34
#define MAX_ID 70
#define MY_ID 71
#define UNIT_TEAM 72
#define UNIT_BUILD_PERCENT_LEFT 73
#define UNIT_ALLIED 74
#define MAX_SPEED 75
#define CLOAKED 76
#define WANT_CLOAK 77
#define GROUND_WATER_HEIGHT 78 // get land height, negative if below water
#define UPRIGHT 79 // set or get
#define POW 80 // get
#define PRINT 81 // get, so multiple args can be passed
#define HEADING 82 // get
#define TARGET_ID 83 // get
#define LAST_ATTACKER_ID 84 // get
#define LOS_RADIUS 85 // set or get
#define AIR_LOS_RADIUS 86 // set or get
#define RADAR_RADIUS 87 // set or get
#define JAMMER_RADIUS 88 // set or get
#define SONAR_RADIUS 89 // set or get
#define SONAR_JAM_RADIUS 90 // set or get
#define SEISMIC_RADIUS 91 // set or get
#define DO_SEISMIC_PING 92 // get
#define CURRENT_FUEL 93 // set or get
#define TRANSPORT_ID 94 // get
#define SHIELD_POWER 95 // set or get
#define STEALTH 96 // set or get
#define CRASHING 97 // set or get, returns whether aircraft isCrashing state
#define CHANGE_TARGET 98 // set, the value it's set to determines the affected weapon
#define CEG_DAMAGE 99 // set
#define COB_ID 100 // get
#define PLAY_SOUND 101 // get, so multiple args can be passed
#define KILL_UNIT 102 // get KILL_UNIT(unitId, SelfDestruct=true, Reclaimed=false)
#define ALPHA_THRESHOLD 103 // set or get
#define SET_WEAPON_UNIT_TARGET 106 // get (fake set)
#define SET_WEAPON_GROUND_TARGET 107 // get (fake set)
#define SONAR_STEALTH 108 // set or get
// NOTE: [LUA0 - LUA9] are defined in CobThread.cpp as [110 - 119]
#define FLANK_B_MODE 120 // set or get
#define FLANK_B_DIR 121 // set or get, set is through get for multiple args
#define FLANK_B_MOBILITY_ADD 122 // set or get
#define FLANK_B_MAX_DAMAGE 123 // set or get
#define FLANK_B_MIN_DAMAGE 124 // set or get
#define WEAPON_RELOADSTATE 125 // get (with fake set)
#define WEAPON_RELOADTIME 126 // get (with fake set)
#define WEAPON_ACCURACY 127 // get (with fake set)
#define WEAPON_SPRAY 128 // get (with fake set)
#define WEAPON_RANGE 129 // get (with fake set)
#define WEAPON_PROJECTILE_SPEED 130 // get (with fake set)
#define MIN 131 // get
#define MAX 132 // get
#define ABS 133 // get
#define GAME_FRAME 134 // get