xray16 1.3.4 → 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 +2 -2
- 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 +1 -1
- 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,285 +1,285 @@
|
|
|
1
|
-
declare module "xray16" {
|
|
2
|
-
/**
|
|
3
|
-
* @source C++ class CZoneCampfire : CGameObject
|
|
4
|
-
* @customConstructor CZoneCampfire
|
|
5
|
-
* @group xr_level
|
|
6
|
-
*/
|
|
7
|
-
export class CZoneCampfire extends CGameObject {
|
|
8
|
-
public constructor();
|
|
9
|
-
|
|
10
|
-
public is_on(): boolean;
|
|
11
|
-
|
|
12
|
-
public turn_on(): void;
|
|
13
|
-
|
|
14
|
-
public turn_off(): void;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @source C++ class CPhysicObject : CGameObject
|
|
19
|
-
* @customConstructor CPhysicObject
|
|
20
|
-
* @group xr_level
|
|
21
|
-
*/
|
|
22
|
-
export class CPhysicObject extends CGameObject {
|
|
23
|
-
public set_door_ignore_dynamics(): void;
|
|
24
|
-
|
|
25
|
-
public play_bones_sound(): void;
|
|
26
|
-
|
|
27
|
-
public run_anim_back(): void;
|
|
28
|
-
|
|
29
|
-
public unset_door_ignore_dynamics(): void;
|
|
30
|
-
|
|
31
|
-
public run_anim_forward(): void;
|
|
32
|
-
|
|
33
|
-
public stop_anim(): boolean;
|
|
34
|
-
|
|
35
|
-
public anim_time_get(): f32;
|
|
36
|
-
|
|
37
|
-
public anim_time_set(value: f32): void;
|
|
38
|
-
|
|
39
|
-
public stop_bones_sound(): void;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @source C++ class hanging_lamp : CGameObject
|
|
44
|
-
* @customConstructor hanging_lamp
|
|
45
|
-
* @group xr_level
|
|
46
|
-
*/
|
|
47
|
-
export class hanging_lamp extends CGameObject {
|
|
48
|
-
public constructor();
|
|
49
|
-
|
|
50
|
-
public turn_on(): void;
|
|
51
|
-
|
|
52
|
-
public turn_off(): void;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @source C++ class CCar : CGameObject, holder
|
|
57
|
-
* @customConstructor CCar
|
|
58
|
-
* @group xr_level
|
|
59
|
-
*/
|
|
60
|
-
export class CCar extends CGameObject implements holder {
|
|
61
|
-
public static eWpnActivate: 3;
|
|
62
|
-
public static eWpnAutoFire: 5;
|
|
63
|
-
public static eWpnDesiredDir: 1;
|
|
64
|
-
public static eWpnDesiredPos: 2;
|
|
65
|
-
public static eWpnFire: 4;
|
|
66
|
-
public static eWpnToDefaultDir: 6;
|
|
67
|
-
|
|
68
|
-
public constructor();
|
|
69
|
-
|
|
70
|
-
public SetEnterLocked(is_enabled: boolean): void;
|
|
71
|
-
|
|
72
|
-
public SetExitLocked(is_enabled: boolean): void;
|
|
73
|
-
|
|
74
|
-
public CanHit(): boolean;
|
|
75
|
-
|
|
76
|
-
public CarExplode(): void;
|
|
77
|
-
|
|
78
|
-
public ChangefFuel(fule: f32): void;
|
|
79
|
-
|
|
80
|
-
public ChangefHealth(value: f32): void;
|
|
81
|
-
|
|
82
|
-
public CurrentVel(): vector;
|
|
83
|
-
|
|
84
|
-
public ExplodeTime(): u32;
|
|
85
|
-
|
|
86
|
-
public FireDirDiff(): f32;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* @returns
|
|
90
|
-
*/
|
|
91
|
-
public GetfFuel(): f32;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* @returns
|
|
95
|
-
*/
|
|
96
|
-
public GetfFuelConsumption(): f32;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* @returns
|
|
100
|
-
*/
|
|
101
|
-
public GetfFuelTank(): f32;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @returns
|
|
105
|
-
*/
|
|
106
|
-
public GetfHealth(): f32;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* @returns
|
|
110
|
-
*/
|
|
111
|
-
public HasWeapon(): boolean;
|
|
112
|
-
|
|
113
|
-
public IsObjectVisible(game_object: game_object): boolean;
|
|
114
|
-
|
|
115
|
-
public PlayDamageParticles(): void;
|
|
116
|
-
|
|
117
|
-
public SetExplodeTime(time: u32): void;
|
|
118
|
-
|
|
119
|
-
public SetfFuel(fuel: f32): void;
|
|
120
|
-
|
|
121
|
-
public SetfFuelConsumption(consumption: f32): void;
|
|
122
|
-
|
|
123
|
-
public SetfFuelTank(fuel: f32): void;
|
|
124
|
-
|
|
125
|
-
public SetfHealth(health: f32): void;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* @returns
|
|
129
|
-
*/
|
|
130
|
-
public IsActiveEngine(): boolean;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Start vehicle engine.
|
|
134
|
-
*/
|
|
135
|
-
public StartEngine(): void;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Stop vehicle engine.
|
|
139
|
-
*/
|
|
140
|
-
public StopEngine(): void;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Set vehicle hand break in active state.
|
|
144
|
-
*/
|
|
145
|
-
public HandBreak(): void;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Deactivate vehicle hand break.
|
|
149
|
-
*/
|
|
150
|
-
public ReleaseHandBreak(): void;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* @returns
|
|
154
|
-
*/
|
|
155
|
-
public GetRPM(): f32;
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Set current vehicle RPM value (speed).
|
|
159
|
-
*
|
|
160
|
-
* @param rpm - RPM value to apply
|
|
161
|
-
*/
|
|
162
|
-
public SetRPM(rpm: f32): void;
|
|
163
|
-
|
|
164
|
-
public StopDamageParticles(): void;
|
|
165
|
-
|
|
166
|
-
public engaged(): boolean;
|
|
167
|
-
|
|
168
|
-
public Action(value1: u16, value2: u32): void;
|
|
169
|
-
|
|
170
|
-
public SetParam(value: i32, vector: vector): void;
|
|
171
|
-
|
|
172
|
-
public SetParam(value: TXR_CCar_weapon_param, vector: vector): void;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* @group xr_level
|
|
177
|
-
*/
|
|
178
|
-
export type TXR_CCar_weapon_param = EnumeratedStaticsValues<typeof CCar>;
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* @source C++ class CHelicopter : CGameObject
|
|
182
|
-
* @customConstructor CHelicopter
|
|
183
|
-
* @group xr_level
|
|
184
|
-
*/
|
|
185
|
-
export class CHelicopter extends CGameObject {
|
|
186
|
-
public static readonly eAlive: 0;
|
|
187
|
-
public static readonly eBodyByPath: 0;
|
|
188
|
-
public static readonly eBodyToPoint: 1;
|
|
189
|
-
public static readonly eDead: 1;
|
|
190
|
-
public static readonly eEnemyEntity: 2;
|
|
191
|
-
public static readonly eEnemyNone: 0;
|
|
192
|
-
public static readonly eEnemyPoint: 1;
|
|
193
|
-
public static readonly eMovLanding: 4;
|
|
194
|
-
public static readonly eMovNone: 0;
|
|
195
|
-
public static readonly eMovPatrolPath: 2;
|
|
196
|
-
public static readonly eMovRoundPath: 3;
|
|
197
|
-
public static readonly eMovTakeOff: 5;
|
|
198
|
-
public static readonly eMovToPoint: 1;
|
|
199
|
-
|
|
200
|
-
public readonly m_exploded: boolean;
|
|
201
|
-
public readonly m_light_started: boolean;
|
|
202
|
-
public readonly m_flame_started: boolean;
|
|
203
|
-
public readonly m_dead: boolean;
|
|
204
|
-
public m_max_mgun_dist: f32;
|
|
205
|
-
public m_max_rocket_dist: f32;
|
|
206
|
-
public m_min_mgun_dist: f32;
|
|
207
|
-
public m_min_rocket_dist: f32;
|
|
208
|
-
public m_syncronize_rocket: boolean;
|
|
209
|
-
public m_time_between_rocket_attack: u32;
|
|
210
|
-
public m_use_mgun_on_attack: boolean;
|
|
211
|
-
public m_use_rocket_on_attack: boolean;
|
|
212
|
-
|
|
213
|
-
public constructor();
|
|
214
|
-
|
|
215
|
-
public isVisible(game_object: game_object): boolean;
|
|
216
|
-
|
|
217
|
-
public GetSafeAltitude(): f32;
|
|
218
|
-
|
|
219
|
-
public GetRealAltitude(): f32;
|
|
220
|
-
|
|
221
|
-
public GetCurrVelocity(): f32;
|
|
222
|
-
|
|
223
|
-
public GetSpeedInDestPoint(value: f32): f32;
|
|
224
|
-
|
|
225
|
-
public GetOnPointRangeDist(): f32;
|
|
226
|
-
|
|
227
|
-
public GetMaxVelocity(): f32;
|
|
228
|
-
|
|
229
|
-
public GetfHealth(): f32;
|
|
230
|
-
|
|
231
|
-
public GetMovementState(): i32; /*
|
|
232
|
-
|
|
233
|
-
public GetBodyState(): i32; /*
|
|
234
|
-
|
|
235
|
-
public GetCurrVelocityVec(): vector;
|
|
236
|
-
|
|
237
|
-
public GetState(): i32;
|
|
238
|
-
|
|
239
|
-
public GetDistanceToDestPosition(): f32;
|
|
240
|
-
|
|
241
|
-
public GetHuntState(): i32; /*
|
|
242
|
-
|
|
243
|
-
public SetSpeedInDestPoint(value: f32): unknown;
|
|
244
|
-
|
|
245
|
-
public SetLinearAcc(value1: f32, value2: f32): void;
|
|
246
|
-
|
|
247
|
-
public SetfHealth(health: f32): f32;
|
|
248
|
-
|
|
249
|
-
public SetMaxVelocity(value: f32): void;
|
|
250
|
-
|
|
251
|
-
public SetEnemy(game_object: game_object | null): void;
|
|
252
|
-
|
|
253
|
-
public SetEnemy(vector: vector): void;
|
|
254
|
-
|
|
255
|
-
public SetFireTrailLength(value: f32): void;
|
|
256
|
-
|
|
257
|
-
public SetBarrelDirTolerance(value: f32): void;
|
|
258
|
-
|
|
259
|
-
public SetDestPosition(vector: vector): void;
|
|
260
|
-
|
|
261
|
-
public SetOnPointRangeDist(value: f32): void;
|
|
262
|
-
|
|
263
|
-
public LookAtPoint(vector: vector, value: boolean): void;
|
|
264
|
-
|
|
265
|
-
public GoPatrolByPatrolPath(value1: string, value2: i32): void;
|
|
266
|
-
|
|
267
|
-
public Explode(): void;
|
|
268
|
-
|
|
269
|
-
public TurnLighting(value: boolean): void;
|
|
270
|
-
|
|
271
|
-
public UseFireTrail(): boolean;
|
|
272
|
-
|
|
273
|
-
public UseFireTrail(value: boolean): void;
|
|
274
|
-
|
|
275
|
-
public GoPatrolByRoundPath(vector: vector, value1: f32, value2: boolean): void;
|
|
276
|
-
|
|
277
|
-
public Die(): void;
|
|
278
|
-
|
|
279
|
-
public StartFlame(): void;
|
|
280
|
-
|
|
281
|
-
public TurnEngineSound(enabled: boolean): void;
|
|
282
|
-
|
|
283
|
-
public ClearEnemy(): void;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
1
|
+
declare module "xray16" {
|
|
2
|
+
/**
|
|
3
|
+
* @source C++ class CZoneCampfire : CGameObject
|
|
4
|
+
* @customConstructor CZoneCampfire
|
|
5
|
+
* @group xr_level
|
|
6
|
+
*/
|
|
7
|
+
export class CZoneCampfire extends CGameObject {
|
|
8
|
+
public constructor();
|
|
9
|
+
|
|
10
|
+
public is_on(): boolean;
|
|
11
|
+
|
|
12
|
+
public turn_on(): void;
|
|
13
|
+
|
|
14
|
+
public turn_off(): void;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @source C++ class CPhysicObject : CGameObject
|
|
19
|
+
* @customConstructor CPhysicObject
|
|
20
|
+
* @group xr_level
|
|
21
|
+
*/
|
|
22
|
+
export class CPhysicObject extends CGameObject {
|
|
23
|
+
public set_door_ignore_dynamics(): void;
|
|
24
|
+
|
|
25
|
+
public play_bones_sound(): void;
|
|
26
|
+
|
|
27
|
+
public run_anim_back(): void;
|
|
28
|
+
|
|
29
|
+
public unset_door_ignore_dynamics(): void;
|
|
30
|
+
|
|
31
|
+
public run_anim_forward(): void;
|
|
32
|
+
|
|
33
|
+
public stop_anim(): boolean;
|
|
34
|
+
|
|
35
|
+
public anim_time_get(): f32;
|
|
36
|
+
|
|
37
|
+
public anim_time_set(value: f32): void;
|
|
38
|
+
|
|
39
|
+
public stop_bones_sound(): void;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @source C++ class hanging_lamp : CGameObject
|
|
44
|
+
* @customConstructor hanging_lamp
|
|
45
|
+
* @group xr_level
|
|
46
|
+
*/
|
|
47
|
+
export class hanging_lamp extends CGameObject {
|
|
48
|
+
public constructor();
|
|
49
|
+
|
|
50
|
+
public turn_on(): void;
|
|
51
|
+
|
|
52
|
+
public turn_off(): void;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @source C++ class CCar : CGameObject, holder
|
|
57
|
+
* @customConstructor CCar
|
|
58
|
+
* @group xr_level
|
|
59
|
+
*/
|
|
60
|
+
export class CCar extends CGameObject implements holder {
|
|
61
|
+
public static eWpnActivate: 3;
|
|
62
|
+
public static eWpnAutoFire: 5;
|
|
63
|
+
public static eWpnDesiredDir: 1;
|
|
64
|
+
public static eWpnDesiredPos: 2;
|
|
65
|
+
public static eWpnFire: 4;
|
|
66
|
+
public static eWpnToDefaultDir: 6;
|
|
67
|
+
|
|
68
|
+
public constructor();
|
|
69
|
+
|
|
70
|
+
public SetEnterLocked(is_enabled: boolean): void;
|
|
71
|
+
|
|
72
|
+
public SetExitLocked(is_enabled: boolean): void;
|
|
73
|
+
|
|
74
|
+
public CanHit(): boolean;
|
|
75
|
+
|
|
76
|
+
public CarExplode(): void;
|
|
77
|
+
|
|
78
|
+
public ChangefFuel(fule: f32): void;
|
|
79
|
+
|
|
80
|
+
public ChangefHealth(value: f32): void;
|
|
81
|
+
|
|
82
|
+
public CurrentVel(): vector;
|
|
83
|
+
|
|
84
|
+
public ExplodeTime(): u32;
|
|
85
|
+
|
|
86
|
+
public FireDirDiff(): f32;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @returns Amount of fuel in vehicle instance.
|
|
90
|
+
*/
|
|
91
|
+
public GetfFuel(): f32;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @returns Fuel consumption rate of vehicle instance.
|
|
95
|
+
*/
|
|
96
|
+
public GetfFuelConsumption(): f32;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @returns Fuel tank size (max possible amount of fuel at time).
|
|
100
|
+
*/
|
|
101
|
+
public GetfFuelTank(): f32;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @returns Vehicle health value.
|
|
105
|
+
*/
|
|
106
|
+
public GetfHealth(): f32;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @returns Whether vehicle has mounted weapon.
|
|
110
|
+
*/
|
|
111
|
+
public HasWeapon(): boolean;
|
|
112
|
+
|
|
113
|
+
public IsObjectVisible(game_object: game_object): boolean;
|
|
114
|
+
|
|
115
|
+
public PlayDamageParticles(): void;
|
|
116
|
+
|
|
117
|
+
public SetExplodeTime(time: u32): void;
|
|
118
|
+
|
|
119
|
+
public SetfFuel(fuel: f32): void;
|
|
120
|
+
|
|
121
|
+
public SetfFuelConsumption(consumption: f32): void;
|
|
122
|
+
|
|
123
|
+
public SetfFuelTank(fuel: f32): void;
|
|
124
|
+
|
|
125
|
+
public SetfHealth(health: f32): void;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @returns Whether vehicle engine is active at the moment.
|
|
129
|
+
*/
|
|
130
|
+
public IsActiveEngine(): boolean;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Start vehicle engine.
|
|
134
|
+
*/
|
|
135
|
+
public StartEngine(): void;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Stop vehicle engine.
|
|
139
|
+
*/
|
|
140
|
+
public StopEngine(): void;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Set vehicle hand break in active state.
|
|
144
|
+
*/
|
|
145
|
+
public HandBreak(): void;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Deactivate vehicle hand break.
|
|
149
|
+
*/
|
|
150
|
+
public ReleaseHandBreak(): void;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @returns Current vehicle RPM value (speed).
|
|
154
|
+
*/
|
|
155
|
+
public GetRPM(): f32;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Set current vehicle RPM value (speed).
|
|
159
|
+
*
|
|
160
|
+
* @param rpm - RPM value to apply.
|
|
161
|
+
*/
|
|
162
|
+
public SetRPM(rpm: f32): void;
|
|
163
|
+
|
|
164
|
+
public StopDamageParticles(): void;
|
|
165
|
+
|
|
166
|
+
public engaged(): boolean;
|
|
167
|
+
|
|
168
|
+
public Action(value1: u16, value2: u32): void;
|
|
169
|
+
|
|
170
|
+
public SetParam(value: i32, vector: vector): void;
|
|
171
|
+
|
|
172
|
+
public SetParam(value: TXR_CCar_weapon_param, vector: vector): void;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @group xr_level
|
|
177
|
+
*/
|
|
178
|
+
export type TXR_CCar_weapon_param = EnumeratedStaticsValues<typeof CCar>;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @source C++ class CHelicopter : CGameObject
|
|
182
|
+
* @customConstructor CHelicopter
|
|
183
|
+
* @group xr_level
|
|
184
|
+
*/
|
|
185
|
+
export class CHelicopter extends CGameObject {
|
|
186
|
+
public static readonly eAlive: 0;
|
|
187
|
+
public static readonly eBodyByPath: 0;
|
|
188
|
+
public static readonly eBodyToPoint: 1;
|
|
189
|
+
public static readonly eDead: 1;
|
|
190
|
+
public static readonly eEnemyEntity: 2;
|
|
191
|
+
public static readonly eEnemyNone: 0;
|
|
192
|
+
public static readonly eEnemyPoint: 1;
|
|
193
|
+
public static readonly eMovLanding: 4;
|
|
194
|
+
public static readonly eMovNone: 0;
|
|
195
|
+
public static readonly eMovPatrolPath: 2;
|
|
196
|
+
public static readonly eMovRoundPath: 3;
|
|
197
|
+
public static readonly eMovTakeOff: 5;
|
|
198
|
+
public static readonly eMovToPoint: 1;
|
|
199
|
+
|
|
200
|
+
public readonly m_exploded: boolean;
|
|
201
|
+
public readonly m_light_started: boolean;
|
|
202
|
+
public readonly m_flame_started: boolean;
|
|
203
|
+
public readonly m_dead: boolean;
|
|
204
|
+
public m_max_mgun_dist: f32;
|
|
205
|
+
public m_max_rocket_dist: f32;
|
|
206
|
+
public m_min_mgun_dist: f32;
|
|
207
|
+
public m_min_rocket_dist: f32;
|
|
208
|
+
public m_syncronize_rocket: boolean;
|
|
209
|
+
public m_time_between_rocket_attack: u32;
|
|
210
|
+
public m_use_mgun_on_attack: boolean;
|
|
211
|
+
public m_use_rocket_on_attack: boolean;
|
|
212
|
+
|
|
213
|
+
public constructor();
|
|
214
|
+
|
|
215
|
+
public isVisible(game_object: game_object): boolean;
|
|
216
|
+
|
|
217
|
+
public GetSafeAltitude(): f32;
|
|
218
|
+
|
|
219
|
+
public GetRealAltitude(): f32;
|
|
220
|
+
|
|
221
|
+
public GetCurrVelocity(): f32;
|
|
222
|
+
|
|
223
|
+
public GetSpeedInDestPoint(value: f32): f32;
|
|
224
|
+
|
|
225
|
+
public GetOnPointRangeDist(): f32;
|
|
226
|
+
|
|
227
|
+
public GetMaxVelocity(): f32;
|
|
228
|
+
|
|
229
|
+
public GetfHealth(): f32;
|
|
230
|
+
|
|
231
|
+
public GetMovementState(): i32; /* Enum ? */
|
|
232
|
+
|
|
233
|
+
public GetBodyState(): i32; /* Enum ? */
|
|
234
|
+
|
|
235
|
+
public GetCurrVelocityVec(): vector;
|
|
236
|
+
|
|
237
|
+
public GetState(): i32;
|
|
238
|
+
|
|
239
|
+
public GetDistanceToDestPosition(): f32;
|
|
240
|
+
|
|
241
|
+
public GetHuntState(): i32; /* Enum ? */
|
|
242
|
+
|
|
243
|
+
public SetSpeedInDestPoint(value: f32): unknown;
|
|
244
|
+
|
|
245
|
+
public SetLinearAcc(value1: f32, value2: f32): void;
|
|
246
|
+
|
|
247
|
+
public SetfHealth(health: f32): f32;
|
|
248
|
+
|
|
249
|
+
public SetMaxVelocity(value: f32): void;
|
|
250
|
+
|
|
251
|
+
public SetEnemy(game_object: game_object | null): void;
|
|
252
|
+
|
|
253
|
+
public SetEnemy(vector: vector): void;
|
|
254
|
+
|
|
255
|
+
public SetFireTrailLength(value: f32): void;
|
|
256
|
+
|
|
257
|
+
public SetBarrelDirTolerance(value: f32): void;
|
|
258
|
+
|
|
259
|
+
public SetDestPosition(vector: vector): void;
|
|
260
|
+
|
|
261
|
+
public SetOnPointRangeDist(value: f32): void;
|
|
262
|
+
|
|
263
|
+
public LookAtPoint(vector: vector, value: boolean): void;
|
|
264
|
+
|
|
265
|
+
public GoPatrolByPatrolPath(value1: string, value2: i32): void;
|
|
266
|
+
|
|
267
|
+
public Explode(): void;
|
|
268
|
+
|
|
269
|
+
public TurnLighting(value: boolean): void;
|
|
270
|
+
|
|
271
|
+
public UseFireTrail(): boolean;
|
|
272
|
+
|
|
273
|
+
public UseFireTrail(value: boolean): void;
|
|
274
|
+
|
|
275
|
+
public GoPatrolByRoundPath(vector: vector, value1: f32, value2: boolean): void;
|
|
276
|
+
|
|
277
|
+
public Die(): void;
|
|
278
|
+
|
|
279
|
+
public StartFlame(): void;
|
|
280
|
+
|
|
281
|
+
public TurnEngineSound(enabled: boolean): void;
|
|
282
|
+
|
|
283
|
+
public ClearEnemy(): void;
|
|
284
|
+
}
|
|
285
|
+
}
|