xray16 1.3.2 → 1.4.0
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/LICENSE +21 -21
- package/README.md +112 -106
- package/package.json +45 -42
- package/plugins/built_at_info.d.ts +1 -1
- package/plugins/from_cast_utils.d.ts +1 -1
- package/plugins/global_declarations_transform.d.ts +1 -1
- package/plugins/inject_file_meta.d.ts +1 -1
- package/plugins/inject_tracy_zones.d.ts +1 -1
- package/plugins/inject_tracy_zones.js +4 -4
- package/plugins/strip_lua_logger.d.ts +1 -1
- package/plugins/strip_lua_logger.js +1 -1
- package/plugins/transform_luabind_class/plugin.d.ts +1 -1
- package/plugins/transform_luabind_class/transformation/class_declaration.d.ts +3 -3
- package/plugins/transform_luabind_class/transformation/decorators.d.ts +5 -2
- package/plugins/transform_luabind_class/transformation/decorators.js +3 -0
- package/plugins/transform_luabind_class/transformation/members/accessors.d.ts +1 -1
- package/plugins/transform_luabind_class/transformation/members/constructor.d.ts +2 -2
- package/plugins/transform_luabind_class/transformation/members/constructor.js +2 -2
- package/plugins/transform_luabind_class/transformation/members/fields.d.ts +5 -2
- package/plugins/transform_luabind_class/transformation/members/fields.js +5 -2
- package/plugins/transform_luabind_class/transformation/members/method.d.ts +6 -3
- package/plugins/transform_luabind_class/transformation/members/method.js +4 -1
- package/plugins/transform_luabind_class/transformation/new.d.ts +7 -3
- package/plugins/transform_luabind_class/transformation/new.js +5 -1
- package/plugins/transform_luabind_class/transformation/setup.d.ts +9 -3
- package/plugins/transform_luabind_class/transformation/setup.js +22 -6
- package/plugins/transform_luabind_class/transformation/super.d.ts +19 -3
- package/plugins/transform_luabind_class/transformation/super.js +17 -1
- package/plugins/transform_luabind_class/transformation/utils.d.ts +27 -4
- package/plugins/transform_luabind_class/transformation/utils.js +25 -2
- package/plugins/utils/ast.d.ts +1 -1
- package/plugins/utils/diagnostics.d.ts +9 -5
- package/plugins/utils/diagnostics.js +5 -1
- package/plugins/utils/tracy.d.ts +2 -2
- package/plugins/utils/tracy.js +2 -5
- package/types/index.d.ts +55 -55
- package/types/xr_ai/xr_action.d.ts +510 -510
- package/types/xr_ai/xr_alife.d.ts +566 -566
- package/types/xr_ai/xr_enemy_evaluation.d.ts +41 -41
- package/types/xr_ai/xr_goap.d.ts +669 -668
- package/types/xr_ai/xr_graph.d.ts +47 -47
- package/types/xr_ai/xr_memory.d.ts +148 -148
- package/types/xr_lib/xr_animation.d.ts +81 -81
- package/types/xr_lib/xr_bitwise.d.ts +32 -21
- package/types/xr_lib/xr_color.d.ts +45 -40
- package/types/xr_lib/xr_debug.d.ts +83 -77
- package/types/xr_lib/xr_dialog.d.ts +40 -40
- package/types/xr_lib/xr_flags.d.ts +529 -148
- package/types/xr_lib/xr_fs.d.ts +149 -148
- package/types/xr_lib/xr_game.d.ts +261 -158
- package/types/xr_lib/xr_hit.d.ts +41 -41
- package/types/xr_lib/xr_ini.d.ts +415 -188
- package/types/xr_lib/xr_level.d.ts +652 -225
- package/types/xr_lib/xr_luabind.d.ts +64 -59
- package/types/xr_lib/xr_map.d.ts +61 -61
- package/types/xr_lib/xr_math.d.ts +815 -233
- package/types/xr_lib/xr_multiplayer.d.ts +351 -351
- package/types/xr_lib/xr_profile.d.ts +192 -160
- package/types/xr_lib/xr_properties.d.ts +455 -166
- package/types/xr_lib/xr_relation.d.ts +84 -84
- package/types/xr_lib/xr_render.d.ts +71 -69
- package/types/xr_lib/xr_save.d.ts +727 -223
- package/types/xr_lib/xr_sound.d.ts +151 -151
- package/types/xr_lib/xr_stats.ts +20 -20
- package/types/xr_lib/xr_task.d.ts +111 -111
- package/types/xr_lib/xr_time.d.ts +166 -61
- package/types/xr_lib/xr_type.d.ts +75 -75
- package/types/xr_object/client/xr_anomaly.d.ts +50 -50
- package/types/xr_object/client/xr_artefact.d.ts +98 -98
- package/types/xr_object/client/xr_client_object.d.ts +76 -76
- package/types/xr_object/client/xr_creature.d.ts +164 -164
- package/types/xr_object/client/xr_item.d.ts +264 -264
- package/types/xr_object/client/xr_level.d.ts +285 -285
- package/types/xr_object/client/xr_physic.d.ts +214 -214
- package/types/xr_object/client/xr_zone.d.ts +47 -47
- package/types/xr_object/script/xr_script_interface.d.ts +584 -584
- package/types/xr_object/script/xr_script_object.d.ts +2408 -1390
- package/types/xr_object/script/xr_script_trade.d.ts +41 -26
- package/types/xr_object/server/xr_server_object.d.ts +794 -792
- package/types/xr_ui/xr_ui_asset.d.ts +129 -123
- package/types/xr_ui/xr_ui_core.d.ts +106 -97
- package/types/xr_ui/xr_ui_event.d.ts +383 -381
- package/types/xr_ui/xr_ui_interface.d.ts +901 -903
- package/types/xr_ui/xr_ui_menu.d.ts +142 -142
- package/types/xrf_plugin.d.ts +59 -51
|
@@ -1,1390 +1,2408 @@
|
|
|
1
|
-
declare module "xray16" {
|
|
2
|
-
/**
|
|
3
|
-
* Client object base presentation as script object.
|
|
4
|
-
* Generic in-game entities from items to mutants and stalkers wrapped with luabind export.
|
|
5
|
-
*
|
|
6
|
-
* @source C++ class game_object
|
|
7
|
-
* @customConstructor game_object
|
|
8
|
-
* @group xr_script_object
|
|
9
|
-
*/
|
|
10
|
-
export class game_object extends game_object_callbacks_implementation_base {
|
|
11
|
-
public static readonly dummy: -1;
|
|
12
|
-
|
|
13
|
-
public static readonly game_path: 0;
|
|
14
|
-
public static readonly level_path: 1;
|
|
15
|
-
public static readonly patrol_path: 2;
|
|
16
|
-
public static readonly no_path: 3;
|
|
17
|
-
|
|
18
|
-
public static readonly friend: 0;
|
|
19
|
-
public static readonly neutral: 1;
|
|
20
|
-
public static readonly enemy: 2;
|
|
21
|
-
|
|
22
|
-
public static readonly alifeMovementTypeMask: 0;
|
|
23
|
-
public static readonly alifeMovementTypeRandom: 1;
|
|
24
|
-
|
|
25
|
-
public static readonly dialog_pda_msg: 0;
|
|
26
|
-
public static readonly info_pda_msg: 1;
|
|
27
|
-
public static readonly no_pda_msg: 2;
|
|
28
|
-
|
|
29
|
-
public static readonly relation_kill: 0;
|
|
30
|
-
public static readonly relation_attack: 1;
|
|
31
|
-
public static readonly relation_fight_help_human: 2;
|
|
32
|
-
public static readonly relation_fight_help_monster: 4;
|
|
33
|
-
|
|
34
|
-
public static readonly movement: 0;
|
|
35
|
-
public static readonly watch: 1;
|
|
36
|
-
public static readonly animation: 2;
|
|
37
|
-
public static readonly sound: 3;
|
|
38
|
-
public static readonly particle: 4;
|
|
39
|
-
public static readonly object: 5;
|
|
40
|
-
public static readonly action_type_count: 6;
|
|
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
|
-
public
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
*
|
|
91
|
-
*/
|
|
92
|
-
public
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
public
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
public
|
|
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
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
public
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
public
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
public
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
public
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
public
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
public
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
public
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
public
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
public
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
public
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
public
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
public
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
public
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
*
|
|
361
|
-
*
|
|
362
|
-
* @
|
|
363
|
-
*/
|
|
364
|
-
public
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
public
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
public
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
public
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
public
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
public
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
public
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
public
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
public
|
|
512
|
-
|
|
513
|
-
public
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
public
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
public
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
public
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
public
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
public
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
public
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
public
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
public
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
public
|
|
658
|
-
|
|
659
|
-
/**
|
|
660
|
-
*
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
*
|
|
668
|
-
*
|
|
669
|
-
* @
|
|
670
|
-
*/
|
|
671
|
-
public
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
public
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
public
|
|
698
|
-
|
|
699
|
-
/**
|
|
700
|
-
*
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
*
|
|
706
|
-
*/
|
|
707
|
-
public
|
|
708
|
-
|
|
709
|
-
/**
|
|
710
|
-
*
|
|
711
|
-
*
|
|
712
|
-
* @param
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
* @returns
|
|
725
|
-
*/
|
|
726
|
-
public
|
|
727
|
-
|
|
728
|
-
public
|
|
729
|
-
|
|
730
|
-
public
|
|
731
|
-
|
|
732
|
-
public
|
|
733
|
-
|
|
734
|
-
public
|
|
735
|
-
|
|
736
|
-
public
|
|
737
|
-
|
|
738
|
-
public
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
public
|
|
745
|
-
|
|
746
|
-
public
|
|
747
|
-
|
|
748
|
-
public
|
|
749
|
-
|
|
750
|
-
public
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
public
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
public
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
public
|
|
816
|
-
|
|
817
|
-
public
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
public
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
*
|
|
860
|
-
*
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
public
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
*
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
public
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
* @param
|
|
910
|
-
* @
|
|
911
|
-
*/
|
|
912
|
-
public
|
|
913
|
-
|
|
914
|
-
/**
|
|
915
|
-
*
|
|
916
|
-
*
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
public
|
|
944
|
-
|
|
945
|
-
public
|
|
946
|
-
|
|
947
|
-
public
|
|
948
|
-
|
|
949
|
-
public
|
|
950
|
-
|
|
951
|
-
public
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
*
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
*
|
|
962
|
-
*
|
|
963
|
-
* @
|
|
964
|
-
*/
|
|
965
|
-
public
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
public
|
|
987
|
-
|
|
988
|
-
public
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
public
|
|
997
|
-
|
|
998
|
-
public
|
|
999
|
-
|
|
1000
|
-
public
|
|
1001
|
-
|
|
1002
|
-
public
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
public
|
|
1013
|
-
|
|
1014
|
-
public
|
|
1015
|
-
|
|
1016
|
-
public
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
):
|
|
1029
|
-
|
|
1030
|
-
public
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
public
|
|
1042
|
-
|
|
1043
|
-
public
|
|
1044
|
-
|
|
1045
|
-
public
|
|
1046
|
-
|
|
1047
|
-
public
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
*
|
|
1053
|
-
*
|
|
1054
|
-
* @param
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
):
|
|
1061
|
-
|
|
1062
|
-
public
|
|
1063
|
-
|
|
1064
|
-
public
|
|
1065
|
-
|
|
1066
|
-
public
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
public
|
|
1079
|
-
|
|
1080
|
-
public
|
|
1081
|
-
|
|
1082
|
-
public
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
public
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
public
|
|
1132
|
-
|
|
1133
|
-
public
|
|
1134
|
-
|
|
1135
|
-
public
|
|
1136
|
-
|
|
1137
|
-
public
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
public
|
|
1193
|
-
|
|
1194
|
-
public
|
|
1195
|
-
|
|
1196
|
-
public
|
|
1197
|
-
|
|
1198
|
-
public
|
|
1199
|
-
|
|
1200
|
-
public
|
|
1201
|
-
|
|
1202
|
-
public
|
|
1203
|
-
|
|
1204
|
-
public
|
|
1205
|
-
|
|
1206
|
-
public
|
|
1207
|
-
|
|
1208
|
-
public
|
|
1209
|
-
|
|
1210
|
-
public
|
|
1211
|
-
|
|
1212
|
-
public
|
|
1213
|
-
|
|
1214
|
-
public
|
|
1215
|
-
|
|
1216
|
-
public
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
public
|
|
1225
|
-
|
|
1226
|
-
public
|
|
1227
|
-
|
|
1228
|
-
public
|
|
1229
|
-
|
|
1230
|
-
public
|
|
1231
|
-
|
|
1232
|
-
public
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
public
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
public
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
public
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
public
|
|
1325
|
-
|
|
1326
|
-
public
|
|
1327
|
-
|
|
1328
|
-
public
|
|
1329
|
-
|
|
1330
|
-
public
|
|
1331
|
-
|
|
1332
|
-
public
|
|
1333
|
-
|
|
1334
|
-
public
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
public
|
|
1343
|
-
|
|
1344
|
-
public
|
|
1345
|
-
|
|
1346
|
-
public
|
|
1347
|
-
|
|
1348
|
-
public
|
|
1349
|
-
|
|
1350
|
-
public
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1
|
+
declare module "xray16" {
|
|
2
|
+
/**
|
|
3
|
+
* Client object base presentation as script object.
|
|
4
|
+
* Generic in-game entities from items to mutants and stalkers wrapped with luabind export.
|
|
5
|
+
*
|
|
6
|
+
* @source C++ class game_object
|
|
7
|
+
* @customConstructor game_object
|
|
8
|
+
* @group xr_script_object
|
|
9
|
+
*/
|
|
10
|
+
export class game_object extends game_object_callbacks_implementation_base {
|
|
11
|
+
public static readonly dummy: -1;
|
|
12
|
+
|
|
13
|
+
public static readonly game_path: 0;
|
|
14
|
+
public static readonly level_path: 1;
|
|
15
|
+
public static readonly patrol_path: 2;
|
|
16
|
+
public static readonly no_path: 3;
|
|
17
|
+
|
|
18
|
+
public static readonly friend: 0;
|
|
19
|
+
public static readonly neutral: 1;
|
|
20
|
+
public static readonly enemy: 2;
|
|
21
|
+
|
|
22
|
+
public static readonly alifeMovementTypeMask: 0;
|
|
23
|
+
public static readonly alifeMovementTypeRandom: 1;
|
|
24
|
+
|
|
25
|
+
public static readonly dialog_pda_msg: 0;
|
|
26
|
+
public static readonly info_pda_msg: 1;
|
|
27
|
+
public static readonly no_pda_msg: 2;
|
|
28
|
+
|
|
29
|
+
public static readonly relation_kill: 0;
|
|
30
|
+
public static readonly relation_attack: 1;
|
|
31
|
+
public static readonly relation_fight_help_human: 2;
|
|
32
|
+
public static readonly relation_fight_help_monster: 4;
|
|
33
|
+
|
|
34
|
+
public static readonly movement: 0;
|
|
35
|
+
public static readonly watch: 1;
|
|
36
|
+
public static readonly animation: 2;
|
|
37
|
+
public static readonly sound: 3;
|
|
38
|
+
public static readonly particle: 4;
|
|
39
|
+
public static readonly object: 5;
|
|
40
|
+
public static readonly action_type_count: 6;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Actor satiety value.
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* Assignment applies a delta through `CScriptGameObject::ChangeSatiety`, not an absolute value.
|
|
47
|
+
*/
|
|
48
|
+
public satiety: f32;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Intensity of actor bleeding.
|
|
52
|
+
* 0 - no bleeding.
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* Assignment applies a delta through `CScriptGameObject::SetBleeding`, not an absolute value.
|
|
56
|
+
*/
|
|
57
|
+
public bleeding: f32;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Object health value from 0 to 1.
|
|
61
|
+
*
|
|
62
|
+
* @remarks
|
|
63
|
+
* Assignment applies a delta through `CScriptGameObject::SetHealth`, not an absolute value.
|
|
64
|
+
* Use `set_health_ex` when the script must set exact health.
|
|
65
|
+
*/
|
|
66
|
+
public health: f32;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Creature morale value.
|
|
70
|
+
*/
|
|
71
|
+
public morale: f32;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Actor stamina/power value.
|
|
75
|
+
*
|
|
76
|
+
* @remarks
|
|
77
|
+
* Assignment applies a delta through `CScriptGameObject::SetPower`, not an absolute value.
|
|
78
|
+
*/
|
|
79
|
+
public power: f32;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Psy health value.
|
|
83
|
+
*/
|
|
84
|
+
public psy_health: f32;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Actor radiation value.
|
|
88
|
+
*
|
|
89
|
+
* @remarks
|
|
90
|
+
* Assignment applies a delta through `CScriptGameObject::SetRadiation`, not an absolute value.
|
|
91
|
+
*/
|
|
92
|
+
public radiation: f32;
|
|
93
|
+
|
|
94
|
+
protected constructor();
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Get engine object id.
|
|
98
|
+
*
|
|
99
|
+
* @returns Runtime object id.
|
|
100
|
+
*/
|
|
101
|
+
public id(): u16;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Get story id assigned to this object.
|
|
105
|
+
*
|
|
106
|
+
* @returns Story id, or engine default when no story id is assigned.
|
|
107
|
+
*/
|
|
108
|
+
public story_id(): u32;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Get inventory object by index or name.
|
|
112
|
+
*
|
|
113
|
+
* @param value - Inventory index or item name.
|
|
114
|
+
* @returns Matching item, or `null` when it does not exist.
|
|
115
|
+
*/
|
|
116
|
+
public object(value: i32 | string): game_object | null;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Get engine class id.
|
|
120
|
+
*
|
|
121
|
+
* @returns Class id constant.
|
|
122
|
+
*/
|
|
123
|
+
public clsid(): TXR_class_id;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Queue animation by name.
|
|
127
|
+
*
|
|
128
|
+
* @param animation - Animation name.
|
|
129
|
+
* @param hand_usage - Whether the animation uses hands.
|
|
130
|
+
* @param use_movement_controller - Whether movement controller should drive the animation.
|
|
131
|
+
*/
|
|
132
|
+
public add_animation(animation: string, hand_usage: boolean, use_movement_controller: boolean): void;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Queue animation with local transform data.
|
|
136
|
+
*
|
|
137
|
+
* @param animation - Animation name.
|
|
138
|
+
* @param hand_usage - Whether the animation uses hands.
|
|
139
|
+
* @param position - Animation position.
|
|
140
|
+
* @param rotation - Animation rotation.
|
|
141
|
+
* @param local_animation - Whether transform is local to the object.
|
|
142
|
+
*/
|
|
143
|
+
public add_animation(
|
|
144
|
+
animation: string,
|
|
145
|
+
hand_usage: boolean,
|
|
146
|
+
position: vector,
|
|
147
|
+
rotation: vector,
|
|
148
|
+
local_animation: boolean
|
|
149
|
+
): void;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Get current entity action.
|
|
153
|
+
*
|
|
154
|
+
* @returns Current action, or `null` when no action is active.
|
|
155
|
+
*/
|
|
156
|
+
public action(): entity_action | null;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Get queued action count.
|
|
160
|
+
*
|
|
161
|
+
* @returns Number of queued actions.
|
|
162
|
+
*/
|
|
163
|
+
public action_count(): u32;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Get active detector item.
|
|
167
|
+
*
|
|
168
|
+
* @returns Active detector, or `null`.
|
|
169
|
+
*/
|
|
170
|
+
public active_detector(): game_object | null;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Get active inventory item.
|
|
174
|
+
*
|
|
175
|
+
* @returns Active item, or `null`.
|
|
176
|
+
*/
|
|
177
|
+
public active_item(): game_object | null;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @returns Active item slot of game object.
|
|
181
|
+
*/
|
|
182
|
+
public active_slot<T extends u32>(): T;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Check whether the object contacts an active zone.
|
|
186
|
+
*
|
|
187
|
+
* @param zone_id - Zone object id.
|
|
188
|
+
* @returns Whether contact is active.
|
|
189
|
+
*/
|
|
190
|
+
public active_zone_contact(zone_id: u16): boolean;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Add movement restrictions.
|
|
194
|
+
*
|
|
195
|
+
* @param out_restriction - Restrictor name used as outside boundary.
|
|
196
|
+
* @param in_restriction - Restrictor name used as inside boundary.
|
|
197
|
+
*/
|
|
198
|
+
public add_restrictions(out_restriction: string, in_restriction: string): void;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Get current animation slot.
|
|
202
|
+
*
|
|
203
|
+
* @returns Animation slot id.
|
|
204
|
+
*/
|
|
205
|
+
public animation_slot(): i32;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Get base outside restrictions.
|
|
209
|
+
*
|
|
210
|
+
* @returns Restriction list.
|
|
211
|
+
*/
|
|
212
|
+
public base_out_restrictions(): string;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Get best known item for this object.
|
|
216
|
+
*
|
|
217
|
+
* @returns Best item, or `null`.
|
|
218
|
+
*/
|
|
219
|
+
public best_item(): game_object | null;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Get best available weapon for this object.
|
|
223
|
+
*
|
|
224
|
+
* @returns Best weapon, or `null`.
|
|
225
|
+
*/
|
|
226
|
+
public best_weapon(): game_object | null;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Attach a Lua binder to this object.
|
|
230
|
+
*
|
|
231
|
+
* @param binder - Binder instance adopted by the engine.
|
|
232
|
+
*/
|
|
233
|
+
public bind_object(binder: object_binder): void;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Get attached Lua binder.
|
|
237
|
+
*
|
|
238
|
+
* @returns Bound object binder.
|
|
239
|
+
*/
|
|
240
|
+
public binded_object(): object_binder;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Toggle burer gravity attack override.
|
|
244
|
+
*
|
|
245
|
+
* @param value - Whether forced gravity attack is enabled.
|
|
246
|
+
*/
|
|
247
|
+
public burer_set_force_gravi_attack(value: boolean): void;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Buy supplies described by a config section.
|
|
251
|
+
*
|
|
252
|
+
* @param ini - Trade config.
|
|
253
|
+
* @param section - Supply section.
|
|
254
|
+
*/
|
|
255
|
+
public buy_supplies(ini: ini_file, section: string): void;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Check whether this object can select a weapon.
|
|
259
|
+
*
|
|
260
|
+
* @returns Whether weapon selection is enabled.
|
|
261
|
+
*/
|
|
262
|
+
public can_select_weapon(): boolean;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Enable or disable weapon selection.
|
|
266
|
+
*
|
|
267
|
+
* @param is_enabled - Whether weapon selection is enabled.
|
|
268
|
+
*/
|
|
269
|
+
public can_select_weapon(is_enabled: boolean): void;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Check whether this object can throw grenades.
|
|
273
|
+
*
|
|
274
|
+
* @returns Whether grenade throwing is enabled.
|
|
275
|
+
*/
|
|
276
|
+
public can_throw_grenades(): boolean;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Enable or disable grenade throwing.
|
|
280
|
+
*
|
|
281
|
+
* @param is_enabled - Whether grenade throwing is enabled.
|
|
282
|
+
*/
|
|
283
|
+
public can_throw_grenades(is_enabled: boolean): void;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Remove queued animations.
|
|
287
|
+
*/
|
|
288
|
+
public clear_animations(): void;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Clear override animation.
|
|
292
|
+
*/
|
|
293
|
+
public clear_override_animation(): void;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Sets provided planner as `debugged` for stalker object.
|
|
297
|
+
* As result, when console command `ai_dbg_stalker on` is toggled, GOAP state of planner is displayed.
|
|
298
|
+
* Requires `mixed` build engine.
|
|
299
|
+
*
|
|
300
|
+
* @param planner - Action planner to show in stalker stats when debugging is enabled.
|
|
301
|
+
*/
|
|
302
|
+
public debug_planner(planner: action_planner): void;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Remove an info portion from this object.
|
|
306
|
+
*
|
|
307
|
+
* @param info_portion - Info portion id.
|
|
308
|
+
* @returns Whether the info portion was removed.
|
|
309
|
+
*/
|
|
310
|
+
public disable_info_portion(info_portion: string): boolean;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Disable actor dialog with this object.
|
|
314
|
+
*/
|
|
315
|
+
public disable_talk(): void;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Disable trade with this object.
|
|
319
|
+
*/
|
|
320
|
+
public disable_trade(): void;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Check that this object does not have an info portion.
|
|
324
|
+
*
|
|
325
|
+
* @param info_portion - Info portion id.
|
|
326
|
+
* @returns Whether the info portion is absent.
|
|
327
|
+
*/
|
|
328
|
+
public dont_has_info(info_portion: string): boolean;
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Drop item from inventory.
|
|
332
|
+
*
|
|
333
|
+
* @param item - Game object to drop.
|
|
334
|
+
*/
|
|
335
|
+
public drop_item(item: game_object): void;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Enable or disable night vision on actor equipment.
|
|
339
|
+
*
|
|
340
|
+
* @param is_enabled - Whether night vision is enabled.
|
|
341
|
+
*/
|
|
342
|
+
public enable_night_vision(is_enabled: boolean): void;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Start an external object sound.
|
|
346
|
+
*
|
|
347
|
+
* @param sound - Sound name.
|
|
348
|
+
*/
|
|
349
|
+
public external_sound_start(sound: string): void;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Get model bone id by name.
|
|
353
|
+
*
|
|
354
|
+
* @param bone - Bone name.
|
|
355
|
+
* @returns Bone id.
|
|
356
|
+
*/
|
|
357
|
+
public get_bone_id(bone: string): u16;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Get current movement direction.
|
|
361
|
+
*
|
|
362
|
+
* @returns Direction vector.
|
|
363
|
+
*/
|
|
364
|
+
public get_current_direction(): vector;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Get protection value from the currently equipped outfit.
|
|
368
|
+
*
|
|
369
|
+
* @param hit_type - Hit type id.
|
|
370
|
+
* @returns Protection value.
|
|
371
|
+
*/
|
|
372
|
+
public get_current_outfit_protection(hit_type: i32): f32;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Get destination smart cover.
|
|
376
|
+
*
|
|
377
|
+
* @returns Cover point.
|
|
378
|
+
*/
|
|
379
|
+
public get_dest_smart_cover(): cover_point;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Get destination smart cover name.
|
|
383
|
+
*
|
|
384
|
+
* @returns Cover name, or `null`.
|
|
385
|
+
*/
|
|
386
|
+
public get_dest_smart_cover_name(): string | null;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Get latest monster hit information.
|
|
390
|
+
*
|
|
391
|
+
* @returns Monster hit info.
|
|
392
|
+
*/
|
|
393
|
+
public get_monster_hit_info(): MonsterHitInfo;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Get physics object wrapper.
|
|
397
|
+
*
|
|
398
|
+
* @returns Physics object.
|
|
399
|
+
*/
|
|
400
|
+
public get_physics_object(): CPhysicObject;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* @returns Whether object is controlled by lua script.
|
|
404
|
+
*/
|
|
405
|
+
public get_script(): boolean;
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Get current smart cover description.
|
|
409
|
+
*
|
|
410
|
+
* @returns Smart cover description.
|
|
411
|
+
*/
|
|
412
|
+
public get_smart_cover_description(): string;
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Show a talk message.
|
|
416
|
+
*
|
|
417
|
+
* @param title - Message title.
|
|
418
|
+
* @param text - Message text.
|
|
419
|
+
* @param icon - Message icon.
|
|
420
|
+
*/
|
|
421
|
+
public give_talk_message(title: string, text: string, icon: string): void;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Get maximum idle time.
|
|
425
|
+
*
|
|
426
|
+
* @returns Idle time in milliseconds.
|
|
427
|
+
*/
|
|
428
|
+
public idle_max_time(): f32;
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Set maximum idle time.
|
|
432
|
+
*
|
|
433
|
+
* @param time - Idle time in milliseconds.
|
|
434
|
+
*/
|
|
435
|
+
public idle_max_time(time: f32): void;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Check whether a position is inside the current loophole field of view.
|
|
439
|
+
*
|
|
440
|
+
* @param position - Position to test.
|
|
441
|
+
* @returns Whether position is inside field of view.
|
|
442
|
+
*/
|
|
443
|
+
public in_current_loophole_fov(position: vector): boolean;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Iterate inventory items.
|
|
447
|
+
*
|
|
448
|
+
* @param cb - Callback called for each item.
|
|
449
|
+
*/
|
|
450
|
+
public inventory_for_each(cb: (this: void) => void): void;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Check whether a door is blocked by an NPC.
|
|
454
|
+
*
|
|
455
|
+
* @returns Whether a door is blocked.
|
|
456
|
+
*/
|
|
457
|
+
public is_door_blocked_by_npc(): boolean;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Check whether actor dialog is enabled.
|
|
461
|
+
*
|
|
462
|
+
* @returns Whether talking is enabled.
|
|
463
|
+
*/
|
|
464
|
+
public is_talk_enabled(): boolean;
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Check whether a weapon is being strapped.
|
|
468
|
+
*
|
|
469
|
+
* @param weapon - Weapon to check.
|
|
470
|
+
* @returns Whether weapon is being strapped.
|
|
471
|
+
*/
|
|
472
|
+
public is_weapon_going_to_be_strapped(weapon: game_object | null): boolean;
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* Iterate items inside an inventory box.
|
|
476
|
+
*
|
|
477
|
+
* @param cb - Callback called for each box item.
|
|
478
|
+
* @param object - Inventory box object.
|
|
479
|
+
*/
|
|
480
|
+
public iterate_inventory_box(
|
|
481
|
+
cb: (this: void, box: game_object, item: game_object) => void,
|
|
482
|
+
object: game_object
|
|
483
|
+
): void;
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Get maximum lookout time.
|
|
487
|
+
*
|
|
488
|
+
* @returns Lookout time in milliseconds.
|
|
489
|
+
*/
|
|
490
|
+
public lookout_max_time(): f32;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Set maximum lookout time.
|
|
494
|
+
*
|
|
495
|
+
* @param value - Lookout time in milliseconds.
|
|
496
|
+
*/
|
|
497
|
+
public lookout_max_time(value: f32): void;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* Get maximum distance at which monsters can be ignored.
|
|
501
|
+
*
|
|
502
|
+
* @returns Distance.
|
|
503
|
+
*/
|
|
504
|
+
public max_ignore_monster_distance(): f32;
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Set maximum distance at which monsters can be ignored.
|
|
508
|
+
*
|
|
509
|
+
* @param value - Distance.
|
|
510
|
+
*/
|
|
511
|
+
public max_ignore_monster_distance(value: f32): void;
|
|
512
|
+
|
|
513
|
+
public memory_hit_objects(): unknown; // :vector<MemorySpace::CHitObject, xalloc<struct MemorySpace::CHitObject>
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* Get time since this object remembered another object.
|
|
517
|
+
*
|
|
518
|
+
* @param another - Object to query.
|
|
519
|
+
* @returns Memory time.
|
|
520
|
+
*/
|
|
521
|
+
public memory_time(another: game_object): u32;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Get visible objects from memory.
|
|
525
|
+
*
|
|
526
|
+
* @returns Iterable visible memory objects.
|
|
527
|
+
*/
|
|
528
|
+
public memory_visible_objects(): LuaIterable<visible_memory_object>;
|
|
529
|
+
|
|
530
|
+
public mental_state<T extends number>(): T; // Todo: unknown enum
|
|
531
|
+
|
|
532
|
+
public not_yet_visible_objects(): unknown;
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Get inventory object count.
|
|
536
|
+
*
|
|
537
|
+
* @returns Inventory item count.
|
|
538
|
+
*/
|
|
539
|
+
public object_count(): u32;
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Check whether current path is complete.
|
|
543
|
+
*
|
|
544
|
+
* @returns Whether path was completed.
|
|
545
|
+
*/
|
|
546
|
+
public path_completed(): boolean;
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* Get relation to another object.
|
|
550
|
+
*
|
|
551
|
+
* @param object - Target object.
|
|
552
|
+
* @returns Relation id.
|
|
553
|
+
*/
|
|
554
|
+
public relation(object: game_object): TXR_relation;
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Release forced standing sleep animation.
|
|
558
|
+
*/
|
|
559
|
+
public release_stand_sleep_animation(): void;
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Clear queued entity actions.
|
|
563
|
+
*/
|
|
564
|
+
public reset_action_queue(): void;
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Restore default sound threshold.
|
|
568
|
+
*/
|
|
569
|
+
public restore_sound_threshold(): void;
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Set carried object weight.
|
|
573
|
+
*
|
|
574
|
+
* @param weight - New weight.
|
|
575
|
+
*/
|
|
576
|
+
public set_weight(weight: f32): void;
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* Set actor yaw direction.
|
|
580
|
+
*
|
|
581
|
+
* @param direction - Direction angle.
|
|
582
|
+
*/
|
|
583
|
+
public set_actor_direction(direction: f32): void;
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* Set ammo count in current magazine.
|
|
587
|
+
*
|
|
588
|
+
* @param count - Ammo count.
|
|
589
|
+
*/
|
|
590
|
+
public set_ammo_elapsed(count: i32): void;
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Set goodwill toward a community.
|
|
594
|
+
*
|
|
595
|
+
* @param community - Community id.
|
|
596
|
+
* @param goodwill - Goodwill value.
|
|
597
|
+
*/
|
|
598
|
+
public set_community_goodwill(community: string, goodwill: i32): void;
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Apply constant force for a time interval.
|
|
602
|
+
*
|
|
603
|
+
* @param direction - Force direction.
|
|
604
|
+
* @param power - Force power.
|
|
605
|
+
* @param time_interval - Duration in milliseconds.
|
|
606
|
+
*/
|
|
607
|
+
public set_const_force(direction: vector, power: f32, time_interval: u32): void;
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* Clear destination smart cover.
|
|
611
|
+
*/
|
|
612
|
+
public set_dest_smart_cover(): void;
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Set destination smart cover by name.
|
|
616
|
+
*
|
|
617
|
+
* @param smart_cover - Smart cover name.
|
|
618
|
+
*/
|
|
619
|
+
public set_dest_smart_cover(smart_cover: string): void;
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Set current enemy object.
|
|
623
|
+
*
|
|
624
|
+
* @param object - Enemy object.
|
|
625
|
+
*/
|
|
626
|
+
public set_enemy(object: game_object): void;
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* Set field of view.
|
|
630
|
+
*
|
|
631
|
+
* @param fov - Field of view angle.
|
|
632
|
+
*/
|
|
633
|
+
public set_fov(fov: f32): void;
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Set item used by an action.
|
|
637
|
+
*
|
|
638
|
+
* @param action_id - Action id.
|
|
639
|
+
* @param object - Item object, or `null`.
|
|
640
|
+
* @param min_queue_size - Optional minimum queue size.
|
|
641
|
+
* @param max_queue_size - Optional maximum queue size.
|
|
642
|
+
*/
|
|
643
|
+
public set_item(action_id: number, object: game_object | null, min_queue_size?: u32, max_queue_size?: u32): void;
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* Set mental animation state.
|
|
647
|
+
*
|
|
648
|
+
* @param state - Target mental state.
|
|
649
|
+
*/
|
|
650
|
+
public set_mental_state(state: TXR_animation): void;
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* Force an override animation.
|
|
654
|
+
*
|
|
655
|
+
* @param animation - Animation name.
|
|
656
|
+
*/
|
|
657
|
+
public set_override_animation(animation: string): void;
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Set path planning type.
|
|
661
|
+
*
|
|
662
|
+
* @param type - Path type.
|
|
663
|
+
*/
|
|
664
|
+
public set_path_type(type: TXR_game_object_path): void;
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* Set previous patrol point index.
|
|
668
|
+
*
|
|
669
|
+
* @param point - Point index.
|
|
670
|
+
*/
|
|
671
|
+
public set_previous_point(point: i32): void;
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* Clear smart cover target.
|
|
675
|
+
*/
|
|
676
|
+
public set_smart_cover_target(): void;
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Set smart cover target object.
|
|
680
|
+
*
|
|
681
|
+
* @param game_object - Target object.
|
|
682
|
+
*/
|
|
683
|
+
public set_smart_cover_target(game_object: game_object): void;
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Set smart cover target position.
|
|
687
|
+
*
|
|
688
|
+
* @param vector - Target position.
|
|
689
|
+
*/
|
|
690
|
+
public set_smart_cover_target(vector: vector): void;
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Enable or disable default smart cover target.
|
|
694
|
+
*
|
|
695
|
+
* @param is_enabled - Whether default target is enabled.
|
|
696
|
+
*/
|
|
697
|
+
public set_smart_cover_target_default(is_enabled: boolean): void;
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* Use smart cover fire target.
|
|
701
|
+
*/
|
|
702
|
+
public set_smart_cover_target_fire(): void;
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* Use smart cover lookout target.
|
|
706
|
+
*/
|
|
707
|
+
public set_smart_cover_target_lookout(): void;
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Set start patrol point index.
|
|
711
|
+
*
|
|
712
|
+
* @param point - Point index.
|
|
713
|
+
*/
|
|
714
|
+
public set_start_point(point: i32): void;
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* Get voice sound prefix.
|
|
718
|
+
*
|
|
719
|
+
* @returns Voice sound prefix.
|
|
720
|
+
*/
|
|
721
|
+
public sound_voice_prefix(): string;
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* @returns Game object squad id.
|
|
725
|
+
*/
|
|
726
|
+
public squad(): i32;
|
|
727
|
+
|
|
728
|
+
public switch_to_talk(): void;
|
|
729
|
+
|
|
730
|
+
public team(): i32;
|
|
731
|
+
|
|
732
|
+
public use_smart_covers_only(): boolean;
|
|
733
|
+
|
|
734
|
+
public use_smart_covers_only(value: boolean): void;
|
|
735
|
+
|
|
736
|
+
public weapon_addon_attach(object: game_object): void;
|
|
737
|
+
|
|
738
|
+
public weapon_addon_detach(addon: string): void;
|
|
739
|
+
|
|
740
|
+
public weapon_is_scope(): boolean;
|
|
741
|
+
|
|
742
|
+
public weapon_silencer_status(): i32;
|
|
743
|
+
|
|
744
|
+
public weapon_strapped(): boolean;
|
|
745
|
+
|
|
746
|
+
public weapon_unstrapped(): boolean;
|
|
747
|
+
|
|
748
|
+
public who_hit_name(): string;
|
|
749
|
+
|
|
750
|
+
public who_hit_section_name(): string;
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Activate an inventory slot.
|
|
754
|
+
*
|
|
755
|
+
* @param index - Slot id.
|
|
756
|
+
*/
|
|
757
|
+
public activate_slot(index: u32): void;
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* Force actor look direction toward a point.
|
|
761
|
+
*
|
|
762
|
+
* @param position - Point to look at.
|
|
763
|
+
*/
|
|
764
|
+
public actor_look_at_point(position: vector): void;
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* Get aimed bone id.
|
|
768
|
+
*
|
|
769
|
+
* @returns Bone name.
|
|
770
|
+
*/
|
|
771
|
+
public aim_bone_id(): string;
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* Set aimed bone id.
|
|
775
|
+
*
|
|
776
|
+
* @param bone - Bone name.
|
|
777
|
+
*/
|
|
778
|
+
public aim_bone_id(bone: string): void;
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* Get aim time for a target.
|
|
782
|
+
*
|
|
783
|
+
* @param object - Target object.
|
|
784
|
+
* @returns Aim time.
|
|
785
|
+
*/
|
|
786
|
+
public aim_time(object: game_object): u32;
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* Set aim time for a target.
|
|
790
|
+
*
|
|
791
|
+
* @param object - Target object.
|
|
792
|
+
* @param time - Aim time.
|
|
793
|
+
*/
|
|
794
|
+
public aim_time(object: game_object, time: u32): void;
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* Enable or disable actor sprint.
|
|
798
|
+
*
|
|
799
|
+
* @param is_allowed - Whether sprint is allowed.
|
|
800
|
+
*/
|
|
801
|
+
public allow_sprint(is_allowed: boolean): void;
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* Get animation count.
|
|
805
|
+
*
|
|
806
|
+
* @returns Animation count.
|
|
807
|
+
*/
|
|
808
|
+
public animation_count(): i32;
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* Get most relevant danger object.
|
|
812
|
+
*
|
|
813
|
+
* @returns Danger object, or `null`.
|
|
814
|
+
*/
|
|
815
|
+
public best_danger(): danger_object | null;
|
|
816
|
+
|
|
817
|
+
public body_state(): void;
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Get model bone world position.
|
|
821
|
+
*
|
|
822
|
+
* @param bone - Bone name.
|
|
823
|
+
* @returns Bone position.
|
|
824
|
+
*/
|
|
825
|
+
public bone_position(bone: string): vector;
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* Set item condition factor used by buying logic.
|
|
829
|
+
*
|
|
830
|
+
* @param factor - Condition factor.
|
|
831
|
+
*/
|
|
832
|
+
public buy_item_condition_factor(factor: f32): void;
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* Change team, squad, and group ids.
|
|
836
|
+
*
|
|
837
|
+
* @param team_id - Team id.
|
|
838
|
+
* @param squad_id - Squad id.
|
|
839
|
+
* @param group_id - Group id.
|
|
840
|
+
*/
|
|
841
|
+
public change_team(team_id: u8, squad_id: u8, group_id: u8): void;
|
|
842
|
+
|
|
843
|
+
/**
|
|
844
|
+
* Get character icon id.
|
|
845
|
+
*
|
|
846
|
+
* @returns Icon id.
|
|
847
|
+
*/
|
|
848
|
+
public character_icon<T extends string = string>(): T;
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* Get localized character name.
|
|
852
|
+
*
|
|
853
|
+
* @returns Character display name.
|
|
854
|
+
*/
|
|
855
|
+
public character_name<T extends string = string>(): T;
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* Get character rank value.
|
|
859
|
+
*
|
|
860
|
+
* @returns Rank value.
|
|
861
|
+
*/
|
|
862
|
+
public character_rank(): i32;
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* Get item condition.
|
|
866
|
+
*
|
|
867
|
+
* @returns Condition value.
|
|
868
|
+
*/
|
|
869
|
+
public condition(): f32;
|
|
870
|
+
|
|
871
|
+
/**
|
|
872
|
+
* Get object cost.
|
|
873
|
+
*
|
|
874
|
+
* @returns Cost.
|
|
875
|
+
*/
|
|
876
|
+
public cost(): u32;
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* Check whether NPC is critically wounded.
|
|
880
|
+
*
|
|
881
|
+
* @returns Whether object is critically wounded.
|
|
882
|
+
*/
|
|
883
|
+
public critically_wounded(): boolean;
|
|
884
|
+
|
|
885
|
+
public deadbody_closed(value: boolean): void;
|
|
886
|
+
|
|
887
|
+
public death_sound_enabled(): boolean;
|
|
888
|
+
|
|
889
|
+
public death_sound_enabled(value: boolean): void;
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* Get object facing direction.
|
|
893
|
+
*
|
|
894
|
+
* @returns Direction vector.
|
|
895
|
+
*/
|
|
896
|
+
public direction(): vector;
|
|
897
|
+
|
|
898
|
+
public disable_anomaly(): void;
|
|
899
|
+
|
|
900
|
+
public disable_hit_marks(): boolean;
|
|
901
|
+
|
|
902
|
+
public disable_hit_marks(value: boolean): void;
|
|
903
|
+
|
|
904
|
+
public disable_inv_upgrade(): void;
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* Drop an item and teleport it to a position.
|
|
908
|
+
*
|
|
909
|
+
* @param item - Item to drop.
|
|
910
|
+
* @param position - Target position.
|
|
911
|
+
*/
|
|
912
|
+
public drop_item_and_teleport(item: game_object, position: vector): void;
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* Consume an inventory item.
|
|
916
|
+
*
|
|
917
|
+
* @param item - Item to eat or use.
|
|
918
|
+
*/
|
|
919
|
+
public eat(item: game_object): void;
|
|
920
|
+
|
|
921
|
+
public enable_inv_upgrade(): void;
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
* Switch client level changed enabled state.
|
|
925
|
+
*
|
|
926
|
+
* @param is_enabled - Whether level changer should be enabled.
|
|
927
|
+
*/
|
|
928
|
+
public enable_level_changer(is_enabled: boolean): void;
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* Enable or disable memory tracking for an object.
|
|
932
|
+
*
|
|
933
|
+
* @param object - Object to update.
|
|
934
|
+
* @param is_enabled - Whether memory object is enabled.
|
|
935
|
+
*/
|
|
936
|
+
public enable_memory_object(object: game_object, is_enabled: boolean): void;
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* Trigger object explosion.
|
|
940
|
+
*
|
|
941
|
+
* @param id - Explosion id or initiator id.
|
|
942
|
+
*/
|
|
943
|
+
public explode(id: u32): void;
|
|
944
|
+
|
|
945
|
+
public extrapolate_length(): f32;
|
|
946
|
+
|
|
947
|
+
public extrapolate_length(value: f32): void;
|
|
948
|
+
|
|
949
|
+
public fake_death_stand_up(): void;
|
|
950
|
+
|
|
951
|
+
public fov(): f32;
|
|
952
|
+
|
|
953
|
+
/**
|
|
954
|
+
* Get total suitable ammo count.
|
|
955
|
+
*
|
|
956
|
+
* @returns Ammo count.
|
|
957
|
+
*/
|
|
958
|
+
public get_ammo_total(): u32;
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* Get active ammo type.
|
|
962
|
+
*
|
|
963
|
+
* @returns Ammo type id.
|
|
964
|
+
*/
|
|
965
|
+
public get_ammo_type(): u8;
|
|
966
|
+
|
|
967
|
+
public get_artefact(): CArtefact;
|
|
968
|
+
|
|
969
|
+
public get_campfire(): CZoneCampfire;
|
|
970
|
+
|
|
971
|
+
public get_current_outfit(): game_object | null;
|
|
972
|
+
|
|
973
|
+
public get_current_point_index(): u32;
|
|
974
|
+
|
|
975
|
+
public get_force_anti_aim(): boolean;
|
|
976
|
+
|
|
977
|
+
public get_hanging_lamp(): hanging_lamp;
|
|
978
|
+
|
|
979
|
+
public get_holder_class(): holder;
|
|
980
|
+
|
|
981
|
+
public get_movement_speed(): vector;
|
|
982
|
+
|
|
983
|
+
/**
|
|
984
|
+
* @returns Name of lua script controlling monster object.
|
|
985
|
+
*/
|
|
986
|
+
public get_script_name(): string;
|
|
987
|
+
|
|
988
|
+
public get_visual_name<T extends string = string>(): T;
|
|
989
|
+
|
|
990
|
+
/**
|
|
991
|
+
* Check whether this object has an info portion.
|
|
992
|
+
*
|
|
993
|
+
* @param info_portion - Info portion id.
|
|
994
|
+
* @returns Whether the info portion is present.
|
|
995
|
+
*/
|
|
996
|
+
public has_info(info_portion: string): boolean;
|
|
997
|
+
|
|
998
|
+
public hide_weapon(): void;
|
|
999
|
+
|
|
1000
|
+
public idle_min_time(): f32;
|
|
1001
|
+
|
|
1002
|
+
public idle_min_time(value: f32): void;
|
|
1003
|
+
|
|
1004
|
+
/**
|
|
1005
|
+
* Check whether a position is inside a named loophole field of view.
|
|
1006
|
+
*
|
|
1007
|
+
* @param cover_name - Smart cover name.
|
|
1008
|
+
* @param loophole_name - Loophole name.
|
|
1009
|
+
* @param position - Position to test.
|
|
1010
|
+
* @returns Whether position is inside field of view.
|
|
1011
|
+
*/
|
|
1012
|
+
public in_loophole_fov(cover_name: string, loophole_name: string, position: vector): boolean;
|
|
1013
|
+
|
|
1014
|
+
public in_restrictions(): string;
|
|
1015
|
+
|
|
1016
|
+
public in_smart_cover(): boolean;
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* Available only in debug mode.
|
|
1020
|
+
* Sets information for game object for debug.
|
|
1021
|
+
*/
|
|
1022
|
+
public info_add(text: string): void;
|
|
1023
|
+
|
|
1024
|
+
public inv_box_can_take(value: boolean): boolean;
|
|
1025
|
+
|
|
1026
|
+
public invulnerable(): boolean;
|
|
1027
|
+
|
|
1028
|
+
public invulnerable(value: boolean): void;
|
|
1029
|
+
|
|
1030
|
+
public is_body_turning(): boolean;
|
|
1031
|
+
|
|
1032
|
+
public is_level_changer_enabled(): boolean;
|
|
1033
|
+
|
|
1034
|
+
public is_there_items_to_pickup(): boolean;
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* Kill a target object.
|
|
1038
|
+
*
|
|
1039
|
+
* @param object - Target object.
|
|
1040
|
+
*/
|
|
1041
|
+
public kill(object: game_object): void;
|
|
1042
|
+
|
|
1043
|
+
public location_on_path(value: f32, vector: vector): u32;
|
|
1044
|
+
|
|
1045
|
+
public lock_door_for_npc(): void;
|
|
1046
|
+
|
|
1047
|
+
public lookout_min_time(): f32;
|
|
1048
|
+
|
|
1049
|
+
public lookout_min_time(time: f32): void;
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* Make an inventory item active.
|
|
1053
|
+
*
|
|
1054
|
+
* @param item - Item to activate.
|
|
1055
|
+
*/
|
|
1056
|
+
public make_item_active(item: game_object): void;
|
|
1057
|
+
|
|
1058
|
+
public marked_dropped(game_object: game_object): boolean;
|
|
1059
|
+
|
|
1060
|
+
public memory_sound_objects(): unknown;
|
|
1061
|
+
|
|
1062
|
+
public money(): u32;
|
|
1063
|
+
|
|
1064
|
+
public motivation_action_manager(): action_planner;
|
|
1065
|
+
|
|
1066
|
+
public movement_type(): number; // Todo: unknown enum
|
|
1067
|
+
|
|
1068
|
+
public patrol(): string | null;
|
|
1069
|
+
|
|
1070
|
+
public patrol_path_make_inactual(): void;
|
|
1071
|
+
|
|
1072
|
+
public play_cycle(value1: string, value2: boolean): void;
|
|
1073
|
+
|
|
1074
|
+
public play_cycle(value: string): void;
|
|
1075
|
+
|
|
1076
|
+
public play_sound(value1: u32, value2?: u32, value3?: u32, value4?: u32, value5?: u32, value6?: u32): void;
|
|
1077
|
+
|
|
1078
|
+
public register_door_for_npc(): void;
|
|
1079
|
+
|
|
1080
|
+
public remove_home(): void;
|
|
1081
|
+
|
|
1082
|
+
public remove_restrictions(value1: string, value2: string): void;
|
|
1083
|
+
|
|
1084
|
+
public remove_sound(value: u32): void;
|
|
1085
|
+
|
|
1086
|
+
public restore_default_start_dialog(): void;
|
|
1087
|
+
|
|
1088
|
+
public restore_max_ignore_monster_distance(): void;
|
|
1089
|
+
|
|
1090
|
+
public section<T extends string = string>(): T;
|
|
1091
|
+
|
|
1092
|
+
public see(game_object: game_object): boolean;
|
|
1093
|
+
|
|
1094
|
+
public see(value: string): boolean;
|
|
1095
|
+
|
|
1096
|
+
public sell_condition(ini_file: ini_file, section: string): void;
|
|
1097
|
+
|
|
1098
|
+
public sell_condition(value1: f32, value2: f32): void;
|
|
1099
|
+
|
|
1100
|
+
public set__force(vector: vector, value1: number, value2: number): void;
|
|
1101
|
+
|
|
1102
|
+
public set_actor_relation_flags(value: flags32): void;
|
|
1103
|
+
|
|
1104
|
+
public set_alien_control(is_enabled: boolean): void;
|
|
1105
|
+
|
|
1106
|
+
public set_body_state(state: TXR_MonsterBodyState): void;
|
|
1107
|
+
|
|
1108
|
+
public set_capture_anim(game_object: game_object, value1: string, vector: vector, value2: f32): void;
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* Set character community.
|
|
1112
|
+
*
|
|
1113
|
+
* @param community - Community id.
|
|
1114
|
+
* @param rank - Rank value used by relation logic.
|
|
1115
|
+
* @param goodwill - Goodwill value.
|
|
1116
|
+
*/
|
|
1117
|
+
public set_character_community(community: string, rank: u32, goodwill: i32): void;
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* Set character rank.
|
|
1121
|
+
*
|
|
1122
|
+
* @param rank - Rank value.
|
|
1123
|
+
*/
|
|
1124
|
+
public set_character_rank(rank: i32): void;
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* Set character reputation.
|
|
1128
|
+
*
|
|
1129
|
+
* @param reputation - Reputation value.
|
|
1130
|
+
*/
|
|
1131
|
+
public set_character_reputation(reputation: i32): void;
|
|
1132
|
+
|
|
1133
|
+
public set_collision_off(value: boolean): void;
|
|
1134
|
+
|
|
1135
|
+
public set_default_panic_threshold(): void;
|
|
1136
|
+
|
|
1137
|
+
public set_dest_game_vertex_id(value: u16): void;
|
|
1138
|
+
|
|
1139
|
+
/**
|
|
1140
|
+
* Set destination level vertex.
|
|
1141
|
+
*
|
|
1142
|
+
* @param vertex_id - Target level vertex id.
|
|
1143
|
+
*/
|
|
1144
|
+
public set_dest_level_vertex_id(vertex_id: u32): void;
|
|
1145
|
+
|
|
1146
|
+
public set_detail_path_type(EDetailPathType: unknown /* Enum DetailPathManager::EDetailPathType */): void;
|
|
1147
|
+
|
|
1148
|
+
public set_invisible(is_invisible: boolean): void;
|
|
1149
|
+
|
|
1150
|
+
public set_movement_selection_type(type: unknown /* Enum ESelectionType */): void;
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* Set movement patrol path.
|
|
1154
|
+
*
|
|
1155
|
+
* @param path_name - Patrol path name.
|
|
1156
|
+
* @param start_type - Patrol start type.
|
|
1157
|
+
* @param route_type - Patrol route type.
|
|
1158
|
+
* @param random - Whether path point selection is random.
|
|
1159
|
+
*/
|
|
1160
|
+
public set_patrol_path(path_name: string, start_type: number, route_type: number, random: boolean): void;
|
|
1161
|
+
|
|
1162
|
+
public set_smart_cover_target_idle(): void;
|
|
1163
|
+
|
|
1164
|
+
public set_sympathy(value: f32): void;
|
|
1165
|
+
|
|
1166
|
+
public set_trader_sound(value1: string, value2: string): void;
|
|
1167
|
+
|
|
1168
|
+
public sight_params(): CSightParams;
|
|
1169
|
+
|
|
1170
|
+
public skip_transfer_enemy(value: boolean): void;
|
|
1171
|
+
|
|
1172
|
+
public sniper_update_rate(): boolean;
|
|
1173
|
+
|
|
1174
|
+
public sniper_update_rate(value: boolean): void;
|
|
1175
|
+
|
|
1176
|
+
public spawn_ini(): ini_file | null;
|
|
1177
|
+
|
|
1178
|
+
public special_danger_move(): boolean;
|
|
1179
|
+
|
|
1180
|
+
public special_danger_move(value: boolean): void;
|
|
1181
|
+
|
|
1182
|
+
public stop_particles(name: string, bone: string): void;
|
|
1183
|
+
|
|
1184
|
+
public switch_to_trade(): void;
|
|
1185
|
+
|
|
1186
|
+
public sympathy(): f32;
|
|
1187
|
+
|
|
1188
|
+
public take_items_enabled(): boolean;
|
|
1189
|
+
|
|
1190
|
+
public take_items_enabled(value: boolean): void;
|
|
1191
|
+
|
|
1192
|
+
public torch_enabled(): boolean;
|
|
1193
|
+
|
|
1194
|
+
public unload_magazine(): void;
|
|
1195
|
+
|
|
1196
|
+
public unlock_door_for_npc(): void;
|
|
1197
|
+
|
|
1198
|
+
public visibility_threshold(): f32;
|
|
1199
|
+
|
|
1200
|
+
public weapon_is_grenadelauncher(): boolean;
|
|
1201
|
+
|
|
1202
|
+
public set_sight(type: TXR_SightType, torso_look: boolean, path: boolean): void;
|
|
1203
|
+
|
|
1204
|
+
public set_sight(type: TXR_SightType, vector: vector | null, lookOverDelay: u32): void;
|
|
1205
|
+
|
|
1206
|
+
public set_sight(type: TXR_SightType, vector: vector, torso_look: boolean, fire_object: boolean): void;
|
|
1207
|
+
|
|
1208
|
+
public set_sight(type: TXR_SightType, vector: vector, torso_look: boolean): void;
|
|
1209
|
+
|
|
1210
|
+
public set_sight(type: TXR_SightType, vector: vector): void;
|
|
1211
|
+
|
|
1212
|
+
public set_sight(game_object: game_object, torso_look?: boolean, fire_object?: boolean, no_pitch?: boolean): void;
|
|
1213
|
+
|
|
1214
|
+
public set_task_state(state: TXR_TaskState, value: string): void;
|
|
1215
|
+
|
|
1216
|
+
public set_visual_memory_enabled(enabled: boolean): void;
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* Set trade show condition.
|
|
1220
|
+
*
|
|
1221
|
+
* @param ini_file - Trade config.
|
|
1222
|
+
* @param section - Condition section.
|
|
1223
|
+
*/
|
|
1224
|
+
public show_condition(ini_file: unknown, section: string): void;
|
|
1225
|
+
|
|
1226
|
+
public sound_prefix(): string;
|
|
1227
|
+
|
|
1228
|
+
public sound_prefix(value: string): void;
|
|
1229
|
+
|
|
1230
|
+
public wounded(): boolean;
|
|
1231
|
+
|
|
1232
|
+
public wounded(wounded: boolean): void;
|
|
1233
|
+
|
|
1234
|
+
/**
|
|
1235
|
+
* Register an NPC sound.
|
|
1236
|
+
*
|
|
1237
|
+
* @param prefix - Sound prefix.
|
|
1238
|
+
* @param priority - Sound priority.
|
|
1239
|
+
* @param type - Sound type.
|
|
1240
|
+
* @param mask - Sound mask.
|
|
1241
|
+
* @param internal_type - Internal sound type.
|
|
1242
|
+
* @param max_count - Maximum active sounds.
|
|
1243
|
+
* @returns Registered sound id.
|
|
1244
|
+
*/
|
|
1245
|
+
public add_sound(prefix: string, priority: u32, type: unknown, mask: u32, internal_type: u32, max_count: u32): u32;
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* Register an NPC sound with a bone name.
|
|
1249
|
+
*
|
|
1250
|
+
* @param prefix - Sound prefix.
|
|
1251
|
+
* @param priority - Sound priority.
|
|
1252
|
+
* @param type - Sound type.
|
|
1253
|
+
* @param mask - Sound mask.
|
|
1254
|
+
* @param internal_type - Internal sound type.
|
|
1255
|
+
* @param max_count - Maximum active sounds.
|
|
1256
|
+
* @param bone - Bone name.
|
|
1257
|
+
* @returns Registered sound id.
|
|
1258
|
+
*/
|
|
1259
|
+
public add_sound(
|
|
1260
|
+
prefix: string,
|
|
1261
|
+
priority: u32,
|
|
1262
|
+
type: unknown,
|
|
1263
|
+
mask: u32,
|
|
1264
|
+
internal_type: u32,
|
|
1265
|
+
max_count: u32,
|
|
1266
|
+
bone: string
|
|
1267
|
+
): u32;
|
|
1268
|
+
|
|
1269
|
+
public active_sound_count(): i32;
|
|
1270
|
+
|
|
1271
|
+
public active_sound_count(value: boolean): void;
|
|
1272
|
+
|
|
1273
|
+
public allow_break_talk_dialog(value: boolean): void;
|
|
1274
|
+
|
|
1275
|
+
public apply_loophole_direction_distance(): f32;
|
|
1276
|
+
|
|
1277
|
+
public apply_loophole_direction_distance(value: f32): void;
|
|
1278
|
+
|
|
1279
|
+
public attachable_item_enabled(): boolean;
|
|
1280
|
+
|
|
1281
|
+
public burer_get_force_gravi_attack(): boolean;
|
|
1282
|
+
|
|
1283
|
+
public burer_get_force_anti_aim(): boolean;
|
|
1284
|
+
|
|
1285
|
+
public buy_condition(ini_file: ini_file, section: string): void;
|
|
1286
|
+
|
|
1287
|
+
public buy_condition(value1: f32, value2: f32): void;
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* Add a delta to character reputation.
|
|
1291
|
+
*
|
|
1292
|
+
* @param delta - Reputation delta.
|
|
1293
|
+
*/
|
|
1294
|
+
public change_character_reputation(delta: i32): void;
|
|
1295
|
+
|
|
1296
|
+
/**
|
|
1297
|
+
* Add a delta to goodwill toward another object.
|
|
1298
|
+
*
|
|
1299
|
+
* @param delta_goodwill - Goodwill delta.
|
|
1300
|
+
* @param to_object - Target object.
|
|
1301
|
+
*/
|
|
1302
|
+
public change_goodwill(delta_goodwill: i32, to_object: game_object): void;
|
|
1303
|
+
|
|
1304
|
+
/**
|
|
1305
|
+
* Add a delta to character rank.
|
|
1306
|
+
*
|
|
1307
|
+
* @param delta - Rank delta.
|
|
1308
|
+
*/
|
|
1309
|
+
public change_character_rank(delta: i32): void;
|
|
1310
|
+
|
|
1311
|
+
/**
|
|
1312
|
+
* Get character reputation.
|
|
1313
|
+
*
|
|
1314
|
+
* @returns Reputation value.
|
|
1315
|
+
*/
|
|
1316
|
+
public character_reputation(): i32;
|
|
1317
|
+
|
|
1318
|
+
/**
|
|
1319
|
+
* Get goodwill toward a community.
|
|
1320
|
+
*
|
|
1321
|
+
* @param from_community - Community id.
|
|
1322
|
+
* @returns Goodwill value.
|
|
1323
|
+
*/
|
|
1324
|
+
public community_goodwill(from_community: string): i32;
|
|
1325
|
+
|
|
1326
|
+
public deadbody_can_take(value: boolean): void;
|
|
1327
|
+
|
|
1328
|
+
public deadbody_can_take_status(): boolean;
|
|
1329
|
+
|
|
1330
|
+
public detail_path_type(): unknown;
|
|
1331
|
+
|
|
1332
|
+
public disable_show_hide_sounds(value: boolean): void;
|
|
1333
|
+
|
|
1334
|
+
public enable_anomaly(): void;
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* Method for inventory items to set them enabled / disabled for stalkers.
|
|
1338
|
+
* As result, medkit or detector can be activated by stalker.
|
|
1339
|
+
*
|
|
1340
|
+
* @param is_enabled - Whether item should be enabled for usage by owning object.
|
|
1341
|
+
*/
|
|
1342
|
+
public enable_attachable_item(is_enabled: boolean): void;
|
|
1343
|
+
|
|
1344
|
+
public enable_talk(): void;
|
|
1345
|
+
|
|
1346
|
+
public enable_trade(): void;
|
|
1347
|
+
|
|
1348
|
+
public enable_vision(value: boolean): void;
|
|
1349
|
+
|
|
1350
|
+
public fake_death_fall_down(): boolean;
|
|
1351
|
+
|
|
1352
|
+
/**
|
|
1353
|
+
* Set goodwill toward another object without applying a delta.
|
|
1354
|
+
*
|
|
1355
|
+
* @param goodwill - Goodwill value.
|
|
1356
|
+
* @param to_object - Target object.
|
|
1357
|
+
*/
|
|
1358
|
+
public force_set_goodwill(goodwill: i32, to_object: game_object): void;
|
|
1359
|
+
|
|
1360
|
+
/**
|
|
1361
|
+
* For bloodsuckers specifically set current visibility state.
|
|
1362
|
+
*/
|
|
1363
|
+
public force_visibility_state(state: TXR_bloodsucker_visibility_state): void;
|
|
1364
|
+
|
|
1365
|
+
/**
|
|
1366
|
+
* Return formula: `personal_goodwill + reputation_goodwill + rank_goodwill +
|
|
1367
|
+
* community_goodwill + community_to_community`.
|
|
1368
|
+
*
|
|
1369
|
+
* @param target - Target client object.
|
|
1370
|
+
* @returns Goodwill level from object to target.
|
|
1371
|
+
*/
|
|
1372
|
+
public general_goodwill(target: game_object): i32;
|
|
1373
|
+
|
|
1374
|
+
public get_actor_relation_flags(): flags32;
|
|
1375
|
+
|
|
1376
|
+
public get_ammo_in_magazine(): u32;
|
|
1377
|
+
|
|
1378
|
+
public get_car(): CCar;
|
|
1379
|
+
|
|
1380
|
+
public get_corpse(): game_object | null;
|
|
1381
|
+
|
|
1382
|
+
public get_current_holder(): holder;
|
|
1383
|
+
|
|
1384
|
+
public get_enemy(): game_object | null;
|
|
1385
|
+
|
|
1386
|
+
public get_enemy_strength(): i32;
|
|
1387
|
+
|
|
1388
|
+
public get_physics_shell(): physics_shell | null;
|
|
1389
|
+
|
|
1390
|
+
public get_start_dialog(): void;
|
|
1391
|
+
|
|
1392
|
+
/**
|
|
1393
|
+
* Get task by id.
|
|
1394
|
+
*
|
|
1395
|
+
* @param task_id - Task id.
|
|
1396
|
+
* @param only_in_process - Whether to return only active tasks.
|
|
1397
|
+
* @returns Task object, or `null`.
|
|
1398
|
+
*/
|
|
1399
|
+
public get_task(task_id: string, only_in_process: boolean): CGameTask | null;
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* Get task state by id.
|
|
1403
|
+
*
|
|
1404
|
+
* @param task_id - Task id.
|
|
1405
|
+
* @returns Task state id.
|
|
1406
|
+
*/
|
|
1407
|
+
public get_task_state(task_id: string): unknown;
|
|
1408
|
+
|
|
1409
|
+
/**
|
|
1410
|
+
* Add an info portion to this object.
|
|
1411
|
+
*
|
|
1412
|
+
* @param info_portion - Info portion id.
|
|
1413
|
+
* @returns Whether the info portion was added.
|
|
1414
|
+
*/
|
|
1415
|
+
public give_info_portion(info_portion: string): boolean;
|
|
1416
|
+
|
|
1417
|
+
/**
|
|
1418
|
+
* Add money to this object.
|
|
1419
|
+
*
|
|
1420
|
+
* @param amount - Money amount.
|
|
1421
|
+
*/
|
|
1422
|
+
public give_money(amount: i32): void;
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* Show talk dialog message with icon.
|
|
1426
|
+
*
|
|
1427
|
+
* @param title - Title of the message.
|
|
1428
|
+
* @param text - Text of the message.
|
|
1429
|
+
* @param icon_texture_name - Icon to display in message image.
|
|
1430
|
+
* @param selector - Path in form XML to message template.
|
|
1431
|
+
*/
|
|
1432
|
+
public give_talk_message2(title: string, text: string, icon_texture_name: string, selector: string): void;
|
|
1433
|
+
|
|
1434
|
+
/**
|
|
1435
|
+
* Give game task for an object, usually it is actor object.
|
|
1436
|
+
*
|
|
1437
|
+
* @param task - Task object to give.
|
|
1438
|
+
* @param time_to_complete - Time allowed to complete the task.
|
|
1439
|
+
* @param check_existing - Whether an existing task should be reused.
|
|
1440
|
+
* @param timer_ttl - Timer lifetime.
|
|
1441
|
+
*/
|
|
1442
|
+
public give_task(task: CGameTask, time_to_complete: u32, check_existing: boolean, timer_ttl: u32): void;
|
|
1443
|
+
|
|
1444
|
+
/**
|
|
1445
|
+
* Returns level of goodwill stored for an object.
|
|
1446
|
+
* No strict formulas, just get actual value.
|
|
1447
|
+
*
|
|
1448
|
+
* @param target - Target client object.
|
|
1449
|
+
* @returns Goodwill level to target object.
|
|
1450
|
+
*/
|
|
1451
|
+
public goodwill(target: game_object): i32;
|
|
1452
|
+
|
|
1453
|
+
public group_throw_time_interval(): u32;
|
|
1454
|
+
|
|
1455
|
+
public group_throw_time_interval(value: u32): void;
|
|
1456
|
+
|
|
1457
|
+
public head_orientation(): vector;
|
|
1458
|
+
|
|
1459
|
+
public ignore_monster_threshold(): f32;
|
|
1460
|
+
|
|
1461
|
+
public ignore_monster_threshold(value: f32): void;
|
|
1462
|
+
|
|
1463
|
+
public in_current_loophole_range(vector: vector): boolean;
|
|
1464
|
+
|
|
1465
|
+
/**
|
|
1466
|
+
* Reset debugging information about object.
|
|
1467
|
+
* Available only for debug builds.
|
|
1468
|
+
*/
|
|
1469
|
+
public info_clear(): void;
|
|
1470
|
+
|
|
1471
|
+
public inside(position: vector): boolean;
|
|
1472
|
+
|
|
1473
|
+
public inside(position: vector, epsilon: f32): boolean;
|
|
1474
|
+
|
|
1475
|
+
public inv_box_can_take_status(): boolean;
|
|
1476
|
+
|
|
1477
|
+
public inv_box_closed(value1: boolean, value2: string): boolean;
|
|
1478
|
+
|
|
1479
|
+
public is_active_task(task: CGameTask): boolean;
|
|
1480
|
+
|
|
1481
|
+
public is_door_locked_for_npc(): boolean;
|
|
1482
|
+
|
|
1483
|
+
public is_inv_box_empty(): boolean;
|
|
1484
|
+
|
|
1485
|
+
public is_inv_upgrade_enabled(): boolean;
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* @returns Whether object is currently talking with actor and talk dialog is active.
|
|
1489
|
+
*/
|
|
1490
|
+
public is_talking(): boolean;
|
|
1491
|
+
|
|
1492
|
+
public is_trade_enabled(): boolean;
|
|
1493
|
+
|
|
1494
|
+
/**
|
|
1495
|
+
* Get item in inventory slot.
|
|
1496
|
+
*
|
|
1497
|
+
* @param slot - Slot id.
|
|
1498
|
+
* @returns Item in slot, or `null`.
|
|
1499
|
+
*/
|
|
1500
|
+
public item_in_slot(slot: u32): game_object | null;
|
|
1501
|
+
|
|
1502
|
+
/**
|
|
1503
|
+
* Get item on belt by slot.
|
|
1504
|
+
*
|
|
1505
|
+
* @param slot - Belt slot id.
|
|
1506
|
+
* @returns Item on belt, or `null`.
|
|
1507
|
+
*/
|
|
1508
|
+
public item_on_belt(slot: u32): game_object | null;
|
|
1509
|
+
|
|
1510
|
+
public jump(vector: vector, value: f32): void;
|
|
1511
|
+
|
|
1512
|
+
public make_object_visible_somewhen(game_object: game_object): void;
|
|
1513
|
+
|
|
1514
|
+
public mark_item_dropped(game_object: game_object): void;
|
|
1515
|
+
|
|
1516
|
+
public mass(): f32;
|
|
1517
|
+
|
|
1518
|
+
public max_health(): f32;
|
|
1519
|
+
|
|
1520
|
+
public night_vision_enabled(): boolean;
|
|
1521
|
+
|
|
1522
|
+
public on_door_is_closed(): void;
|
|
1523
|
+
|
|
1524
|
+
public on_door_is_open(): void;
|
|
1525
|
+
|
|
1526
|
+
public out_restrictions(): string;
|
|
1527
|
+
|
|
1528
|
+
public path_type(): unknown;
|
|
1529
|
+
|
|
1530
|
+
public poltergeist_get_actor_ignore(): boolean;
|
|
1531
|
+
|
|
1532
|
+
public profile_name(): string;
|
|
1533
|
+
|
|
1534
|
+
public range(): f32;
|
|
1535
|
+
|
|
1536
|
+
public rank(): i32;
|
|
1537
|
+
|
|
1538
|
+
public remove_all_restrictions(): void;
|
|
1539
|
+
|
|
1540
|
+
public restore_ignore_monster_threshold(): void;
|
|
1541
|
+
|
|
1542
|
+
public restore_weapon(): void;
|
|
1543
|
+
|
|
1544
|
+
public run_talk_dialog(game_object: game_object, value: boolean): void;
|
|
1545
|
+
|
|
1546
|
+
public set_active_task(task: CGameTask): void;
|
|
1547
|
+
|
|
1548
|
+
public set_actor_position(vector: vector): void;
|
|
1549
|
+
|
|
1550
|
+
public set_anomaly_power(value: f32): void;
|
|
1551
|
+
|
|
1552
|
+
public set_custom_panic_threshold(value: f32): void;
|
|
1553
|
+
|
|
1554
|
+
public set_dest_loophole(): void;
|
|
1555
|
+
|
|
1556
|
+
public set_dest_loophole(value: string): void;
|
|
1557
|
+
|
|
1558
|
+
/**
|
|
1559
|
+
* Set goodwill toward another object.
|
|
1560
|
+
*
|
|
1561
|
+
* @param goodwill - Goodwill value.
|
|
1562
|
+
* @param object - Target object.
|
|
1563
|
+
*/
|
|
1564
|
+
public set_goodwill(goodwill: i32, object: game_object): void;
|
|
1565
|
+
|
|
1566
|
+
public set_home(
|
|
1567
|
+
name: string | null,
|
|
1568
|
+
min_radius: f32,
|
|
1569
|
+
max_radius?: f32,
|
|
1570
|
+
is_agressive?: boolean,
|
|
1571
|
+
mid_radius?: f32
|
|
1572
|
+
): void;
|
|
1573
|
+
|
|
1574
|
+
public set_home(
|
|
1575
|
+
lvid: u32 | null,
|
|
1576
|
+
min_radius: f32,
|
|
1577
|
+
max_radius?: f32,
|
|
1578
|
+
is_agressive?: boolean,
|
|
1579
|
+
mid_radius?: f32
|
|
1580
|
+
): void;
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* Set level changer invitation hint text.
|
|
1584
|
+
*
|
|
1585
|
+
* @param hint - Text to show when trying to change level.
|
|
1586
|
+
*/
|
|
1587
|
+
public set_level_changer_invitation(hint: string): void;
|
|
1588
|
+
|
|
1589
|
+
public set_nonscript_usable(is_usable: boolean): void;
|
|
1590
|
+
|
|
1591
|
+
public set_queue_size(value: u32): void;
|
|
1592
|
+
|
|
1593
|
+
/**
|
|
1594
|
+
* Set relation to another object.
|
|
1595
|
+
*
|
|
1596
|
+
* @param relation - Relation id.
|
|
1597
|
+
* @param object - Target object.
|
|
1598
|
+
*/
|
|
1599
|
+
public set_relation(relation: number, object: game_object): void;
|
|
1600
|
+
|
|
1601
|
+
public set_smart_cover_target_fire_no_lookout(): unknown;
|
|
1602
|
+
|
|
1603
|
+
public set_sound_mask(value: u32): void;
|
|
1604
|
+
|
|
1605
|
+
public set_start_dialog(value: string): void;
|
|
1606
|
+
|
|
1607
|
+
/**
|
|
1608
|
+
* Set tip text when actor is near and hovering aim over target.
|
|
1609
|
+
* As example, `talk`, `loot` and other kind of labels is possible when using this method.
|
|
1610
|
+
*
|
|
1611
|
+
* @param text - Text to set as tip.
|
|
1612
|
+
*/
|
|
1613
|
+
public set_tip_text(text: string): void;
|
|
1614
|
+
|
|
1615
|
+
public set_tip_text_default(): void;
|
|
1616
|
+
|
|
1617
|
+
public set_trader_global_anim(value: string): void;
|
|
1618
|
+
|
|
1619
|
+
public set_vis_state(value: f32): void;
|
|
1620
|
+
|
|
1621
|
+
public sniper_fire_mode(): boolean;
|
|
1622
|
+
|
|
1623
|
+
public sniper_fire_mode(value: boolean): void;
|
|
1624
|
+
|
|
1625
|
+
public start_particles(value1: string, value2: string): void;
|
|
1626
|
+
|
|
1627
|
+
public stop_talk(): void;
|
|
1628
|
+
|
|
1629
|
+
public switch_to_upgrade(): void;
|
|
1630
|
+
|
|
1631
|
+
// For weapons / outfits:
|
|
1632
|
+
|
|
1633
|
+
/**
|
|
1634
|
+
* @param upgrade_section - Section of upgrade to check.
|
|
1635
|
+
* @returns Whether upgrade can be added.
|
|
1636
|
+
*/
|
|
1637
|
+
public can_add_upgrade(upgrade_section: string): boolean;
|
|
1638
|
+
|
|
1639
|
+
/**
|
|
1640
|
+
* @param upgrade_section - Section of upgrade to check.
|
|
1641
|
+
* @returns Whether upgrade can be installed.
|
|
1642
|
+
*/
|
|
1643
|
+
public can_install_upgrade(upgrade_section: string): boolean;
|
|
1644
|
+
|
|
1645
|
+
/**
|
|
1646
|
+
* @param upgrade_section - Section of upgrade to check.
|
|
1647
|
+
* @returns Whether upgrade is installed.
|
|
1648
|
+
*/
|
|
1649
|
+
public has_upgrade(upgrade_section: string): boolean;
|
|
1650
|
+
|
|
1651
|
+
/**
|
|
1652
|
+
* @param upgrade_group_section - Section of upgrade group to check.
|
|
1653
|
+
* @returns Whether upgrade group is installed.
|
|
1654
|
+
*/
|
|
1655
|
+
public has_upgrade_group(upgrade_group_section: string): boolean;
|
|
1656
|
+
|
|
1657
|
+
/**
|
|
1658
|
+
* @param upgrade_section - Section of upgrade to check parent group.
|
|
1659
|
+
* @returns Whether upgrade parent group is installed.
|
|
1660
|
+
*/
|
|
1661
|
+
public has_upgrade_group_by_upgrade_id(upgrade_section: string): boolean;
|
|
1662
|
+
|
|
1663
|
+
/**
|
|
1664
|
+
* @param upgrade_section - Section of upgrade to add.
|
|
1665
|
+
* @returns Whether upgrade is installed successfully or not.
|
|
1666
|
+
*/
|
|
1667
|
+
public add_upgrade(upgrade_section: string): boolean;
|
|
1668
|
+
|
|
1669
|
+
/**
|
|
1670
|
+
* @param upgrade_section - Section of upgrade to install.
|
|
1671
|
+
* @returns Whether upgrade is installed successfully or not.
|
|
1672
|
+
*/
|
|
1673
|
+
public install_upgrade(upgrade_section: string): boolean;
|
|
1674
|
+
|
|
1675
|
+
/**
|
|
1676
|
+
* Iterate over all item upgrades.
|
|
1677
|
+
*
|
|
1678
|
+
* @param callback - Callback to call on each iteration to check installed upgrades.
|
|
1679
|
+
*/
|
|
1680
|
+
public iterate_installed_upgrades(callback: (upgrade_section: string, object: game_object) => void): void;
|
|
1681
|
+
|
|
1682
|
+
public target_body_state(): TXR_move;
|
|
1683
|
+
|
|
1684
|
+
public target_movement_type(): number; /* EMovementType */
|
|
1685
|
+
|
|
1686
|
+
/**
|
|
1687
|
+
* Transfer an item to another inventory owner.
|
|
1688
|
+
*
|
|
1689
|
+
* @param item - Item to transfer.
|
|
1690
|
+
* @param to - Recipient object.
|
|
1691
|
+
*/
|
|
1692
|
+
public transfer_item(item: game_object, to: game_object): void;
|
|
1693
|
+
|
|
1694
|
+
/**
|
|
1695
|
+
* Transfer money from another object to this object.
|
|
1696
|
+
*
|
|
1697
|
+
* @param amount - Money amount.
|
|
1698
|
+
* @param from - Source object.
|
|
1699
|
+
*/
|
|
1700
|
+
public transfer_money(amount: i32, from: game_object): void;
|
|
1701
|
+
|
|
1702
|
+
public unregister_in_combat(): void;
|
|
1703
|
+
|
|
1704
|
+
public vertex_in_direction(value1: u32, vector: vector, value2: f32): u32;
|
|
1705
|
+
|
|
1706
|
+
public vision_enabled(): boolean;
|
|
1707
|
+
|
|
1708
|
+
public weapon_grenadelauncher_status(): i32;
|
|
1709
|
+
|
|
1710
|
+
public weapon_is_silencer(): boolean;
|
|
1711
|
+
|
|
1712
|
+
public weapon_scope_status(): i32;
|
|
1713
|
+
|
|
1714
|
+
public weight(): f32;
|
|
1715
|
+
|
|
1716
|
+
/**
|
|
1717
|
+
* Display in-game UI notification.
|
|
1718
|
+
*
|
|
1719
|
+
* @param title - Notification title.
|
|
1720
|
+
* @param text - Notification text.
|
|
1721
|
+
* @param icon_texture - Notification icon texture.
|
|
1722
|
+
* @param delay - Delay before show notification.
|
|
1723
|
+
* @param show_time - Time to show notification before hiding it.
|
|
1724
|
+
* @param type - Type of the notification (eNews = 0, eTalk = 1).
|
|
1725
|
+
*/
|
|
1726
|
+
public give_game_news(
|
|
1727
|
+
title: string,
|
|
1728
|
+
text: string,
|
|
1729
|
+
icon_texture: string,
|
|
1730
|
+
delay: i32,
|
|
1731
|
+
show_time: i32,
|
|
1732
|
+
type?: Maybe<i32>
|
|
1733
|
+
): void;
|
|
1734
|
+
|
|
1735
|
+
/**
|
|
1736
|
+
* @param position - Target position to check.
|
|
1737
|
+
* @returns If target position is accessible by the object.
|
|
1738
|
+
*/
|
|
1739
|
+
public accessible(position: vector): boolean;
|
|
1740
|
+
|
|
1741
|
+
/**
|
|
1742
|
+
* @param vertex_id - Target vertex ID to check.
|
|
1743
|
+
* @returns If target vertex is accessible by the object.
|
|
1744
|
+
*/
|
|
1745
|
+
public accessible(vertex_id: u32): boolean;
|
|
1746
|
+
|
|
1747
|
+
public accuracy(): f32;
|
|
1748
|
+
|
|
1749
|
+
public attachable_item_load_attach(value: string): void;
|
|
1750
|
+
|
|
1751
|
+
/**
|
|
1752
|
+
* Find the best cover from one position against another.
|
|
1753
|
+
*
|
|
1754
|
+
* @param position - Search origin.
|
|
1755
|
+
* @param enemy_position - Threat position.
|
|
1756
|
+
* @param min_distance - Minimum distance.
|
|
1757
|
+
* @param max_distance - Maximum distance.
|
|
1758
|
+
* @param deviation - Allowed direction deviation.
|
|
1759
|
+
* @returns Cover point.
|
|
1760
|
+
*/
|
|
1761
|
+
public best_cover(
|
|
1762
|
+
position: vector,
|
|
1763
|
+
enemy_position: vector,
|
|
1764
|
+
min_distance: f32,
|
|
1765
|
+
max_distance: f32,
|
|
1766
|
+
deviation: f32
|
|
1767
|
+
): cover_point;
|
|
1768
|
+
|
|
1769
|
+
/**
|
|
1770
|
+
* Get best known enemy.
|
|
1771
|
+
*
|
|
1772
|
+
* @returns Enemy object, or `null`.
|
|
1773
|
+
*/
|
|
1774
|
+
public best_enemy(): game_object | null;
|
|
1775
|
+
|
|
1776
|
+
/**
|
|
1777
|
+
* Get object center position.
|
|
1778
|
+
*
|
|
1779
|
+
* @returns Center position.
|
|
1780
|
+
*/
|
|
1781
|
+
public center(): vector;
|
|
1782
|
+
|
|
1783
|
+
/**
|
|
1784
|
+
* Check whether dead body inventory is closed.
|
|
1785
|
+
*
|
|
1786
|
+
* @returns Whether looting is closed.
|
|
1787
|
+
*/
|
|
1788
|
+
public deadbody_closed_status(): boolean;
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* Get object death time.
|
|
1792
|
+
*
|
|
1793
|
+
* @returns Death time.
|
|
1794
|
+
*/
|
|
1795
|
+
public death_time(): u32;
|
|
1796
|
+
|
|
1797
|
+
/**
|
|
1798
|
+
* Enable or disable torch.
|
|
1799
|
+
*
|
|
1800
|
+
* @param is_enabled - Whether torch is enabled.
|
|
1801
|
+
*/
|
|
1802
|
+
public enable_torch(is_enabled: boolean): void;
|
|
1803
|
+
|
|
1804
|
+
public force_stand_sleep_animation(value: u32): void;
|
|
1805
|
+
|
|
1806
|
+
public get_visibility_state(): i32;
|
|
1807
|
+
|
|
1808
|
+
public in_loophole_range(value1: string, value2: string, vector: vector): boolean;
|
|
1809
|
+
|
|
1810
|
+
public poltergeist_set_actor_ignore(value: boolean): void;
|
|
1811
|
+
|
|
1812
|
+
public set_desired_position(): void;
|
|
1813
|
+
|
|
1814
|
+
public set_desired_position(vector: vector): void;
|
|
1815
|
+
|
|
1816
|
+
public set_force_anti_aim(value: boolean): void;
|
|
1817
|
+
|
|
1818
|
+
public set_range(value: f32): void;
|
|
1819
|
+
|
|
1820
|
+
public suitable_smart_cover(game_object: game_object): boolean;
|
|
1821
|
+
|
|
1822
|
+
/**
|
|
1823
|
+
* Register a combat sound.
|
|
1824
|
+
*
|
|
1825
|
+
* @param prefix - Sound prefix.
|
|
1826
|
+
* @param priority - Sound priority.
|
|
1827
|
+
* @param type - Sound type.
|
|
1828
|
+
* @param mask - Sound mask.
|
|
1829
|
+
* @param internal_type - Internal sound type.
|
|
1830
|
+
* @param max_count - Maximum active sounds.
|
|
1831
|
+
* @param bone - Bone name.
|
|
1832
|
+
* @returns Registered sound id.
|
|
1833
|
+
*/
|
|
1834
|
+
public add_combat_sound(
|
|
1835
|
+
prefix: string,
|
|
1836
|
+
priority: number,
|
|
1837
|
+
type: i32 /* Enum ESoundTypes */,
|
|
1838
|
+
mask: u32,
|
|
1839
|
+
internal_type: u32,
|
|
1840
|
+
max_count: u32,
|
|
1841
|
+
bone: string
|
|
1842
|
+
): u32;
|
|
1843
|
+
|
|
1844
|
+
/**
|
|
1845
|
+
* Switch monster into berserk state.
|
|
1846
|
+
*/
|
|
1847
|
+
public berserk(): void;
|
|
1848
|
+
|
|
1849
|
+
/**
|
|
1850
|
+
* Add action for game object entity.
|
|
1851
|
+
* Depending on priority pushes it to back or front of actions list.
|
|
1852
|
+
*
|
|
1853
|
+
* @param entity_action - Action to perform.
|
|
1854
|
+
* @param is_high_priority - Whether it is high priority action.
|
|
1855
|
+
*/
|
|
1856
|
+
|
|
1857
|
+
public command(entity_action: entity_action, is_high_priority: boolean): void;
|
|
1858
|
+
|
|
1859
|
+
/**
|
|
1860
|
+
* Apply a hit descriptor to this object.
|
|
1861
|
+
*
|
|
1862
|
+
* @param hit - Hit descriptor.
|
|
1863
|
+
*/
|
|
1864
|
+
public hit(hit: hit): void;
|
|
1865
|
+
|
|
1866
|
+
/**
|
|
1867
|
+
* Mark patrol path cache as outdated.
|
|
1868
|
+
*/
|
|
1869
|
+
public inactualize_patrol_path(): void;
|
|
1870
|
+
|
|
1871
|
+
/**
|
|
1872
|
+
* Mark level path cache as outdated.
|
|
1873
|
+
*/
|
|
1874
|
+
public inactualize_level_path(): void;
|
|
1875
|
+
|
|
1876
|
+
/**
|
|
1877
|
+
* Mark game path cache as outdated.
|
|
1878
|
+
*/
|
|
1879
|
+
public inactualize_game_path(): void;
|
|
1880
|
+
|
|
1881
|
+
/**
|
|
1882
|
+
* Iterate over game object inventory.
|
|
1883
|
+
* Runs supplied callback for each item in inventory of the object.
|
|
1884
|
+
* If callback returns `true`, the cycle breaks.
|
|
1885
|
+
*
|
|
1886
|
+
* @param cb - Callback to run for each item.
|
|
1887
|
+
* @param object - Target object to run callback for (actually unused by the engine).
|
|
1888
|
+
*/
|
|
1889
|
+
public iterate_inventory(
|
|
1890
|
+
cb: (this: void, owner: game_object, item: game_object) => void | boolean,
|
|
1891
|
+
object: game_object
|
|
1892
|
+
): void;
|
|
1893
|
+
|
|
1894
|
+
public movement_enabled(): boolean;
|
|
1895
|
+
|
|
1896
|
+
public movement_enabled(value: boolean): void;
|
|
1897
|
+
|
|
1898
|
+
public set_condition(condition: f32): void;
|
|
1899
|
+
|
|
1900
|
+
/**
|
|
1901
|
+
* @param vertex_position - Position to test from.
|
|
1902
|
+
* @param target_position - Desired target position.
|
|
1903
|
+
* @returns Level vertex id and accessible position.
|
|
1904
|
+
*/
|
|
1905
|
+
public accessible_nearest(vertex_position: vector, target_position: vector): LuaMultiReturn<[u32, vector]>;
|
|
1906
|
+
|
|
1907
|
+
/**
|
|
1908
|
+
* Get queued action by index.
|
|
1909
|
+
*
|
|
1910
|
+
* @param index - Action index.
|
|
1911
|
+
* @returns Action object, or `null`.
|
|
1912
|
+
*/
|
|
1913
|
+
public action_by_index(index: u32): entity_action | null;
|
|
1914
|
+
|
|
1915
|
+
/**
|
|
1916
|
+
* @returns Whether game object is alive.
|
|
1917
|
+
*/
|
|
1918
|
+
public alive(): boolean;
|
|
1919
|
+
|
|
1920
|
+
public base_in_restrictions(): string;
|
|
1921
|
+
|
|
1922
|
+
/**
|
|
1923
|
+
* Check whether scripts can capture this object.
|
|
1924
|
+
*
|
|
1925
|
+
* @returns Whether script capture is allowed.
|
|
1926
|
+
*/
|
|
1927
|
+
public can_script_capture(): boolean;
|
|
1928
|
+
|
|
1929
|
+
/**
|
|
1930
|
+
* @returns Object community like `monolith`, `stalker` or `zombied`.
|
|
1931
|
+
*/
|
|
1932
|
+
public character_community<T extends string = string>(): T;
|
|
1933
|
+
|
|
1934
|
+
public external_sound_stop(): void;
|
|
1935
|
+
|
|
1936
|
+
public find_best_cover(vector: vector): cover_point;
|
|
1937
|
+
|
|
1938
|
+
/**
|
|
1939
|
+
* Get current game graph vertex id.
|
|
1940
|
+
*
|
|
1941
|
+
* @returns Game vertex id.
|
|
1942
|
+
*/
|
|
1943
|
+
public game_vertex_id(): u32;
|
|
1944
|
+
|
|
1945
|
+
public get_helicopter(): CHelicopter;
|
|
1946
|
+
|
|
1947
|
+
public get_sound_info(): SoundInfo;
|
|
1948
|
+
|
|
1949
|
+
/**
|
|
1950
|
+
* Get object group id.
|
|
1951
|
+
*
|
|
1952
|
+
* @returns Group id.
|
|
1953
|
+
*/
|
|
1954
|
+
public group(): i32;
|
|
1955
|
+
|
|
1956
|
+
public inv_box_closed_status(): boolean;
|
|
1957
|
+
|
|
1958
|
+
/**
|
|
1959
|
+
* Get current level vertex id.
|
|
1960
|
+
*
|
|
1961
|
+
* @returns Level vertex id.
|
|
1962
|
+
*/
|
|
1963
|
+
public level_vertex_id(): u32;
|
|
1964
|
+
|
|
1965
|
+
/**
|
|
1966
|
+
* Get remembered position of another object.
|
|
1967
|
+
*
|
|
1968
|
+
* @param object - Remembered object.
|
|
1969
|
+
* @returns Last remembered position.
|
|
1970
|
+
*/
|
|
1971
|
+
public memory_position(object: game_object): vector;
|
|
1972
|
+
|
|
1973
|
+
/**
|
|
1974
|
+
* Check whether current movement target is reached.
|
|
1975
|
+
*
|
|
1976
|
+
* @returns Whether movement target is reached.
|
|
1977
|
+
*/
|
|
1978
|
+
public movement_target_reached(): boolean;
|
|
1979
|
+
|
|
1980
|
+
/**
|
|
1981
|
+
* Get runtime object name.
|
|
1982
|
+
*
|
|
1983
|
+
* @returns Object name.
|
|
1984
|
+
*/
|
|
1985
|
+
public name(): string;
|
|
1986
|
+
|
|
1987
|
+
/**
|
|
1988
|
+
* Get parent object.
|
|
1989
|
+
*
|
|
1990
|
+
* @returns Parent object.
|
|
1991
|
+
*/
|
|
1992
|
+
public parent(): game_object;
|
|
1993
|
+
|
|
1994
|
+
/**
|
|
1995
|
+
* Get current world position.
|
|
1996
|
+
*
|
|
1997
|
+
* @returns Position vector.
|
|
1998
|
+
*/
|
|
1999
|
+
public position(): vector;
|
|
2000
|
+
|
|
2001
|
+
public register_in_combat(): void;
|
|
2002
|
+
|
|
2003
|
+
public safe_cover(vector: vector, value1: f32, value2: f32): cover_point;
|
|
2004
|
+
|
|
2005
|
+
/**
|
|
2006
|
+
* Enable or disable script control.
|
|
2007
|
+
*
|
|
2008
|
+
* @param script_control - Whether script control is enabled.
|
|
2009
|
+
* @param script_name - Script control name.
|
|
2010
|
+
*/
|
|
2011
|
+
public script(script_control: boolean, script_name: string): void;
|
|
2012
|
+
|
|
2013
|
+
public set_desired_direction(): void;
|
|
2014
|
+
|
|
2015
|
+
public set_desired_direction(vector: vector): void;
|
|
2016
|
+
|
|
2017
|
+
public set_manual_invisibility(value: boolean): void;
|
|
2018
|
+
|
|
2019
|
+
public set_movement_type(EMovementType: number /* MonsterSpace::EMovementType */): void;
|
|
2020
|
+
|
|
2021
|
+
public set_npc_position(vector: vector): void;
|
|
2022
|
+
|
|
2023
|
+
public set_sound_threshold(value: f32): void;
|
|
2024
|
+
|
|
2025
|
+
public set_trader_head_anim(value: string): void;
|
|
2026
|
+
|
|
2027
|
+
public set_visual_name(name: string): void;
|
|
2028
|
+
|
|
2029
|
+
public target_mental_state(): TXR_animation;
|
|
2030
|
+
|
|
2031
|
+
public unregister_door_for_npc(): void;
|
|
2032
|
+
|
|
2033
|
+
public ammo_get_count(): u16;
|
|
2034
|
+
|
|
2035
|
+
public ammo_set_count(count: u16): void;
|
|
2036
|
+
|
|
2037
|
+
public ammo_box_size(): u16;
|
|
2038
|
+
|
|
2039
|
+
/**
|
|
2040
|
+
* Cast this object to a stalker wrapper.
|
|
2041
|
+
*
|
|
2042
|
+
* @returns Stalker wrapper.
|
|
2043
|
+
*/
|
|
2044
|
+
public cast_Stalker(): CAI_Stalker;
|
|
2045
|
+
|
|
2046
|
+
/**
|
|
2047
|
+
* Cast this object to an artefact wrapper.
|
|
2048
|
+
*
|
|
2049
|
+
* @returns Artefact wrapper.
|
|
2050
|
+
*/
|
|
2051
|
+
public cast_Artefact(): CArtefact;
|
|
2052
|
+
|
|
2053
|
+
/**
|
|
2054
|
+
* Cast this object to a car wrapper.
|
|
2055
|
+
*
|
|
2056
|
+
* @returns Car wrapper.
|
|
2057
|
+
*/
|
|
2058
|
+
public cast_Car(): CCar;
|
|
2059
|
+
|
|
2060
|
+
/**
|
|
2061
|
+
* Cast this object to a base game object wrapper.
|
|
2062
|
+
*
|
|
2063
|
+
* @returns Game object wrapper.
|
|
2064
|
+
*/
|
|
2065
|
+
public cast_GameObject(): CGameObject;
|
|
2066
|
+
|
|
2067
|
+
/**
|
|
2068
|
+
* Cast this object to a helicopter wrapper.
|
|
2069
|
+
*
|
|
2070
|
+
* @returns Helicopter wrapper.
|
|
2071
|
+
*/
|
|
2072
|
+
public cast_Heli(): CHelicopter;
|
|
2073
|
+
|
|
2074
|
+
/**
|
|
2075
|
+
* Cast this object to a space restrictor wrapper.
|
|
2076
|
+
*
|
|
2077
|
+
* @returns Space restrictor wrapper.
|
|
2078
|
+
*/
|
|
2079
|
+
public cast_SpaceRestrictor(): CSpaceRestrictor;
|
|
2080
|
+
|
|
2081
|
+
/**
|
|
2082
|
+
* Cast this object to a holder wrapper.
|
|
2083
|
+
*
|
|
2084
|
+
* @returns Holder wrapper.
|
|
2085
|
+
*/
|
|
2086
|
+
public cast_HolderCustom(): holder;
|
|
2087
|
+
|
|
2088
|
+
/**
|
|
2089
|
+
* Cast this object to a weapon wrapper.
|
|
2090
|
+
*
|
|
2091
|
+
* @returns Weapon wrapper.
|
|
2092
|
+
*/
|
|
2093
|
+
public cast_Weapon(): CWeapon;
|
|
2094
|
+
|
|
2095
|
+
/**
|
|
2096
|
+
* Cast this object to an ammo wrapper.
|
|
2097
|
+
*
|
|
2098
|
+
* @returns Ammo wrapper.
|
|
2099
|
+
*/
|
|
2100
|
+
public cast_Ammo(): CWeaponAmmo;
|
|
2101
|
+
|
|
2102
|
+
/**
|
|
2103
|
+
* Cast this object to a magazined weapon wrapper.
|
|
2104
|
+
*
|
|
2105
|
+
* @returns Magazined weapon wrapper.
|
|
2106
|
+
*/
|
|
2107
|
+
public cast_WeaponMagazined(): CWeaponMagazined;
|
|
2108
|
+
|
|
2109
|
+
/**
|
|
2110
|
+
* Cast this object to a script zone wrapper.
|
|
2111
|
+
*
|
|
2112
|
+
* @returns Script zone wrapper.
|
|
2113
|
+
*/
|
|
2114
|
+
public cast_ScriptZone(): ce_script_zone;
|
|
2115
|
+
|
|
2116
|
+
/**
|
|
2117
|
+
* Cast this object to a custom zone wrapper.
|
|
2118
|
+
*
|
|
2119
|
+
* @returns Custom zone wrapper.
|
|
2120
|
+
*/
|
|
2121
|
+
public cast_CustomZone(): CCustomZone;
|
|
2122
|
+
|
|
2123
|
+
/**
|
|
2124
|
+
* Cast this object to an alive entity wrapper.
|
|
2125
|
+
*
|
|
2126
|
+
* @returns Alive entity wrapper.
|
|
2127
|
+
*/
|
|
2128
|
+
public cast_EntityAlive(): CEntityAlive;
|
|
2129
|
+
|
|
2130
|
+
/**
|
|
2131
|
+
* Cast this object to an explosive wrapper.
|
|
2132
|
+
*
|
|
2133
|
+
* @returns Explosive wrapper.
|
|
2134
|
+
*/
|
|
2135
|
+
public cast_Explosive(): explosive;
|
|
2136
|
+
|
|
2137
|
+
/**
|
|
2138
|
+
* Cast this object to a physics shell holder wrapper.
|
|
2139
|
+
*
|
|
2140
|
+
* @returns Physics shell holder wrapper.
|
|
2141
|
+
*/
|
|
2142
|
+
public cast_PhysicsShellHolder(): CPhysicsShellHolder;
|
|
2143
|
+
|
|
2144
|
+
/**
|
|
2145
|
+
* Get time when an info portion was received.
|
|
2146
|
+
*
|
|
2147
|
+
* @param info - Info portion id.
|
|
2148
|
+
* @returns Game time.
|
|
2149
|
+
*/
|
|
2150
|
+
public get_info_time(info: string): CTime;
|
|
2151
|
+
|
|
2152
|
+
/**
|
|
2153
|
+
* Check whether a bone is visible.
|
|
2154
|
+
*
|
|
2155
|
+
* @param bone - Bone name.
|
|
2156
|
+
* @returns Whether bone is visible.
|
|
2157
|
+
*/
|
|
2158
|
+
public bone_visible(bone: string): boolean;
|
|
2159
|
+
|
|
2160
|
+
/**
|
|
2161
|
+
* Check whether weapon supports an ammo type.
|
|
2162
|
+
*
|
|
2163
|
+
* @param type - Ammo section.
|
|
2164
|
+
* @returns Whether ammo type is supported.
|
|
2165
|
+
*/
|
|
2166
|
+
public has_ammo_type(type: string): boolean;
|
|
2167
|
+
|
|
2168
|
+
/**
|
|
2169
|
+
* Check whether an item is on belt.
|
|
2170
|
+
*
|
|
2171
|
+
* @param object - Item object.
|
|
2172
|
+
* @returns Whether item is on belt.
|
|
2173
|
+
*/
|
|
2174
|
+
public is_on_belt(object: game_object): boolean;
|
|
2175
|
+
|
|
2176
|
+
/**
|
|
2177
|
+
* Use an object.
|
|
2178
|
+
*
|
|
2179
|
+
* @param object - Object to use.
|
|
2180
|
+
*/
|
|
2181
|
+
public use(object: game_object): void;
|
|
2182
|
+
|
|
2183
|
+
/**
|
|
2184
|
+
* Set remaining item uses count.
|
|
2185
|
+
*
|
|
2186
|
+
* @param remaining - Count of remaining uses for item before destroy.
|
|
2187
|
+
*/
|
|
2188
|
+
public set_remaining_uses(remaining: u8): void;
|
|
2189
|
+
|
|
2190
|
+
/**
|
|
2191
|
+
* Get maximum item uses.
|
|
2192
|
+
*
|
|
2193
|
+
* @returns Maximum uses.
|
|
2194
|
+
*/
|
|
2195
|
+
public get_max_uses(): u8;
|
|
2196
|
+
|
|
2197
|
+
/**
|
|
2198
|
+
* Get remaining item uses.
|
|
2199
|
+
*
|
|
2200
|
+
* @returns Remaining uses.
|
|
2201
|
+
*/
|
|
2202
|
+
public get_remaining_uses(): u8;
|
|
2203
|
+
|
|
2204
|
+
public set_restrictor_type(type: u8): void;
|
|
2205
|
+
|
|
2206
|
+
public get_restrictor_type(): u8;
|
|
2207
|
+
|
|
2208
|
+
public set_spatial_type(type: u8): void;
|
|
2209
|
+
|
|
2210
|
+
public set_weapon_type(type: u8): void;
|
|
2211
|
+
|
|
2212
|
+
public get_weapon_substate(): u8;
|
|
2213
|
+
|
|
2214
|
+
public start_trade(object: game_object): void;
|
|
2215
|
+
|
|
2216
|
+
public start_upgrade(object: game_object): void;
|
|
2217
|
+
|
|
2218
|
+
public switch_state(state: u32): void;
|
|
2219
|
+
|
|
2220
|
+
public phantom_set_enemy(object: game_object): void;
|
|
2221
|
+
|
|
2222
|
+
public set_actor_jump_speed(speed: f32): void;
|
|
2223
|
+
|
|
2224
|
+
public set_actor_max_walk_weight(weight: f32): void;
|
|
2225
|
+
|
|
2226
|
+
public set_actor_max_weight(weight: f32): void;
|
|
2227
|
+
|
|
2228
|
+
public set_actor_run_coef(coef: f32): void;
|
|
2229
|
+
|
|
2230
|
+
public set_actor_runback_coef(coef: f32): void;
|
|
2231
|
+
|
|
2232
|
+
public set_actor_sprint_koef(coef: f32): void;
|
|
2233
|
+
|
|
2234
|
+
public set_additional_max_walk_weight(weight: f32): void;
|
|
2235
|
+
|
|
2236
|
+
public set_additional_max_weight(weight: f32): void;
|
|
2237
|
+
|
|
2238
|
+
public set_ammo_type(type: u8): void;
|
|
2239
|
+
|
|
2240
|
+
public set_artefact_bleeding(rate: f32): void;
|
|
2241
|
+
|
|
2242
|
+
public set_artefact_health(rate: f32): void;
|
|
2243
|
+
|
|
2244
|
+
public set_artefact_power(rate: f32): void;
|
|
2245
|
+
|
|
2246
|
+
public set_artefact_radiation(rate: f32): void;
|
|
2247
|
+
|
|
2248
|
+
public set_artefact_satiety(rate: f32): void;
|
|
2249
|
+
|
|
2250
|
+
public set_bone_visible(name: string, a: boolean, b: boolean): void;
|
|
2251
|
+
|
|
2252
|
+
public set_character_icon(icon: string): void;
|
|
2253
|
+
|
|
2254
|
+
/**
|
|
2255
|
+
* Directly set entity health instead of applying a health property delta.
|
|
2256
|
+
*
|
|
2257
|
+
* @remarks
|
|
2258
|
+
* This binding exists because the normal health property setter routes through conditions().ChangeHealth.
|
|
2259
|
+
*/
|
|
2260
|
+
public set_health_ex(value: f32): void;
|
|
2261
|
+
|
|
2262
|
+
public set_main_weapon_type(type: u32): void;
|
|
2263
|
+
|
|
2264
|
+
public get_actor_jump_speed(): f32;
|
|
2265
|
+
|
|
2266
|
+
public get_actor_max_walk_weight(): f32;
|
|
2267
|
+
|
|
2268
|
+
public get_actor_max_weight(): f32;
|
|
2269
|
+
|
|
2270
|
+
public get_actor_run_coef(): f32;
|
|
2271
|
+
|
|
2272
|
+
public get_actor_runback_coef(): f32;
|
|
2273
|
+
|
|
2274
|
+
public get_actor_sprint_koef(): f32;
|
|
2275
|
+
|
|
2276
|
+
public get_additional_max_walk_weight(): f32;
|
|
2277
|
+
|
|
2278
|
+
public get_additional_max_weight(): f32;
|
|
2279
|
+
|
|
2280
|
+
public get_anomaly_power(): f32;
|
|
2281
|
+
|
|
2282
|
+
public get_artefact_bleeding(): f32;
|
|
2283
|
+
|
|
2284
|
+
public get_artefact_health(): f32;
|
|
2285
|
+
|
|
2286
|
+
public get_artefact_power(): f32;
|
|
2287
|
+
|
|
2288
|
+
public get_artefact_radiation(): f32;
|
|
2289
|
+
|
|
2290
|
+
public get_artefact_satiety(): f32;
|
|
2291
|
+
|
|
2292
|
+
public get_luminocity(): f32;
|
|
2293
|
+
|
|
2294
|
+
public get_luminocity_hemi(): f32;
|
|
2295
|
+
|
|
2296
|
+
public get_total_weight(): f32;
|
|
2297
|
+
|
|
2298
|
+
public get_attached_vehicle(): game_object;
|
|
2299
|
+
|
|
2300
|
+
public belt_count(): u32;
|
|
2301
|
+
|
|
2302
|
+
public get_main_weapon_type(): u32;
|
|
2303
|
+
|
|
2304
|
+
public get_spatial_type(): u32;
|
|
2305
|
+
|
|
2306
|
+
public get_state(): u32;
|
|
2307
|
+
|
|
2308
|
+
public get_weapon_type(): u32;
|
|
2309
|
+
|
|
2310
|
+
public play_hud_motion(chat: string, bool: boolean, int: u32): u32;
|
|
2311
|
+
|
|
2312
|
+
public attach_vehicle(vehicle: game_object): void;
|
|
2313
|
+
|
|
2314
|
+
public clear_game_news(): void;
|
|
2315
|
+
|
|
2316
|
+
public detach_vehicle(): void;
|
|
2317
|
+
|
|
2318
|
+
/**
|
|
2319
|
+
* Move object to a position immediately.
|
|
2320
|
+
*
|
|
2321
|
+
* @param position - Target position.
|
|
2322
|
+
* @param update_ai_location - Whether AI location should be updated.
|
|
2323
|
+
*/
|
|
2324
|
+
public force_set_position(position: vector, update_ai_location: boolean): void;
|
|
2325
|
+
|
|
2326
|
+
public get_ammo_count_for_type(type: u8): i32;
|
|
2327
|
+
|
|
2328
|
+
public weapon_in_grenade_mode(): boolean;
|
|
2329
|
+
|
|
2330
|
+
public is_entity_alive(): boolean;
|
|
2331
|
+
|
|
2332
|
+
public is_inventory_item(): boolean;
|
|
2333
|
+
|
|
2334
|
+
public is_inventory_owner(): boolean;
|
|
2335
|
+
|
|
2336
|
+
public is_actor(): boolean;
|
|
2337
|
+
|
|
2338
|
+
public is_custom_monster(): boolean;
|
|
2339
|
+
|
|
2340
|
+
public is_weapon(): boolean;
|
|
2341
|
+
|
|
2342
|
+
public is_outfit(): boolean;
|
|
2343
|
+
|
|
2344
|
+
public is_scope(): boolean;
|
|
2345
|
+
|
|
2346
|
+
public is_silencer(): boolean;
|
|
2347
|
+
|
|
2348
|
+
public is_grenade_launcher(): boolean;
|
|
2349
|
+
|
|
2350
|
+
public is_weapon_magazined(): boolean;
|
|
2351
|
+
|
|
2352
|
+
public is_space_restrictor(): boolean;
|
|
2353
|
+
|
|
2354
|
+
public is_stalker(): boolean;
|
|
2355
|
+
|
|
2356
|
+
public is_anomaly(): boolean;
|
|
2357
|
+
|
|
2358
|
+
public is_monster(): boolean;
|
|
2359
|
+
|
|
2360
|
+
public is_artefact(): boolean;
|
|
2361
|
+
|
|
2362
|
+
public is_ammo(): boolean;
|
|
2363
|
+
|
|
2364
|
+
public is_trader(): boolean;
|
|
2365
|
+
|
|
2366
|
+
public is_hud_item(): boolean;
|
|
2367
|
+
|
|
2368
|
+
public is_weapon_gl(): boolean;
|
|
2369
|
+
|
|
2370
|
+
public is_inventory_box(): boolean;
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2373
|
+
/*
|
|
2374
|
+
* Vector<MemorySpace::CNotYetVisibleObject,xalloc<MemorySpace::CNotYetVisibleObject> > not_yet_visible_objects();
|
|
2375
|
+
* vector<MemorySpace::CSoundObject,xalloc<MemorySpace::CSoundObject>> memory_sound_objects();
|
|
2376
|
+
* enum DetailPathManager::EDetailPathType detail_path_type();
|
|
2377
|
+
* enum ETaskState get_task_state(char const*);
|
|
2378
|
+
* enum MonsterSpace::EBodyState body_state();
|
|
2379
|
+
* enum MonsterSpace::EBodyState target_body_state();
|
|
2380
|
+
* enum MonsterSpace::EMentalState mental_state();
|
|
2381
|
+
* enum MonsterSpace::EMentalState target_mental_state();
|
|
2382
|
+
* enum MonsterSpace::EMovementType movement_type();
|
|
2383
|
+
* enum MovementManager::EPathType path_type();
|
|
2384
|
+
* remove_danger();
|
|
2385
|
+
* remove_memory_sound_object();
|
|
2386
|
+
* remove_memory_visible_object();
|
|
2387
|
+
* remove_memory_hit_object();
|
|
2388
|
+
* void iterate_feel_touch(function<void>);
|
|
2389
|
+
* }
|
|
2390
|
+
*
|
|
2391
|
+
* //.def("is_medkit", &CScriptGameObject::IsMedkit)
|
|
2392
|
+
* //.def("is_eatable_item", &CScriptGameObject::IsEatableItem)
|
|
2393
|
+
* //.def("is_antirad", &CScriptGameObject::IsAntirad)
|
|
2394
|
+
* //.def("is_game_object", &CScriptGameObject::IsGameObject)
|
|
2395
|
+
* //.def("is_car", &CScriptGameObject::IsCar)
|
|
2396
|
+
* //.def("is_helicopter", &CScriptGameObject::IsHeli)
|
|
2397
|
+
* //.def("is_holder", &CScriptGameObject::IsHolderCustom)
|
|
2398
|
+
* //.def("is_explosive", &CScriptGameObject::IsExplosive)
|
|
2399
|
+
* //.def("is_script_zone", &CScriptGameObject::IsScriptZone)
|
|
2400
|
+
* //.def("is_projector", &CScriptGameObject::IsProjector)
|
|
2401
|
+
* //.def("is_food_item", &CScriptGameObject::IsFoodItem)
|
|
2402
|
+
* //.def("is_missile", &CScriptGameObject::IsMissile)
|
|
2403
|
+
* //.def("is_physics_shell_holder", &CScriptGameObject::IsPhysicsShellHolder)
|
|
2404
|
+
* //.def("is_grenade", &CScriptGameObject::IsGrenade)
|
|
2405
|
+
* //.def("is_bottle_item", &CScriptGameObject::IsBottleItem)
|
|
2406
|
+
* //.def("is_torch", &CScriptGameObject::IsTorch)
|
|
2407
|
+
*/
|
|
2408
|
+
}
|