Debian Codegraph @

Descent3/aistruct_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/aistruct_external.h $
21 * $Revision: 29 $
22 * $Date: 10/23/99 2:43a $
23 * $Author: Chris $
24 *
25 * Description goes here
26 *
27 * $Log: /DescentIII/main/aistruct_external.h $
28 *
29 * 29 10/23/99 2:43a Chris
30 * Added the PutObjectOnObject AI Goal
31 *
32 * 28 10/17/99 11:58p Chris
33 * Improved the hearing/seeing code, Added AIN_FIRED_WEAPON notify, and
34 * added a *hack* so that the final boss could fire his weapons during a
35 * cutscene... (usually this is a no-no).
36 *
37 * 27 5/05/99 4:56p Chris
38 * Added the RType powerup for the GB
39 *
40 * 26 5/01/99 2:21a Chris
41 * Use the GF_SPEED_XXX stuff
42 *
43 * 25 4/30/99 2:47p Chris
44 * Added the GF_SPEED stuff
45 *
46 * 24 4/28/99 5:33a Chris
47 * Further improved the BNode system. (It actually works inside and
48 * outside now)
49 *
50 * 23 4/24/99 2:20a Chris
51 * Added the Neutral_till_hit flag
52 *
53 * 22 4/18/99 7:27a Chris
54 * Added AIAF_IMMEDIATE to force non-tiling and instant anim loop changes
55 *
56 * 21 4/09/99 10:33a Chris
57 * Improvements to Freud
58 *
59 * 20 3/30/99 4:32p Chris
60 * Moved subtype to the main goal sturct (from goal_info). Made move
61 * relative object vec finishable. (Like get behind player)
62 *
63 * 19 3/27/99 3:25p Chris
64 * Added comment headers
65 *
66 * $NoKeywords: $
67 */
68
69 #ifndef _AISTRUCT_EXTERNAL_H_
70 #define _AISTRUCT_EXTERNAL_H_cxx . . $ `Descent3/aistruct_external.h:70:9`!
71
72 // AI Type -- make sure to update MAX_AI_TYPES if you add a new class
73
74 #define AIT_FLYLANDERcxx . . $ `Descent3/aistruct_external.h:74:9`! 0
75 #define AIT_STALKERcxx . . $ `Descent3/aistruct_external.h:75:9`! 1
76 #define AIT_EVADER1cxx . . $ `Descent3/aistruct_external.h:76:9`! 2
77 #define AIT_EVADER2cxx . . $ `Descent3/aistruct_external.h:77:9`! 3
78 #define AIT_STATIONARY_TURRETcxx . . $ `Descent3/aistruct_external.h:78:9`! 4
79 #define AIT_AIScxx . . $ `Descent3/aistruct_external.h:79:9`! 5
80 #define AIT_MELEE1cxx . . $ `Descent3/aistruct_external.h:80:9`! 6
81 #define AIT_BIRD_FLOCK1cxx . . $ `Descent3/aistruct_external.h:81:9`! 7
82 #define AIT_HERD1cxx . . $ `Descent3/aistruct_external.h:82:9`! 8
83
84 // AI Movement flying types
85
86 #define AIMF_NORMALcxx . . $ `Descent3/aistruct_external.h:86:9`! 0
87 #define AIMF_PATHcxx . . $ `Descent3/aistruct_external.h:87:9`! 1
88 #define AIMF_HELICOPTERcxx . . $ `Descent3/aistruct_external.h:88:9`! 2
89 #define AIMF_HOVERCRAFTcxx . . $ `Descent3/aistruct_external.h:89:9`! 3
90 #define AIMF_JETcxx . . $ `Descent3/aistruct_external.h:90:9`! 4
91 #define AIMF_PLAYERLIKEcxx . . $ `Descent3/aistruct_external.h:91:9`! 5 // For NPC ships
92 #define AIMF_BUDDYLIKEcxx . . $ `Descent3/aistruct_external.h:92:9`! 6 // For theif/buddy bots
93
94 //-------------------------------------------------
95 // AI Movement Information
96 //-------------------------------------------------
97
98 // AI Movement walking types
99
100 #define AIMW_RESTRICTED_FLATcxx . . $ `Descent3/aistruct_external.h:100:9`! \
101 0 // Specify a min/max angle of incline (so we can restrict movement -- i.e we can even do
102 // ceiling only robots)
103 #define AIMW_RESTRICTED_LOW_ANGLEcxx . . $ `Descent3/aistruct_external.h:103:9`! 1
104 #define AIMW_RESTRICTED_HIGH_ANGLEcxx . . $ `Descent3/aistruct_external.h:104:9`! 2
105 #define AIMW_NON_RESTRICTEDcxx . . $ `Descent3/aistruct_external.h:105:9`! 3
106 #define AIMW_UNDERWATERONLYcxx . . $ `Descent3/aistruct_external.h:106:9`! 4 // Stays in water
107 #define AIMW_WATERSURFACEcxx . . $ `Descent3/aistruct_external.h:107:9`! 5
108
109 //-------------------------------------------------
110 // AI Animation Info
111 //-------------------------------------------------
112
113 // animation flags
114
115 #define AIAF_LOOPINGcxx . . $ `Descent3/aistruct_external.h:115:9`! 1
116 #define AIAF_NOTIFYcxx . . $ `Descent3/aistruct_external.h:116:9`! 2
117 #define AIAF_UPDATE_WBScxx . . $ `Descent3/aistruct_external.h:117:9`! 4
118 #define AIAF_USE_SPEEDcxx . . $ `Descent3/aistruct_external.h:118:9`! 8
119 #define AIAF_IMMEDIATEcxx . . $ `Descent3/aistruct_external.h:119:9`! 16 // Force to not tile and set immediately
120
121 #define AIPM_ORIENTcxx . . $ `Descent3/aistruct_external.h:121:9`! 0x00000018 // Masks for Orientation
122 #define AIPF_NEXT_NODEcxx . . $ `Descent3/aistruct_external.h:122:9`! 0x00000000 // Orientate to velocity
123 #define AIPF_VELOCITYcxx . . $ `Descent3/aistruct_external.h:123:9`! 0x00000008 // No automatic updating of orientation
124 #define AIPF_NODE_ORIENTcxx . . $ `Descent3/aistruct_external.h:124:9`! 0x00000010 // Node orientate
125 #define AIPF_USER_DEFINEDcxx . . $ `Descent3/aistruct_external.h:125:9`! 0x00000018 // Always face the next node
126
127 //-------------------------------------------------
128 // AI Goal Enders
129 //-------------------------------------------------
130
131 #define MAX_ENABLERS_PER_GOALcxx . . $ `Descent3/aistruct_external.h:131:9`! 5 // We might malloc this depending of space and varitions between AIs
132
133 // Ender types
134
135 /*
136 #define AIE_NOT_USED 0
137 #define AIE_PLAYER_DEAD 1
138 #define AIE_PLAYER_AWAY 2
139 #define AIE_SEE_OBJ 3
140 #define AIE_TOUCH_OBJ 5
141 #define AIE_HIDE_FROM_OBJ 6
142 #define AIE_NOT_COLLIDE_VECTOR 7 // OBJ and sig. make sure the dead/new objects are not avoided.
143 #define AIE_TIME_TILL_GOAL_KILL 8
144 #define AIE_MOVEMENT_TYPE 9
145 #define AIE_AFTER_TASK 10 // Endable goals (like touch obj, fire on obj)
146 #define AIE_POSITION 11
147 #define AIE_VELOCITY 12
148 #define AIE_NOT_MOVEMENT_TYPE 13
149 #define AIE_ADD_GOAL_TYPE 14
150 #define AIE_FUZZY_TIME 15
151 #define AIE_DIFF_ROOM 16 // On the terrain it means a distance of more than ???
152 #define AIE_SAME_ROOM 18
153 */
154
155 #define AIE_NEARcxx . . $ `Descent3/aistruct_external.h:155:9`! 1
156 #define AIE_FARcxx . . $ `Descent3/aistruct_external.h:156:9`! 2
157 #define AIE_LTE_AWARENESScxx . . $ `Descent3/aistruct_external.h:157:9`! 3
158 #define AIE_GT_AWARENESScxx . . $ `Descent3/aistruct_external.h:158:9`! 4
159 #define AIE_LTE_LAST_SEE_TARGET_INTERVALcxx . . $ `Descent3/aistruct_external.h:159:9`! 5
160 #define AIE_GT_LAST_SEE_TARGET_INTERVALcxx . . $ `Descent3/aistruct_external.h:160:9`! 6
161 #define AIE_AI_STATUS_FLAGcxx . . $ `Descent3/aistruct_external.h:161:9`! 7
162 #define AIE_SCRIPTEDcxx . . $ `Descent3/aistruct_external.h:162:9`! 8
163 #define AIE_FEARcxx . . $ `Descent3/aistruct_external.h:163:9`! 9
164 #define AIE_ANGRYcxx . . $ `Descent3/aistruct_external.h:164:9`! 10
165 #define AIE_CURIOUScxx . . $ `Descent3/aistruct_external.h:165:9`! 11
166 #define AIE_FRUSTRATEDcxx . . $ `Descent3/aistruct_external.h:166:9`! 12
167 #define AIE_DELAY_TIMEcxx . . $ `Descent3/aistruct_external.h:167:9`! 13
168 #define AIE_CLEAR_TIMEcxx . . $ `Descent3/aistruct_external.h:168:9`! 14
169
170 // How are the ending conditions related (BOOLEAN INFO)
171
172 #define ENABLER_AND_NEXTcxx . . $ `Descent3/aistruct_external.h:172:9`! 0
173 #define ENABLER_OR_NEXTcxx . . $ `Descent3/aistruct_external.h:173:9`! 1
174 #define ENABLER_XOR_NEXTcxx . . $ `Descent3/aistruct_external.h:174:9`! 3
175 #define ENABLER_NEW_BOOL_NEXTcxx . . $ `Descent3/aistruct_external.h:175:9`! 4
176
177 // Maximum goals a robot can have at any given time
178 #define MAX_GOALScxx . . $ `Descent3/aistruct_external.h:178:9`! 10
179
180 // AI Goal Types
181 #define AIG_GET_AWAY_FROM_OBJcxx . . $ `Descent3/aistruct_external.h:181:9`! 0x00000001 // Distance
182 #define AIG_HIDE_FROM_OBJcxx . . $ `Descent3/aistruct_external.h:182:9`! 0x00000002 // Line of sight
183 #define AIG_GET_TO_OBJcxx . . $ `Descent3/aistruct_external.h:183:9`! 0x00000004 // Butt up to an object
184 #define AIG_ATTACH_TO_OBJcxx . . $ `Descent3/aistruct_external.h:184:9`! 0x00000008 // Within a distance from obj
185 #define AIG_FIRE_AT_OBJcxx . . $ `Descent3/aistruct_external.h:185:9`! 0x00000010
186 #define AIG_MELEE_TARGETcxx . . $ `Descent3/aistruct_external.h:186:9`! 0x00000020
187 #define AIG_WANDER_AROUNDcxx . . $ `Descent3/aistruct_external.h:187:9`! 0x00000040
188 #define AIG_USE_MOVEMENT_TYPEcxx . . $ `Descent3/aistruct_external.h:188:9`! 0x00000080
189 #define AIG_PLACE_OBJ_ON_OBJcxx . . $ `Descent3/aistruct_external.h:189:9`! 0x00000100
190 #define AIG_GUARD_OBJcxx . . $ `Descent3/aistruct_external.h:190:9`! 0x00000200
191 #define AIG_GUARD_AREAcxx . . $ `Descent3/aistruct_external.h:191:9`! 0x00000400
192 #define AIG_BLANK3cxx . . $ `Descent3/aistruct_external.h:192:9`! 0x00000800
193 #define AIG_FACE_DIRcxx . . $ `Descent3/aistruct_external.h:193:9`! 0x00001000
194 #define AIG_DODGE_OBJcxx . . $ `Descent3/aistruct_external.h:194:9`! 0x00002000
195 #define AIG_FOLLOW_PATHcxx . . $ `Descent3/aistruct_external.h:195:9`! 0x00004000
196 #define AIG_SET_ANIMcxx . . $ `Descent3/aistruct_external.h:196:9`! 0x00008000
197 #define AIG_SCRIPTEDcxx . . $ `Descent3/aistruct_external.h:197:9`! 0x00010000
198 #define AIG_MOVE_AROUND_OBJcxx . . $ `Descent3/aistruct_external.h:198:9`! 0x00020000
199 #define AIG_MOVE_RELATIVE_OBJ_VECcxx . . $ `Descent3/aistruct_external.h:199:9`! 0x00040000
200 #define AIG_MOVE_RELATIVE_OBJcxx . . $ `Descent3/aistruct_external.h:200:9`! 0x00080000
201 #define AIG_GET_TO_POScxx . . $ `Descent3/aistruct_external.h:201:9`! 0x00100000
202 #define AIG_DO_MELEE_ANIMcxx . . $ `Descent3/aistruct_external.h:202:9`! 0x00200000
203 #define AIG_GET_AROUND_OBJcxx . . $ `Descent3/aistruct_external.h:203:9`! 0x00400000
204 #define AIG_GET_AROUND_POScxx . . $ `Descent3/aistruct_external.h:204:9`! 0x00800000
205 #define AIG_ALIGNMENTcxx . . $ `Descent3/aistruct_external.h:205:9`! 0x01000000
206 #define AIG_AVOID_OBJcxx . . $ `Descent3/aistruct_external.h:206:9`! 0x02000000
207 #define AIG_COHESION_OBJcxx . . $ `Descent3/aistruct_external.h:207:9`! 0x04000000
208 #define AIG_ALIGN_OBJcxx . . $ `Descent3/aistruct_external.h:208:9`! 0x08000000
209
210 // Goal end types (Not used yet)
211 #define AIGE_HANDLE_INVALIDcxx . . $ `Descent3/aistruct_external.h:211:9`! 0
212 #define AIGE_SUCESSFULcxx . . $ `Descent3/aistruct_external.h:212:9`! 1
213 #define AIGE_OVERLOADcxx . . $ `Descent3/aistruct_external.h:213:9`! 2
214
215 // Goal Flags
216 #define GF_NONFLUSHABLEcxx . . $ `Descent3/aistruct_external.h:216:9`! 0x00000001 // A perminent goal
217 #define GF_HAS_PATHcxx . . $ `Descent3/aistruct_external.h:217:9`! 0x00000002 // This goal has a path (not used yet)
218 #define GF_KEEP_AT_COMPLETIONcxx . . $ `Descent3/aistruct_external.h:218:9`! 0x00000004 // Keeps the goal as long at it is valid
219 #define GF_NOTIFIEScxx . . $ `Descent3/aistruct_external.h:219:9`! 0x00000008 // By default, goals do not notify (unless an error occurs)
220 #define GF_OBJ_IS_TARGETcxx . . $ `Descent3/aistruct_external.h:220:9`! 0x00000010
221 #define GF_CIRCLE_OBJcxx . . $ `Descent3/aistruct_external.h:221:9`! 0x00000020
222 #define GF_CIRCLE_POScxx . . $ `Descent3/aistruct_external.h:222:9`! 0x00000040
223 #define GF_USE_BLINE_IF_SEES_GOALcxx . . $ `Descent3/aistruct_external.h:223:9`! 0x00000080
224 #define GF_FORCE_AWARENESScxx . . $ `Descent3/aistruct_external.h:224:9`! 0x00000100
225 #define GF_OBJS_ARE_FRIENDScxx . . $ `Descent3/aistruct_external.h:225:9`! 0x00000200
226 #define GF_OBJS_ARE_SPECIEScxx . . $ `Descent3/aistruct_external.h:226:9`! 0x00000400
227 #define GF_OBJS_ARE_ENEMIEScxx . . $ `Descent3/aistruct_external.h:227:9`! 0x00000800
228 #define GF_ORIENT_VELOCITYcxx . . $ `Descent3/aistruct_external.h:228:9`! \
229 0x00001000 // Defaults to target if there is one (otherwise, to velocity) This flag forces velocity.
230 #define GF_RAMPED_INFLUENCEcxx . . $ `Descent3/aistruct_external.h:230:9`! 0x00002000 // By default, distance based goals are (less dist = more influence)
231 #define GF_MIN_MAX_INFLUENCEcxx . . $ `Descent3/aistruct_external.h:231:9`! 0x00004000
232 #define GF_SCRIPTED_INFLUENCEcxx . . $ `Descent3/aistruct_external.h:232:9`! 0x00008000
233 #define GF_ORIENT_TARGETcxx . . $ `Descent3/aistruct_external.h:233:9`! 0x00010000
234 #define GF_ORIENT_SCRIPTEDcxx . . $ `Descent3/aistruct_external.h:234:9`! 0x00020000
235 #define GF_ORIENT_GOAL_OBJcxx . . $ `Descent3/aistruct_external.h:235:9`! 0x00040000
236 #define GF_ORIENT_FOR_ATTACHcxx . . $ `Descent3/aistruct_external.h:236:9`! 0x00080000
237 #define GF_ORIENT_PATH_NODEcxx . . $ `Descent3/aistruct_external.h:237:9`! 0x00100000
238 #define GF_PATH_FOLLOW_EXACTLYcxx . . $ `Descent3/aistruct_external.h:238:9`! 0x00200000
239 #define GF_PATH_REVERSE_AT_ENDcxx . . $ `Descent3/aistruct_external.h:239:9`! 0x00400000
240 #define GF_PATH_CIRCLE_AT_ENDcxx . . $ `Descent3/aistruct_external.h:240:9`! 0x00800000
241 #define GFM_END_OF_PATHcxx . . $ `Descent3/aistruct_external.h:241:9`! (GF_PATH_REVERSE_AT_END | GF_PATH_CIRCLE_AT_END)
242 #define GF_PATH_MOVE_REVERSE_DIRcxx . . $ `Descent3/aistruct_external.h:242:9`! 0x01000000
243 #define GF_IN_CLEARcxx . . $ `Descent3/aistruct_external.h:243:9`! 0x02000000 // (Internal flag) Accounts for new goals overriding old goals within a GoalClearGoal
244 #define GF_IS_ATTACH_CHILDcxx . . $ `Descent3/aistruct_external.h:244:9`! 0x04000000 // The moving object (for the attach goal) is actually the child
245 #define GF_CLEAR_IF_NOT_CURRENT_GOALcxx . . $ `Descent3/aistruct_external.h:245:9`! 0x08000000 // Removes the goal if it isn't the current one
246 #define GF_ORIENT_SET_FVECcxx . . $ `Descent3/aistruct_external.h:246:9`! 0x10000000 // Face the direction of the fvec
247 #define GF_ORIENT_SET_FVEC_UVECcxx . . $ `Descent3/aistruct_external.h:247:9`! 0x20000000 // Face the fvec and uvec
248 #define GF_SPEED_MASKcxx . . $ `Descent3/aistruct_external.h:248:9`! (0x40000000 | 0x80000000)
249 #define GF_SPEED_NORMALcxx . . $ `Descent3/aistruct_external.h:249:9`! 0x00000000
250 #define GF_SPEED_DODGEcxx . . $ `Descent3/aistruct_external.h:250:9`! 0x40000000
251 #define GF_SPEED_FLEEcxx . . $ `Descent3/aistruct_external.h:251:9`! 0x80000000
252 #define GF_SPEED_ATTACKcxx . . $ `Descent3/aistruct_external.h:252:9`! (0x40000000 | 0x80000000)
253
254 #define GWF_ONLY_IN_CUR_MINEcxx . . $ `Descent3/aistruct_external.h:254:9`! 0x00
255 #define GWF_ONLY_MINEScxx . . $ `Descent3/aistruct_external.h:255:9`! 0x01
256 #define GWF_ONLY_TERRAINcxx . . $ `Descent3/aistruct_external.h:256:9`! 0x02
257
258 #define ISORIENTGOALcxx . . $ `Descent3/aistruct_external.h:258:9`!(x) \
259 ((x)->flags & (GF_ORIENT_VELOCITY | GF_ORIENT_TARGET | GF_ORIENT_SCRIPTED | GF_ORIENT_GOAL_OBJ | \
260 GF_ORIENT_FOR_ATTACH | GF_ORIENT_PATH_NODE | GF_ORIENT_SET_FVEC | GF_ORIENT_SET_FVEC_UVEC))
261 #define ISTRACKGOALcxx . . $ `Descent3/aistruct_external.h:261:9`!(x) ((x)->flags & (GF_OBJS_ARE_FRIENDS | GF_OBJS_ARE_SPECIES | GF_OBJS_ARE_ENEMIES))
262
263 // Goal Sub-Types -- game.consts
264 #define GST_FVECcxx . . $ `Descent3/aistruct_external.h:264:9`! 0
265 #define GST_NEG_FVECcxx . . $ `Descent3/aistruct_external.h:265:9`! 1
266 #define GST_RVECcxx . . $ `Descent3/aistruct_external.h:266:9`! 2
267 #define GST_NEG_RVECcxx . . $ `Descent3/aistruct_external.h:267:9`! 3
268 #define GST_UVECcxx . . $ `Descent3/aistruct_external.h:268:9`! 4
269 #define GST_NEG_UVECcxx . . $ `Descent3/aistruct_external.h:269:9`! 5
270
271 // Influence constants
272 #define MAX_INFLUENCEcxx . . $ `Descent3/aistruct_external.h:272:9`! 10000.0f
273 #define HIGH_INFLUENCEcxx . . $ `Descent3/aistruct_external.h:273:9`! 10.0f
274 #define NORMAL_INFLUENCEcxx . . $ `Descent3/aistruct_external.h:274:9`! 1.0f
275 #define LOW_INFLUENCEcxx . . $ `Descent3/aistruct_external.h:275:9`! 0.5f
276
277 #define MAX_INFLUENCE_DELTA_CONSIDERcxx . . $ `Descent3/aistruct_external.h:277:9`! 100.0f
278
279 #define NUM_ACTIVATION_LEVELScxx . . $ `Descent3/aistruct_external.h:279:9`! 4
280 #define ACTIVATION_BLEND_LEVELcxx . . $ `Descent3/aistruct_external.h:280:9`! 100
281
282 //-------------------------------------------------
283 // AI notification of events
284 //-------------------------------------------------
285
286 #define AIN_NEW_MOVEMENTcxx . . $ `Descent3/aistruct_external.h:286:9`! 1
287 #define AIN_OBJ_KILLEDcxx . . $ `Descent3/aistruct_external.h:287:9`! 2
288 #define AIN_WHIT_BY_OBJcxx . . $ `Descent3/aistruct_external.h:288:9`! 3
289 #define AIN_SEE_TARGETcxx . . $ `Descent3/aistruct_external.h:289:9`! 4
290 #define AIN_PLAYER_SEES_YOUcxx . . $ `Descent3/aistruct_external.h:290:9`! 5
291 #define AIN_WHIT_OBJECTcxx . . $ `Descent3/aistruct_external.h:291:9`! 6
292 #define AIN_TARGET_DIEDcxx . . $ `Descent3/aistruct_external.h:292:9`! 7 // In code, it only notifies if the target is gone
293 #define AIN_OBJ_FIREDcxx . . $ `Descent3/aistruct_external.h:293:9`! 8
294 #define AIN_GOAL_COMPLETEcxx . . $ `Descent3/aistruct_external.h:294:9`! 9
295 #define AIN_GOAL_FAILcxx . . $ `Descent3/aistruct_external.h:295:9`! 10
296 #define AIN_GOAL_ERRORcxx . . $ `Descent3/aistruct_external.h:296:9`! 11
297 #define AIN_HEAR_NOISEcxx . . $ `Descent3/aistruct_external.h:297:9`! 12
298 #define AIN_NEAR_TARGETcxx . . $ `Descent3/aistruct_external.h:298:9`! 13
299 #define AIN_HIT_BY_WEAPONcxx . . $ `Descent3/aistruct_external.h:299:9`! 14
300 #define AIN_NEAR_WALLcxx . . $ `Descent3/aistruct_external.h:300:9`! 15
301 #define AIN_USER_DEFINEDcxx . . $ `Descent3/aistruct_external.h:301:9`! 16 // Processed in script
302 #define AIN_TARGET_INVALIDcxx . . $ `Descent3/aistruct_external.h:302:9`! 17 // Goal is killed
303 #define AIN_GOAL_INVALIDcxx . . $ `Descent3/aistruct_external.h:303:9`! 18
304 #define AIN_SCRIPTED_GOALcxx . . $ `Descent3/aistruct_external.h:304:9`! 19
305 #define AIN_SCRIPTED_ENABLERcxx . . $ `Descent3/aistruct_external.h:305:9`! 20
306 #define AIN_ANIM_COMPLETEcxx . . $ `Descent3/aistruct_external.h:306:9`! 21
307 #define AIN_BUMPED_OBJcxx . . $ `Descent3/aistruct_external.h:307:9`! 22
308 #define AIN_MELEE_HITcxx . . $ `Descent3/aistruct_external.h:308:9`! 23
309 #define AIN_MELEE_ATTACK_FRAMEcxx . . $ `Descent3/aistruct_external.h:309:9`! 24
310 #define AIN_SCRIPTED_INFLUENCEcxx . . $ `Descent3/aistruct_external.h:310:9`! 25
311 #define AIN_SCRIPTED_ORIENTcxx . . $ `Descent3/aistruct_external.h:311:9`! 26
312 #define AIN_MOVIE_STARTcxx . . $ `Descent3/aistruct_external.h:312:9`! 27
313 #define AIN_MOVIE_ENDcxx . . $ `Descent3/aistruct_external.h:313:9`! 28
314 #define AIN_FIRED_WEAPONcxx . . $ `Descent3/aistruct_external.h:314:9`! 29
315
316 #define AI_NOTIFIES_ALWAYS_ONcxx . . $ `Descent3/aistruct_external.h:316:9`! \
317 ((0x00000001 << AIN_ANIM_COMPLETE) | (0x00000001 << AIN_NEW_MOVEMENT) | (0x00000001 << AIN_PLAYER_SEES_YOU) | \
318 (0x00000001 << AIN_GOAL_COMPLETE) | (0x00000001 << AIN_GOAL_FAIL) | (0x00000001 << AIN_GOAL_ERROR) | \
319 (0x00000001 << AIN_USER_DEFINED) | (0x00000001 << AIN_TARGET_DIED) | (0x00000001 << AIN_TARGET_INVALID) | \
320 (0x00000001 << AIN_BUMPED_OBJ) | (0x00000001 << AIN_MELEE_HIT) | (0x00000001 << AIN_MELEE_ATTACK_FRAME) | \
321 (0x00000001 << AIN_TARGET_INVALID))
322
323 #define AWARE_FULLYcxx . . $ `Descent3/aistruct_external.h:323:9`! 100.0f
324 #define AWARE_MOSTLYcxx . . $ `Descent3/aistruct_external.h:324:9`! 60.0f
325 #define AWARE_PARTIALLYcxx . . $ `Descent3/aistruct_external.h:325:9`! 30.0f
326 #define AWARE_BARELYcxx . . $ `Descent3/aistruct_external.h:326:9`! 15.0f
327 #define AWARE_NONEcxx . . $ `Descent3/aistruct_external.h:327:9`! 0.0f
328
329 #define MAX_AWARE_TIMEcxx . . $ `Descent3/aistruct_external.h:329:9`! 5.0f
330 #define MAX_RENDER_RECENTLY_TIMEcxx . . $ `Descent3/aistruct_external.h:330:9`! 120.0f
331
332 #define AWARENESS_RENDER_RECENTLY_INTERVALcxx . . $ `Descent3/aistruct_external.h:332:9`! 20.0f
333 #define AWARENESS_SEE_TARGET_RECENTLY_INTERVALcxx . . $ `Descent3/aistruct_external.h:333:9`! 25.0f
334
335 #define AWARE_FALLOFFcxx . . $ `Descent3/aistruct_external.h:335:9`! (AWARE_FULLY / MAX_AWARE_TIME)
336 #define AWARE_RENDER_RECENTLY_FALLOFFcxx . . $ `Descent3/aistruct_external.h:336:9`! (AWARE_FULLY / MAX_RENDER_RECENTLY_TIME)
337
338 #define MIN_NEXT_PATH_INTERVALcxx . . $ `Descent3/aistruct_external.h:338:9`! 2.0f
339
340 //-------------------------------------------------
341 // AI flags
342 //-------------------------------------------------
343
344 // Flags for AI info
345 #define AIF_WEAPON1cxx . . $ `Descent3/aistruct_external.h:345:9`! 0x00000001
346 #define AIF_WEAPON2cxx . . $ `Descent3/aistruct_external.h:346:9`! 0x00000002
347 #define AIF_MELEE1cxx . . $ `Descent3/aistruct_external.h:347:9`! 0x00000004
348 #define AIF_MELEE2cxx . . $ `Descent3/aistruct_external.h:348:9`! 0x00000008
349 #define AIF_STAYS_INOUTcxx . . $ `Descent3/aistruct_external.h:349:9`! 0x00000010
350
351 #define AIF_GB_MIMIC_PLAYER_FIRING_HACKcxx . . $ `Descent3/aistruct_external.h:351:9`! 0x00000010
352
353 #define AIF_ACT_AS_NEUTRAL_UNTIL_SHOTcxx . . $ `Descent3/aistruct_external.h:353:9`! 0x00000020
354 #define AIF_PERSISTANTcxx . . $ `Descent3/aistruct_external.h:354:9`! 0x00000040
355 #define AIF_DODGEcxx . . $ `Descent3/aistruct_external.h:355:9`! 0x00000080
356 #define AIF_FIREcxx . . $ `Descent3/aistruct_external.h:356:9`! 0x00000100
357 #define AIF_FLINCHcxx . . $ `Descent3/aistruct_external.h:357:9`! 0x00000200
358 #define AIF_DETERMINE_TARGETcxx . . $ `Descent3/aistruct_external.h:358:9`! 0x00000400
359 #define AIF_AIMcxx . . $ `Descent3/aistruct_external.h:359:9`! 0x00000800
360 #define AIF_ONLY_TAUNT_AT_DEATHcxx . . $ `Descent3/aistruct_external.h:360:9`! 0x00001000
361 #define AIF_AVOID_WALLScxx . . $ `Descent3/aistruct_external.h:361:9`! 0x00002000
362 #define AIF_DISABLEDcxx . . $ `Descent3/aistruct_external.h:362:9`! 0x00004000
363 #define AIF_FLUCTUATE_SPEED_PROPERTIEScxx . . $ `Descent3/aistruct_external.h:363:9`! 0x00008000
364 #define AIF_TEAM_MASKcxx . . $ `Descent3/aistruct_external.h:364:9`! 0x00030000
365 #define AIF_TEAM_PTMCcxx . . $ `Descent3/aistruct_external.h:365:9`! 0x00000000
366 #define AIF_TEAM_REBELcxx . . $ `Descent3/aistruct_external.h:366:9`! 0x00010000
367 #define AIF_TEAM_HOSTILEcxx . . $ `Descent3/aistruct_external.h:367:9`! 0x00020000
368 #define AIF_TEAM_NEUTRALcxx . . $ `Descent3/aistruct_external.h:368:9`! 0x00030000
369 #define AIF_ORDERED_WB_FIRINGcxx . . $ `Descent3/aistruct_external.h:369:9`! 0x00040000
370 #define AIF_ORIENT_TO_VELcxx . . $ `Descent3/aistruct_external.h:370:9`! 0x00080000
371 #define AIF_XZ_DISTcxx . . $ `Descent3/aistruct_external.h:371:9`! 0x00100000
372 #define AIF_REPORT_NEW_ORIENTcxx . . $ `Descent3/aistruct_external.h:372:9`! 0x00200000
373 #define AIF_TARGET_BY_DISTcxx . . $ `Descent3/aistruct_external.h:373:9`! 0x00400000
374 #define AIF_DISABLE_FIRINGcxx . . $ `Descent3/aistruct_external.h:374:9`! 0x00800000
375 #define AIF_DISABLE_MELEEcxx . . $ `Descent3/aistruct_external.h:375:9`! 0x01000000
376 #define AIF_AUTO_AVOID_FRIENDScxx . . $ `Descent3/aistruct_external.h:376:9`! 0x02000000
377 #define AIF_TRACK_CLOSEST_2_FRIENDScxx . . $ `Descent3/aistruct_external.h:377:9`! 0x04000000
378 #define AIF_TRACK_CLOSEST_2_ENEMIEScxx . . $ `Descent3/aistruct_external.h:378:9`! 0x08000000
379 #define AIF_BIASED_FLIGHT_HEIGHTcxx . . $ `Descent3/aistruct_external.h:379:9`! 0x10000000
380 #define AIF_FORCE_AWARENESScxx . . $ `Descent3/aistruct_external.h:380:9`! 0x20000000
381 #define AIF_UVEC_FOVcxx . . $ `Descent3/aistruct_external.h:381:9`! 0x40000000
382 #define AIF_AIM_PNT_FOVcxx . . $ `Descent3/aistruct_external.h:382:9`! 0x80000000
383
384 #define AI_ATTACK_SOUNDcxx . . $ `Descent3/aistruct_external.h:384:9`! 0
385 #define AI_SEE_SOUNDcxx . . $ `Descent3/aistruct_external.h:385:9`! 1
386 #define AI_FLEE_SOUNDcxx . . $ `Descent3/aistruct_external.h:386:9`! 2
387 #define AI_ANGRY_SOUNDcxx . . $ `Descent3/aistruct_external.h:387:9`! 3
388 #define AI_TURRET_SOUNDcxx . . $ `Descent3/aistruct_external.h:388:9`! 4
389
390 //-------------------------------------------------
391 // AI Status Registers
392 //-------------------------------------------------
393
394 #define AISR_FLEEcxx . . $ `Descent3/aistruct_external.h:394:9`! 0x00000001
395 #define AISR_ATTACKINGcxx . . $ `Descent3/aistruct_external.h:395:9`! 0x00000002
396 #define AISR_CIRCLE_DISTcxx . . $ `Descent3/aistruct_external.h:396:9`! 0x00000004
397 #define AISR_PATHcxx . . $ `Descent3/aistruct_external.h:397:9`! 0x00000008
398 #define AISR_MELEEcxx . . $ `Descent3/aistruct_external.h:398:9`! 0x00000010
399 #define AISR_RANGED_ATTACKcxx . . $ `Descent3/aistruct_external.h:399:9`! 0x00000020 // Full body stuff
400 #define AISR_SEES_GOALcxx . . $ `Descent3/aistruct_external.h:400:9`! 0x00000040
401 #define AISR_OK_TO_FIRE_DURING_CINEMATICScxx . . $ `Descent3/aistruct_external.h:401:9`! \
402 0x00000080 // Chrishack - this should be a flag and not an SR, but we are out of flag space and time is critical for
403 // the mission pack
404
405 //-------------------------------------------------
406 // AI Anim states
407 //-------------------------------------------------
408
409 #define AS_ALERTcxx . . $ `Descent3/aistruct_external.h:409:9`! 0
410 #define AS_DEATHcxx . . $ `Descent3/aistruct_external.h:410:9`! 1
411 #define AS_BIRTHcxx . . $ `Descent3/aistruct_external.h:411:9`! 2
412 #define AS_MISSILE1_RECOILcxx . . $ `Descent3/aistruct_external.h:412:9`! 3
413 #define AS_MISSILE2cxx . . $ `Descent3/aistruct_external.h:413:9`! 4
414 #define AS_MISSILE2_RECOILcxx . . $ `Descent3/aistruct_external.h:414:9`! 5
415 #define AS_MELEE1cxx . . $ `Descent3/aistruct_external.h:415:9`! 6
416 #define AS_MELEE1_RECOILcxx . . $ `Descent3/aistruct_external.h:416:9`! 7
417 #define AS_MELEE2cxx . . $ `Descent3/aistruct_external.h:417:9`! 8
418 #define AS_MELEE2_RECOILcxx . . $ `Descent3/aistruct_external.h:418:9`! 9
419 #define AS_IDLEcxx . . $ `Descent3/aistruct_external.h:419:9`! 10
420 #define AS_QUIRKcxx . . $ `Descent3/aistruct_external.h:420:9`! 11
421 #define AS_FLINCHcxx . . $ `Descent3/aistruct_external.h:421:9`! 12
422 #define AS_TAUNTcxx . . $ `Descent3/aistruct_external.h:422:9`! 13
423 #define AS_GOTO_IDLE_STANDINGcxx . . $ `Descent3/aistruct_external.h:423:9`! 14
424 #define AS_GOTO_IDLE_FLYINGcxx . . $ `Descent3/aistruct_external.h:424:9`! 15
425 #define AS_GOTO_IDLE_ROLLINGcxx . . $ `Descent3/aistruct_external.h:425:9`! 16
426 #define AS_GOTO_IDLE_WALKINGcxx . . $ `Descent3/aistruct_external.h:426:9`! 17
427 #define AS_GOTO_IDLE_JUMPINGcxx . . $ `Descent3/aistruct_external.h:427:9`! 18
428 #define AS_GOTO_ALERT_STANDINGcxx . . $ `Descent3/aistruct_external.h:428:9`! 19
429 #define AS_GOTO_ALERT_FLYINGcxx . . $ `Descent3/aistruct_external.h:429:9`! 20
430 #define AS_GOTO_ALERT_ROLLINGcxx . . $ `Descent3/aistruct_external.h:430:9`! 21
431 #define AS_GOTO_ALERT_WALKINGcxx . . $ `Descent3/aistruct_external.h:431:9`! 22
432 #define AS_GOTO_ALERT_JUMPINGcxx . . $ `Descent3/aistruct_external.h:432:9`! 23
433 #define AS_TO_SIDE_STEPcxx . . $ `Descent3/aistruct_external.h:433:9`! 24
434 #define AS_SIDE_STEPcxx . . $ `Descent3/aistruct_external.h:434:9`! 25
435 #define AS_FROM_SIDE_STEPcxx . . $ `Descent3/aistruct_external.h:435:9`! 26
436
437 // These are for ease of coding
438 #define AS_GOTO_IDLE_OFFSETcxx . . $ `Descent3/aistruct_external.h:438:9`! 14
439 #define AS_GOTO_ALERT_OFFSETcxx . . $ `Descent3/aistruct_external.h:439:9`! 19
440
441 // Special -- not on Animation dialog
442 #define AS_RANGED_ATTACKcxx . . $ `Descent3/aistruct_external.h:442:9`! 27
443 #define AS_RANGED_RECOILcxx . . $ `Descent3/aistruct_external.h:443:9`! 28
444
445 #define AS_CUSTOMcxx . . $ `Descent3/aistruct_external.h:445:9`! 29
446
447 #endif