xray16 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +12 -6
- package/xray16.d.ts +30852 -0
- package/types/index.d.ts +0 -55
- package/types/internal.d.ts +0 -6
- package/types/xr_ai/xr_action.d.ts +0 -1803
- package/types/xr_ai/xr_alife.d.ts +0 -1872
- package/types/xr_ai/xr_enemy_evaluation.d.ts +0 -134
- package/types/xr_ai/xr_goap.d.ts +0 -1118
- package/types/xr_ai/xr_graph.d.ts +0 -135
- package/types/xr_ai/xr_memory.d.ts +0 -384
- package/types/xr_lib/xr_animation.d.ts +0 -252
- package/types/xr_lib/xr_bitwise.d.ts +0 -44
- package/types/xr_lib/xr_color.d.ts +0 -142
- package/types/xr_lib/xr_debug.d.ts +0 -183
- package/types/xr_lib/xr_dialog.d.ts +0 -132
- package/types/xr_lib/xr_flags.d.ts +0 -592
- package/types/xr_lib/xr_fs.d.ts +0 -617
- package/types/xr_lib/xr_game.d.ts +0 -362
- package/types/xr_lib/xr_hit.d.ts +0 -127
- package/types/xr_lib/xr_ini.d.ts +0 -475
- package/types/xr_lib/xr_level.d.ts +0 -797
- package/types/xr_lib/xr_luabind.d.ts +0 -90
- package/types/xr_lib/xr_map.d.ts +0 -194
- package/types/xr_lib/xr_math.d.ts +0 -871
- package/types/xr_lib/xr_multiplayer.d.ts +0 -1081
- package/types/xr_lib/xr_profile.d.ts +0 -272
- package/types/xr_lib/xr_properties.d.ts +0 -612
- package/types/xr_lib/xr_relation.d.ts +0 -231
- package/types/xr_lib/xr_render.d.ts +0 -167
- package/types/xr_lib/xr_save.d.ts +0 -835
- package/types/xr_lib/xr_sound.d.ts +0 -517
- package/types/xr_lib/xr_stats.ts +0 -51
- package/types/xr_lib/xr_task.d.ts +0 -390
- package/types/xr_lib/xr_time.d.ts +0 -177
- package/types/xr_lib/xr_type.d.ts +0 -70
- package/types/xr_object/client/xr_anomaly.d.ts +0 -70
- package/types/xr_object/client/xr_artefact.d.ts +0 -153
- package/types/xr_object/client/xr_client_object.d.ts +0 -207
- package/types/xr_object/client/xr_creature.d.ts +0 -243
- package/types/xr_object/client/xr_item.d.ts +0 -370
- package/types/xr_object/client/xr_level.d.ts +0 -755
- package/types/xr_object/client/xr_physic.d.ts +0 -644
- package/types/xr_object/client/xr_zone.d.ts +0 -85
- package/types/xr_object/script/xr_script_interface.d.ts +0 -1142
- package/types/xr_object/script/xr_script_object.d.ts +0 -5702
- package/types/xr_object/script/xr_script_trade.d.ts +0 -51
- package/types/xr_object/server/xr_server_object.d.ts +0 -1488
- package/types/xr_ui/xr_ui_asset.d.ts +0 -364
- package/types/xr_ui/xr_ui_core.d.ts +0 -426
- package/types/xr_ui/xr_ui_event.d.ts +0 -1449
- package/types/xr_ui/xr_ui_interface.d.ts +0 -2449
- package/types/xr_ui/xr_ui_menu.d.ts +0 -401
- package/types/xrf_plugin.d.ts +0 -111
|
@@ -1,755 +0,0 @@
|
|
|
1
|
-
import type { Nillable } from "../../internal";
|
|
2
|
-
|
|
3
|
-
declare module "xray16" {
|
|
4
|
-
/**
|
|
5
|
-
* Campfire anomaly object.
|
|
6
|
-
*
|
|
7
|
-
* @source C++ class CZoneCampfire : CGameObject
|
|
8
|
-
* @customConstructor CZoneCampfire
|
|
9
|
-
* @group xr_level
|
|
10
|
-
*
|
|
11
|
-
* @remarks
|
|
12
|
-
* Campfire controls require this runtime object. They are not available on generic anomaly zones.
|
|
13
|
-
*/
|
|
14
|
-
export class CZoneCampfire extends CGameObject {
|
|
15
|
-
/**
|
|
16
|
-
* Create a campfire object wrapper.
|
|
17
|
-
*/
|
|
18
|
-
public constructor();
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @returns Whether the campfire is currently burning.
|
|
22
|
-
*/
|
|
23
|
-
public is_on(): boolean;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Turn the campfire on.
|
|
27
|
-
*/
|
|
28
|
-
public turn_on(): void;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Turn the campfire off.
|
|
32
|
-
*/
|
|
33
|
-
public turn_off(): void;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Animated client physics object.
|
|
38
|
-
*
|
|
39
|
-
* @source C++ class CPhysicObject : CGameObject
|
|
40
|
-
* @customConstructor CPhysicObject
|
|
41
|
-
* @group xr_level
|
|
42
|
-
*
|
|
43
|
-
* @remarks
|
|
44
|
-
* Wrapper for animated physics props, especially door-like objects. Door and bone-sound helpers require this runtime
|
|
45
|
-
* class.
|
|
46
|
-
*/
|
|
47
|
-
export class CPhysicObject extends CGameObject {
|
|
48
|
-
/**
|
|
49
|
-
* Ignore dynamic objects while the door-like object is moving.
|
|
50
|
-
*/
|
|
51
|
-
public set_door_ignore_dynamics(): void;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Start sounds attached to animated bones.
|
|
55
|
-
*/
|
|
56
|
-
public play_bones_sound(): void;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Run the object animation backward.
|
|
60
|
-
*/
|
|
61
|
-
public run_anim_back(): void;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Restore normal dynamic-object collision handling.
|
|
65
|
-
*/
|
|
66
|
-
public unset_door_ignore_dynamics(): void;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Run the object animation forward.
|
|
70
|
-
*/
|
|
71
|
-
public run_anim_forward(): void;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Stop the current object animation.
|
|
75
|
-
*
|
|
76
|
-
* @returns Whether animation was stopped.
|
|
77
|
-
*/
|
|
78
|
-
public stop_anim(): boolean;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* @returns Current animation time.
|
|
82
|
-
*/
|
|
83
|
-
public anim_time_get(): f32;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Set current animation time.
|
|
87
|
-
*
|
|
88
|
-
* @param time - Animation time.
|
|
89
|
-
*/
|
|
90
|
-
public anim_time_set(time: f32): void;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Stop sounds attached to animated bones.
|
|
94
|
-
*/
|
|
95
|
-
public stop_bones_sound(): void;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Hanging lamp object controlled from scripts.
|
|
100
|
-
*
|
|
101
|
-
* @source C++ class hanging_lamp : CGameObject
|
|
102
|
-
* @customConstructor hanging_lamp
|
|
103
|
-
* @group xr_level
|
|
104
|
-
*
|
|
105
|
-
* @remarks
|
|
106
|
-
* Lamp controls require this runtime object. They do not apply to arbitrary lights or torches.
|
|
107
|
-
*/
|
|
108
|
-
export class hanging_lamp extends CGameObject {
|
|
109
|
-
/**
|
|
110
|
-
* Create a hanging lamp object wrapper.
|
|
111
|
-
*/
|
|
112
|
-
public constructor();
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Turn the lamp on.
|
|
116
|
-
*/
|
|
117
|
-
public turn_on(): void;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Turn the lamp off.
|
|
121
|
-
*/
|
|
122
|
-
public turn_off(): void;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Driveable car and mounted weapon holder.
|
|
127
|
-
*
|
|
128
|
-
* @source C++ class CCar : CGameObject, holder
|
|
129
|
-
* @customConstructor CCar
|
|
130
|
-
* @group xr_level
|
|
131
|
-
*
|
|
132
|
-
* @remarks
|
|
133
|
-
* Vehicle and mounted-weapon holder APIs require a car object. Use `game_object.get_car()` or holder casts before
|
|
134
|
-
* calling these methods from shared object code.
|
|
135
|
-
*/
|
|
136
|
-
export class CCar extends CGameObject implements holder {
|
|
137
|
-
/**
|
|
138
|
-
* Engine enum value for `CCar.eWpnActivate`.
|
|
139
|
-
*/
|
|
140
|
-
public static eWpnActivate: 3;
|
|
141
|
-
/**
|
|
142
|
-
* Engine enum value for `CCar.eWpnAutoFire`.
|
|
143
|
-
*/
|
|
144
|
-
public static eWpnAutoFire: 5;
|
|
145
|
-
/**
|
|
146
|
-
* Engine enum value for `CCar.eWpnDesiredDir`.
|
|
147
|
-
*/
|
|
148
|
-
public static eWpnDesiredDir: 1;
|
|
149
|
-
/**
|
|
150
|
-
* Engine enum value for `CCar.eWpnDesiredPos`.
|
|
151
|
-
*/
|
|
152
|
-
public static eWpnDesiredPos: 2;
|
|
153
|
-
/**
|
|
154
|
-
* Engine enum value for `CCar.eWpnFire`.
|
|
155
|
-
*/
|
|
156
|
-
public static eWpnFire: 4;
|
|
157
|
-
/**
|
|
158
|
-
* Engine enum value for `CCar.eWpnToDefaultDir`.
|
|
159
|
-
*/
|
|
160
|
-
public static eWpnToDefaultDir: 6;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Create a car object wrapper.
|
|
164
|
-
*/
|
|
165
|
-
public constructor();
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* Lock or unlock entering the car.
|
|
169
|
-
*
|
|
170
|
-
* @param is_enabled - Whether entering is locked.
|
|
171
|
-
*/
|
|
172
|
-
public SetEnterLocked(is_enabled: boolean): void;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Lock or unlock exiting the car.
|
|
176
|
-
*
|
|
177
|
-
* @param is_enabled - Whether exiting is locked.
|
|
178
|
-
*/
|
|
179
|
-
public SetExitLocked(is_enabled: boolean): void;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* @returns Whether the mounted weapon can hit its current target.
|
|
183
|
-
*/
|
|
184
|
-
public CanHit(): boolean;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Trigger car explosion.
|
|
188
|
-
*/
|
|
189
|
-
public CarExplode(): void;
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Change fuel by a delta.
|
|
193
|
-
*
|
|
194
|
-
* @param fuel - Fuel delta.
|
|
195
|
-
*/
|
|
196
|
-
public ChangefFuel(fuel: f32): void;
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Change vehicle health by a delta.
|
|
200
|
-
*
|
|
201
|
-
* @param value - Health delta.
|
|
202
|
-
*/
|
|
203
|
-
public ChangefHealth(value: f32): void;
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* @returns Current velocity vector.
|
|
207
|
-
*/
|
|
208
|
-
public CurrentVel(): vector;
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* @returns Scheduled explosion time.
|
|
212
|
-
*/
|
|
213
|
-
public ExplodeTime(): u32;
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* @returns Difference between current and desired weapon fire direction.
|
|
217
|
-
*/
|
|
218
|
-
public FireDirDiff(): f32;
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* @returns Amount of fuel in vehicle instance.
|
|
222
|
-
*/
|
|
223
|
-
public GetfFuel(): f32;
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* @returns Amount of fuel in vehicle instance.
|
|
227
|
-
*/
|
|
228
|
-
public get_fuel(): f32;
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* @returns Fuel consumption rate of vehicle instance.
|
|
232
|
-
*/
|
|
233
|
-
public GetfFuelConsumption(): f32;
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* @returns Fuel consumption rate of vehicle instance.
|
|
237
|
-
*/
|
|
238
|
-
public get_fuel_consumption(): f32;
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* @returns Fuel tank size (max possible amount of fuel at time).
|
|
242
|
-
*/
|
|
243
|
-
public GetfFuelTank(): f32;
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* @returns Fuel tank size.
|
|
247
|
-
*/
|
|
248
|
-
public get_fuel_tank(): f32;
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* @returns Vehicle health value.
|
|
252
|
-
*/
|
|
253
|
-
public GetfHealth(): f32;
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* @returns Whether vehicle has mounted weapon.
|
|
257
|
-
*/
|
|
258
|
-
public HasWeapon(): boolean;
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* Check whether an object is visible from the car weapon.
|
|
262
|
-
*
|
|
263
|
-
* @param game_object - Object to test.
|
|
264
|
-
* @returns Whether the object is visible.
|
|
265
|
-
*/
|
|
266
|
-
public IsObjectVisible(game_object: game_object): boolean;
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* Start car damage particles.
|
|
270
|
-
*/
|
|
271
|
-
public PlayDamageParticles(): void;
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* Set scheduled explosion time.
|
|
275
|
-
*
|
|
276
|
-
* @param time - Explosion time.
|
|
277
|
-
*/
|
|
278
|
-
public SetExplodeTime(time: u32): void;
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* Set current fuel amount.
|
|
282
|
-
*
|
|
283
|
-
* @param fuel - Fuel amount.
|
|
284
|
-
*/
|
|
285
|
-
public SetfFuel(fuel: f32): void;
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* Set current fuel amount.
|
|
289
|
-
*
|
|
290
|
-
* @param fuel - Fuel amount.
|
|
291
|
-
*/
|
|
292
|
-
public set_fuel(fuel: f32): void;
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* Set fuel consumption rate.
|
|
296
|
-
*
|
|
297
|
-
* @param consumption - Fuel consumption rate.
|
|
298
|
-
*/
|
|
299
|
-
public SetfFuelConsumption(consumption: f32): void;
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* Set fuel consumption rate.
|
|
303
|
-
*
|
|
304
|
-
* @param consumption - Fuel consumption rate.
|
|
305
|
-
*/
|
|
306
|
-
public set_fuel_consumption(consumption: f32): void;
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* Set fuel tank capacity.
|
|
310
|
-
*
|
|
311
|
-
* @param fuel - Fuel tank capacity.
|
|
312
|
-
*/
|
|
313
|
-
public SetfFuelTank(fuel: f32): void;
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
* Set fuel tank capacity.
|
|
317
|
-
*
|
|
318
|
-
* @param fuel - Fuel tank capacity.
|
|
319
|
-
*/
|
|
320
|
-
public set_fuel_tank(fuel: f32): void;
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* Set vehicle health.
|
|
324
|
-
*
|
|
325
|
-
* @param health - New health value.
|
|
326
|
-
*/
|
|
327
|
-
public SetfHealth(health: f32): void;
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* @returns Whether vehicle engine is active at the moment.
|
|
331
|
-
*/
|
|
332
|
-
public IsActiveEngine(): boolean;
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* Start vehicle engine.
|
|
336
|
-
*/
|
|
337
|
-
public StartEngine(): void;
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* Stop vehicle engine.
|
|
341
|
-
*/
|
|
342
|
-
public StopEngine(): void;
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* Set vehicle hand break in active state.
|
|
346
|
-
*/
|
|
347
|
-
public HandBreak(): void;
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
* Deactivate vehicle hand break.
|
|
351
|
-
*/
|
|
352
|
-
public ReleaseHandBreak(): void;
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* @returns Current vehicle RPM value (speed).
|
|
356
|
-
*/
|
|
357
|
-
public GetRPM(): f32;
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* Set current vehicle RPM value (speed).
|
|
361
|
-
*
|
|
362
|
-
* @param rpm - RPM value to apply.
|
|
363
|
-
*/
|
|
364
|
-
public SetRPM(rpm: f32): void;
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* Stop car damage particles.
|
|
368
|
-
*/
|
|
369
|
-
public StopDamageParticles(): void;
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* @returns Whether the actor is currently attached to this holder.
|
|
373
|
-
*/
|
|
374
|
-
public engaged(): boolean;
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* Send a holder or weapon action.
|
|
378
|
-
*
|
|
379
|
-
* @param id - Action id.
|
|
380
|
-
* @param flags - Action flags.
|
|
381
|
-
*/
|
|
382
|
-
public Action(id: u16, flags: u32): void;
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* Set a mounted weapon vector parameter.
|
|
386
|
-
*
|
|
387
|
-
* @param id - Weapon parameter id.
|
|
388
|
-
* @param vector - Parameter value.
|
|
389
|
-
*/
|
|
390
|
-
public SetParam(id: i32, vector: vector): void;
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* Set a mounted weapon vector parameter.
|
|
394
|
-
*
|
|
395
|
-
* @param id - Weapon parameter id.
|
|
396
|
-
* @param vector - Parameter value.
|
|
397
|
-
*/
|
|
398
|
-
public SetParam(id: TXR_CCar_weapon_param, vector: vector): void;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* @group xr_level
|
|
403
|
-
*/
|
|
404
|
-
export type TXR_CCar_weapon_param = EnumeratedStaticsValues<typeof CCar>;
|
|
405
|
-
|
|
406
|
-
/**
|
|
407
|
-
* Script-controlled helicopter object.
|
|
408
|
-
*
|
|
409
|
-
* @source C++ class CHelicopter : CGameObject
|
|
410
|
-
* @customConstructor CHelicopter
|
|
411
|
-
* @group xr_level
|
|
412
|
-
*
|
|
413
|
-
* @remarks
|
|
414
|
-
* Helicopter controls require a helicopter object. Movement, enemy, lighting, and fire-trail setters are direct
|
|
415
|
-
* native control hooks and do not validate scenario logic.
|
|
416
|
-
*/
|
|
417
|
-
export class CHelicopter extends CGameObject {
|
|
418
|
-
/**
|
|
419
|
-
* Engine enum value for `CHelicopter.eAlive`.
|
|
420
|
-
*/
|
|
421
|
-
public static readonly eAlive: 0;
|
|
422
|
-
/**
|
|
423
|
-
* Engine enum value for `CHelicopter.eBodyByPath`.
|
|
424
|
-
*/
|
|
425
|
-
public static readonly eBodyByPath: 0;
|
|
426
|
-
/**
|
|
427
|
-
* Engine enum value for `CHelicopter.eBodyToPoint`.
|
|
428
|
-
*/
|
|
429
|
-
public static readonly eBodyToPoint: 1;
|
|
430
|
-
/**
|
|
431
|
-
* Engine enum value for `CHelicopter.eDead`.
|
|
432
|
-
*/
|
|
433
|
-
public static readonly eDead: 1;
|
|
434
|
-
/**
|
|
435
|
-
* Engine enum value for `CHelicopter.eEnemyEntity`.
|
|
436
|
-
*/
|
|
437
|
-
public static readonly eEnemyEntity: 2;
|
|
438
|
-
/**
|
|
439
|
-
* Engine enum value for `CHelicopter.eEnemyNone`.
|
|
440
|
-
*/
|
|
441
|
-
public static readonly eEnemyNone: 0;
|
|
442
|
-
/**
|
|
443
|
-
* Engine enum value for `CHelicopter.eEnemyPoint`.
|
|
444
|
-
*/
|
|
445
|
-
public static readonly eEnemyPoint: 1;
|
|
446
|
-
/**
|
|
447
|
-
* Engine enum value for `CHelicopter.eMovLanding`.
|
|
448
|
-
*/
|
|
449
|
-
public static readonly eMovLanding: 4;
|
|
450
|
-
/**
|
|
451
|
-
* Engine enum value for `CHelicopter.eMovNone`.
|
|
452
|
-
*/
|
|
453
|
-
public static readonly eMovNone: 0;
|
|
454
|
-
/**
|
|
455
|
-
* Engine enum value for `CHelicopter.eMovPatrolPath`.
|
|
456
|
-
*/
|
|
457
|
-
public static readonly eMovPatrolPath: 2;
|
|
458
|
-
/**
|
|
459
|
-
* Engine enum value for `CHelicopter.eMovRoundPath`.
|
|
460
|
-
*/
|
|
461
|
-
public static readonly eMovRoundPath: 3;
|
|
462
|
-
/**
|
|
463
|
-
* Engine enum value for `CHelicopter.eMovTakeOff`.
|
|
464
|
-
*/
|
|
465
|
-
public static readonly eMovTakeOff: 5;
|
|
466
|
-
/**
|
|
467
|
-
* Engine enum value for `CHelicopter.eMovToPoint`.
|
|
468
|
-
*/
|
|
469
|
-
public static readonly eMovToPoint: 1;
|
|
470
|
-
|
|
471
|
-
/**
|
|
472
|
-
* Whether the helicopter explosion has already been triggered.
|
|
473
|
-
*/
|
|
474
|
-
public readonly m_exploded: boolean;
|
|
475
|
-
|
|
476
|
-
/**
|
|
477
|
-
* Whether helicopter lights are currently started.
|
|
478
|
-
*/
|
|
479
|
-
public readonly m_light_started: boolean;
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* Whether flame effects are currently started.
|
|
483
|
-
*/
|
|
484
|
-
public readonly m_flame_started: boolean;
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* Whether the helicopter is marked dead.
|
|
488
|
-
*/
|
|
489
|
-
public readonly m_dead: boolean;
|
|
490
|
-
|
|
491
|
-
/**
|
|
492
|
-
* Maximum machine-gun attack distance.
|
|
493
|
-
*/
|
|
494
|
-
public m_max_mgun_dist: f32;
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* Maximum rocket attack distance.
|
|
498
|
-
*/
|
|
499
|
-
public m_max_rocket_dist: f32;
|
|
500
|
-
|
|
501
|
-
/**
|
|
502
|
-
* Minimum machine-gun attack distance.
|
|
503
|
-
*/
|
|
504
|
-
public m_min_mgun_dist: f32;
|
|
505
|
-
|
|
506
|
-
/**
|
|
507
|
-
* Minimum rocket attack distance.
|
|
508
|
-
*/
|
|
509
|
-
public m_min_rocket_dist: f32;
|
|
510
|
-
|
|
511
|
-
/**
|
|
512
|
-
* Whether rocket firing is synchronized with the helicopter attack logic.
|
|
513
|
-
*/
|
|
514
|
-
public m_syncronize_rocket: boolean;
|
|
515
|
-
|
|
516
|
-
/**
|
|
517
|
-
* Delay between rocket attacks.
|
|
518
|
-
*/
|
|
519
|
-
public m_time_between_rocket_attack: u32;
|
|
520
|
-
|
|
521
|
-
/**
|
|
522
|
-
* Whether machine-gun attacks are enabled.
|
|
523
|
-
*/
|
|
524
|
-
public m_use_mgun_on_attack: boolean;
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* Whether rocket attacks are enabled.
|
|
528
|
-
*/
|
|
529
|
-
public m_use_rocket_on_attack: boolean;
|
|
530
|
-
|
|
531
|
-
/**
|
|
532
|
-
* Create a helicopter object wrapper.
|
|
533
|
-
*/
|
|
534
|
-
public constructor();
|
|
535
|
-
|
|
536
|
-
/**
|
|
537
|
-
* Check whether an object is visible to the helicopter.
|
|
538
|
-
*
|
|
539
|
-
* @param game_object - Object to test.
|
|
540
|
-
* @returns Whether the object is visible.
|
|
541
|
-
*/
|
|
542
|
-
public isVisible(game_object: game_object): boolean;
|
|
543
|
-
|
|
544
|
-
/**
|
|
545
|
-
* @returns Safe altitude configured for the movement manager.
|
|
546
|
-
*/
|
|
547
|
-
public GetSafeAltitude(): f32;
|
|
548
|
-
|
|
549
|
-
/**
|
|
550
|
-
* @returns Current real altitude above terrain.
|
|
551
|
-
*/
|
|
552
|
-
public GetRealAltitude(): f32;
|
|
553
|
-
|
|
554
|
-
/**
|
|
555
|
-
* @returns Current scalar velocity.
|
|
556
|
-
*/
|
|
557
|
-
public GetCurrVelocity(): f32;
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
* Get desired speed near the destination point.
|
|
561
|
-
*
|
|
562
|
-
* @param value - Distance threshold.
|
|
563
|
-
* @returns Speed at that destination distance.
|
|
564
|
-
*/
|
|
565
|
-
public GetSpeedInDestPoint(value: f32): f32;
|
|
566
|
-
|
|
567
|
-
/**
|
|
568
|
-
* @returns Distance at which the helicopter treats a point as reached.
|
|
569
|
-
*/
|
|
570
|
-
public GetOnPointRangeDist(): f32;
|
|
571
|
-
|
|
572
|
-
/**
|
|
573
|
-
* @returns Maximum movement velocity.
|
|
574
|
-
*/
|
|
575
|
-
public GetMaxVelocity(): f32;
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* @returns Helicopter health.
|
|
579
|
-
*/
|
|
580
|
-
public GetfHealth(): f32;
|
|
581
|
-
|
|
582
|
-
/**
|
|
583
|
-
* @returns Current movement state.
|
|
584
|
-
*/
|
|
585
|
-
public GetMovementState(): i32; /* Enum ? */
|
|
586
|
-
|
|
587
|
-
/**
|
|
588
|
-
* @returns Current body aiming state.
|
|
589
|
-
*/
|
|
590
|
-
public GetBodyState(): i32; /* Enum ? */
|
|
591
|
-
|
|
592
|
-
/**
|
|
593
|
-
* @returns Current velocity vector.
|
|
594
|
-
*/
|
|
595
|
-
public GetCurrVelocityVec(): vector;
|
|
596
|
-
|
|
597
|
-
/**
|
|
598
|
-
* @returns Alive/dead state.
|
|
599
|
-
*/
|
|
600
|
-
public GetState(): i32;
|
|
601
|
-
|
|
602
|
-
/**
|
|
603
|
-
* @returns Distance to destination position.
|
|
604
|
-
*/
|
|
605
|
-
public GetDistanceToDestPosition(): f32;
|
|
606
|
-
|
|
607
|
-
/**
|
|
608
|
-
* @returns Current enemy tracking state.
|
|
609
|
-
*/
|
|
610
|
-
public GetHuntState(): i32; /* Enum ? */
|
|
611
|
-
|
|
612
|
-
/**
|
|
613
|
-
* Set desired speed near the destination point.
|
|
614
|
-
*
|
|
615
|
-
* @param value - Speed value.
|
|
616
|
-
*/
|
|
617
|
-
public SetSpeedInDestPoint(value: f32): unknown;
|
|
618
|
-
|
|
619
|
-
/**
|
|
620
|
-
* Set linear acceleration limits.
|
|
621
|
-
*
|
|
622
|
-
* @param min - Minimum acceleration.
|
|
623
|
-
* @param max - Maximum acceleration.
|
|
624
|
-
*/
|
|
625
|
-
public SetLinearAcc(min: f32, max: f32): void;
|
|
626
|
-
|
|
627
|
-
/**
|
|
628
|
-
* Set helicopter health.
|
|
629
|
-
*
|
|
630
|
-
* @param health - New health value.
|
|
631
|
-
* @returns Applied health value.
|
|
632
|
-
*/
|
|
633
|
-
public SetfHealth(health: f32): f32;
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
* Set maximum movement velocity.
|
|
637
|
-
*
|
|
638
|
-
* @param value - Maximum velocity.
|
|
639
|
-
*/
|
|
640
|
-
public SetMaxVelocity(value: f32): void;
|
|
641
|
-
|
|
642
|
-
/**
|
|
643
|
-
* Track an enemy object.
|
|
644
|
-
*
|
|
645
|
-
* @param game_object - Enemy object, or null to clear.
|
|
646
|
-
*/
|
|
647
|
-
public SetEnemy(game_object: Nillable<game_object>): void;
|
|
648
|
-
|
|
649
|
-
/**
|
|
650
|
-
* Track an enemy point.
|
|
651
|
-
*
|
|
652
|
-
* @param position - Enemy world position.
|
|
653
|
-
*/
|
|
654
|
-
public SetEnemy(position: vector): void;
|
|
655
|
-
|
|
656
|
-
/**
|
|
657
|
-
* Set fire trail length.
|
|
658
|
-
*
|
|
659
|
-
* @param value - Trail length.
|
|
660
|
-
*/
|
|
661
|
-
public SetFireTrailLength(value: f32): void;
|
|
662
|
-
|
|
663
|
-
/**
|
|
664
|
-
* Set allowed barrel direction tolerance.
|
|
665
|
-
*
|
|
666
|
-
* @param value - Tolerance value.
|
|
667
|
-
*/
|
|
668
|
-
public SetBarrelDirTolerance(value: f32): void;
|
|
669
|
-
|
|
670
|
-
/**
|
|
671
|
-
* Set movement destination.
|
|
672
|
-
*
|
|
673
|
-
* @param position - Destination world position.
|
|
674
|
-
*/
|
|
675
|
-
public SetDestPosition(position: vector): void;
|
|
676
|
-
|
|
677
|
-
/**
|
|
678
|
-
* Set point reach distance.
|
|
679
|
-
*
|
|
680
|
-
* @param distance - Reach distance.
|
|
681
|
-
*/
|
|
682
|
-
public SetOnPointRangeDist(distance: f32): void;
|
|
683
|
-
|
|
684
|
-
/**
|
|
685
|
-
* Aim the helicopter body at a point.
|
|
686
|
-
*
|
|
687
|
-
* @param position - Point to look at.
|
|
688
|
-
* @param is_smooth - Whether to rotate smoothly.
|
|
689
|
-
*/
|
|
690
|
-
public LookAtPoint(position: vector, is_smooth: boolean): void;
|
|
691
|
-
|
|
692
|
-
/**
|
|
693
|
-
* Move by a patrol path.
|
|
694
|
-
*
|
|
695
|
-
* @param path_name - Patrol path name.
|
|
696
|
-
* @param start_point - Starting point index.
|
|
697
|
-
*/
|
|
698
|
-
public GoPatrolByPatrolPath(path_name: string, start_point: i32): void;
|
|
699
|
-
|
|
700
|
-
/**
|
|
701
|
-
* Explode the helicopter.
|
|
702
|
-
*/
|
|
703
|
-
public Explode(): void;
|
|
704
|
-
|
|
705
|
-
/**
|
|
706
|
-
* Turn helicopter lighting on or off.
|
|
707
|
-
*
|
|
708
|
-
* @param is_enabled - New lighting state.
|
|
709
|
-
*/
|
|
710
|
-
public TurnLighting(is_enabled: boolean): void;
|
|
711
|
-
|
|
712
|
-
/**
|
|
713
|
-
* @returns Whether fire trail rendering is enabled.
|
|
714
|
-
*/
|
|
715
|
-
public UseFireTrail(): boolean;
|
|
716
|
-
|
|
717
|
-
/**
|
|
718
|
-
* Enable or disable fire trail rendering.
|
|
719
|
-
*
|
|
720
|
-
* @param is_enabled - New fire trail state.
|
|
721
|
-
*/
|
|
722
|
-
public UseFireTrail(is_enabled: boolean): void;
|
|
723
|
-
|
|
724
|
-
/**
|
|
725
|
-
* Move around a point by a round patrol path.
|
|
726
|
-
*
|
|
727
|
-
* @param center - Round path center.
|
|
728
|
-
* @param radius - Path radius.
|
|
729
|
-
* @param clockwise - Whether to move clockwise.
|
|
730
|
-
*/
|
|
731
|
-
public GoPatrolByRoundPath(center: vector, radius: f32, clockwise: boolean): void;
|
|
732
|
-
|
|
733
|
-
/**
|
|
734
|
-
* Kill the helicopter without running a full explosion command.
|
|
735
|
-
*/
|
|
736
|
-
public Die(): void;
|
|
737
|
-
|
|
738
|
-
/**
|
|
739
|
-
* Start flame effects.
|
|
740
|
-
*/
|
|
741
|
-
public StartFlame(): void;
|
|
742
|
-
|
|
743
|
-
/**
|
|
744
|
-
* Turn engine sound on or off.
|
|
745
|
-
*
|
|
746
|
-
* @param enabled - New sound state.
|
|
747
|
-
*/
|
|
748
|
-
public TurnEngineSound(enabled: boolean): void;
|
|
749
|
-
|
|
750
|
-
/**
|
|
751
|
-
* Clear current enemy target.
|
|
752
|
-
*/
|
|
753
|
-
public ClearEnemy(): void;
|
|
754
|
-
}
|
|
755
|
-
}
|