@nodemod/core 1.0.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.
Files changed (60) hide show
  1. package/README.md +60 -0
  2. package/dist/core/cmd.d.ts +148 -0
  3. package/dist/core/cmd.d.ts.map +1 -0
  4. package/dist/core/cmd.js +177 -0
  5. package/dist/core/cmd.js.map +1 -0
  6. package/dist/core/menu.d.ts +300 -0
  7. package/dist/core/menu.d.ts.map +1 -0
  8. package/dist/core/menu.js +449 -0
  9. package/dist/core/menu.js.map +1 -0
  10. package/dist/core/msg.d.ts +300 -0
  11. package/dist/core/msg.d.ts.map +1 -0
  12. package/dist/core/msg.js +374 -0
  13. package/dist/core/msg.js.map +1 -0
  14. package/dist/core/resource.d.ts +137 -0
  15. package/dist/core/resource.d.ts.map +1 -0
  16. package/dist/core/resource.js +171 -0
  17. package/dist/core/resource.js.map +1 -0
  18. package/dist/core/sound.d.ts +262 -0
  19. package/dist/core/sound.d.ts.map +1 -0
  20. package/dist/core/sound.js +300 -0
  21. package/dist/core/sound.js.map +1 -0
  22. package/dist/enhanced/entity.d.ts +263 -0
  23. package/dist/enhanced/entity.d.ts.map +1 -0
  24. package/dist/enhanced/entity.js +447 -0
  25. package/dist/enhanced/entity.js.map +1 -0
  26. package/dist/enhanced/events.d.ts +257 -0
  27. package/dist/enhanced/events.d.ts.map +1 -0
  28. package/dist/enhanced/events.js +350 -0
  29. package/dist/enhanced/events.js.map +1 -0
  30. package/dist/enhanced/player.d.ts +272 -0
  31. package/dist/enhanced/player.d.ts.map +1 -0
  32. package/dist/enhanced/player.js +389 -0
  33. package/dist/enhanced/player.js.map +1 -0
  34. package/dist/enhanced/trace.d.ts +198 -0
  35. package/dist/enhanced/trace.d.ts.map +1 -0
  36. package/dist/enhanced/trace.js +311 -0
  37. package/dist/enhanced/trace.js.map +1 -0
  38. package/dist/index.d.ts +88 -0
  39. package/dist/index.d.ts.map +1 -0
  40. package/dist/index.js +120 -0
  41. package/dist/index.js.map +1 -0
  42. package/dist/native/cvar.d.ts +49 -0
  43. package/dist/native/cvar.d.ts.map +1 -0
  44. package/dist/native/cvar.js +169 -0
  45. package/dist/native/cvar.js.map +1 -0
  46. package/dist/native/file.d.ts +221 -0
  47. package/dist/native/file.d.ts.map +1 -0
  48. package/dist/native/file.js +353 -0
  49. package/dist/native/file.js.map +1 -0
  50. package/dist/types/dll.d.ts +109 -0
  51. package/dist/types/engine.d.ts +319 -0
  52. package/dist/types/enums.d.ts +434 -0
  53. package/dist/types/events.d.ts +2432 -0
  54. package/dist/types/index.d.ts +38 -0
  55. package/dist/types/structures.d.ts +1144 -0
  56. package/dist/utils/util.d.ts +202 -0
  57. package/dist/utils/util.d.ts.map +1 -0
  58. package/dist/utils/util.js +318 -0
  59. package/dist/utils/util.js.map +1 -0
  60. package/package.json +167 -0
@@ -0,0 +1,1144 @@
1
+ // This file is generated automatically. Don't edit it.
2
+ declare namespace nodemod {
3
+ interface FileHandle {
4
+ // Opaque file handle - use with engine file functions
5
+ }
6
+
7
+ /** Entity variables - properties and state of game entities */
8
+ interface Entvars {
9
+ /** ACCESSOR_T(..., "classname", classname, GETSTR, SETSTR) */
10
+ classname: string;
11
+
12
+ /** ACCESSOR_T(..., "globalname", globalname, GETSTR, SETSTR) */
13
+ globalname: string;
14
+
15
+ /** ACCESSOR_T(..., "origin", origin, GETVEC3, SETVEC3) */
16
+ origin: number[];
17
+
18
+ /** ACCESSOR_T(..., "oldorigin", oldorigin, GETVEC3, SETVEC3) */
19
+ oldorigin: number[];
20
+
21
+ /** ACCESSOR_T(..., "velocity", velocity, GETVEC3, SETVEC3) */
22
+ velocity: number[];
23
+
24
+ /** ACCESSOR_T(..., "basevelocity", basevelocity, GETVEC3, SETVEC3) */
25
+ basevelocity: number[];
26
+
27
+ /** ACCESSOR_T(..., "clbasevelocity", clbasevelocity, GETVEC3, SETVEC3) */
28
+ clbasevelocity: number[];
29
+
30
+ /** ACCESSOR_T(..., "movedir", movedir, GETVEC3, SETVEC3) */
31
+ movedir: number[];
32
+
33
+ /** ACCESSOR_T(..., "angles", angles, GETVEC3, SETVEC3) */
34
+ angles: number[];
35
+
36
+ /** ACCESSOR_T(..., "avelocity", avelocity, GETVEC3, SETVEC3) */
37
+ avelocity: number[];
38
+
39
+ /** ACCESSOR_T(..., "punchangle", punchangle, GETVEC3, SETVEC3) */
40
+ punchangle: number[];
41
+
42
+ /** ACCESSOR_T(..., "v_angle", v_angle, GETVEC3, SETVEC3) */
43
+ v_angle: number[];
44
+
45
+ /** ACCESSOR_T(..., "endpos", endpos, GETVEC3, SETVEC3) */
46
+ endpos: number[];
47
+
48
+ /** ACCESSOR_T(..., "startpos", startpos, GETVEC3, SETVEC3) */
49
+ startpos: number[];
50
+
51
+ /** ACCESSOR_T(..., "impacttime", impacttime, GETN, SETFLOAT) */
52
+ impacttime: number;
53
+
54
+ /** ACCESSOR_T(..., "starttime", starttime, GETN, SETFLOAT) */
55
+ starttime: number;
56
+
57
+ /** ACCESSOR_T(..., "fixangle", fixangle, GETN, SETINT) */
58
+ fixangle: number;
59
+
60
+ /** ACCESSOR_T(..., "idealpitch", idealpitch, GETN, SETFLOAT) */
61
+ idealpitch: number;
62
+
63
+ /** ACCESSOR_T(..., "pitch_speed", pitch_speed, GETN, SETFLOAT) */
64
+ pitch_speed: number;
65
+
66
+ /** ACCESSOR_T(..., "ideal_yaw", ideal_yaw, GETN, SETFLOAT) */
67
+ ideal_yaw: number;
68
+
69
+ /** ACCESSOR_T(..., "yaw_speed", yaw_speed, GETN, SETFLOAT) */
70
+ yaw_speed: number;
71
+
72
+ /** ACCESSOR_T(..., "modelindex", modelindex, GETN, SETINT) */
73
+ modelindex: number;
74
+
75
+ /** ACCESSOR_T(..., "viewmodel", viewmodel, GETN, SETINT) */
76
+ viewmodel: number;
77
+
78
+ /** ACCESSOR_T(..., "weaponmodel", weaponmodel, GETN, SETINT) */
79
+ weaponmodel: number;
80
+
81
+ /** ACCESSOR_T(..., "absmin", absmin, GETVEC3, SETVEC3) */
82
+ absmin: number[];
83
+
84
+ /** ACCESSOR_T(..., "absmax", absmax, GETVEC3, SETVEC3) */
85
+ absmax: number[];
86
+
87
+ /** ACCESSOR_T(..., "mins", mins, GETVEC3, SETVEC3) */
88
+ mins: number[];
89
+
90
+ /** ACCESSOR_T(..., "maxs", maxs, GETVEC3, SETVEC3) */
91
+ maxs: number[];
92
+
93
+ /** ACCESSOR_T(..., "size", size, GETVEC3, SETVEC3) */
94
+ size: number[];
95
+
96
+ /** ACCESSOR_T(..., "ltime", ltime, GETN, SETFLOAT) */
97
+ ltime: number;
98
+
99
+ /** ACCESSOR_T(..., "nextthink", nextthink, GETN, SETFLOAT) */
100
+ nextthink: number;
101
+
102
+ /** ACCESSOR_T(..., "movetype", movetype, GETN, SETINT) */
103
+ movetype: number;
104
+
105
+ /** ACCESSOR_T(..., "solid", solid, GETN, SETINT) */
106
+ solid: number;
107
+
108
+ /** ACCESSOR_T(..., "skin", skin, GETN, SETINT) */
109
+ skin: number;
110
+
111
+ /** ACCESSOR_T(..., "body", body, GETN, SETINT) */
112
+ body: number;
113
+
114
+ /** ACCESSOR_T(..., "effects", effects, GETN, SETINT) */
115
+ effects: number;
116
+
117
+ /** ACCESSOR_T(..., "gravity", gravity, GETN, SETFLOAT) */
118
+ gravity: number;
119
+
120
+ /** ACCESSOR_T(..., "friction", friction, GETN, SETFLOAT) */
121
+ friction: number;
122
+
123
+ /** ACCESSOR_T(..., "light_level", light_level, GETN, SETINT) */
124
+ light_level: number;
125
+
126
+ /** ACCESSOR_T(..., "sequence", sequence, GETN, SETINT) */
127
+ sequence: number;
128
+
129
+ /** ACCESSOR_T(..., "gaitsequence", gaitsequence, GETN, SETINT) */
130
+ gaitsequence: number;
131
+
132
+ /** ACCESSOR_T(..., "frame", frame, GETN, SETFLOAT) */
133
+ frame: number;
134
+
135
+ /** ACCESSOR_T(..., "animtime", animtime, GETN, SETFLOAT) */
136
+ animtime: number;
137
+
138
+ /** ACCESSOR_T(..., "framerate", framerate, GETN, SETFLOAT) */
139
+ framerate: number;
140
+
141
+ /** ACCESSOR_T(..., "scale", scale, GETN, SETFLOAT) */
142
+ scale: number;
143
+
144
+ /** ACCESSOR_T(..., "rendermode", rendermode, GETN, SETINT) */
145
+ rendermode: number;
146
+
147
+ /** ACCESSOR_T(..., "renderamt", renderamt, GETN, SETFLOAT) */
148
+ renderamt: number;
149
+
150
+ /** ACCESSOR_T(..., "rendercolor", rendercolor, GETVEC3, SETVEC3) */
151
+ rendercolor: number[];
152
+
153
+ /** ACCESSOR_T(..., "renderfx", renderfx, GETN, SETINT) */
154
+ renderfx: number;
155
+
156
+ /** ACCESSOR_T(..., "health", health, GETN, SETFLOAT) */
157
+ health: number;
158
+
159
+ /** ACCESSOR_T(..., "frags", frags, GETN, SETFLOAT) */
160
+ frags: number;
161
+
162
+ /** ACCESSOR_T(..., "weapons", weapons, GETN, SETINT) */
163
+ weapons: number;
164
+
165
+ /** ACCESSOR_T(..., "takedamage", takedamage, GETN, SETFLOAT) */
166
+ takedamage: number;
167
+
168
+ /** ACCESSOR_T(..., "deadflag", deadflag, GETN, SETINT) */
169
+ deadflag: number;
170
+
171
+ /** ACCESSOR_T(..., "view_ofs", view_ofs, GETVEC3, SETVEC3) */
172
+ view_ofs: number[];
173
+
174
+ /** ACCESSOR_T(..., "button", button, GETN, SETINT) */
175
+ button: number;
176
+
177
+ /** ACCESSOR_T(..., "impulse", impulse, GETN, SETINT) */
178
+ impulse: number;
179
+
180
+ /** ACCESSOR_T(..., "spawnflags", spawnflags, GETN, SETINT) */
181
+ spawnflags: number;
182
+
183
+ /** ACCESSOR_T(..., "flags", flags, GETN, SETINT) */
184
+ flags: number;
185
+
186
+ /** ACCESSOR_T(..., "colormap", colormap, GETN, SETINT) */
187
+ colormap: number;
188
+
189
+ /** ACCESSOR_T(..., "team", team, GETN, SETINT) */
190
+ team: number;
191
+
192
+ /** ACCESSOR_T(..., "max_health", max_health, GETN, SETFLOAT) */
193
+ max_health: number;
194
+
195
+ /** ACCESSOR_T(..., "teleport_time", teleport_time, GETN, SETFLOAT) */
196
+ teleport_time: number;
197
+
198
+ /** ACCESSOR_T(..., "armortype", armortype, GETN, SETFLOAT) */
199
+ armortype: number;
200
+
201
+ /** ACCESSOR_T(..., "armorvalue", armorvalue, GETN, SETFLOAT) */
202
+ armorvalue: number;
203
+
204
+ /** ACCESSOR_T(..., "waterlevel", waterlevel, GETN, SETINT) */
205
+ waterlevel: number;
206
+
207
+ /** ACCESSOR_T(..., "watertype", watertype, GETN, SETINT) */
208
+ watertype: number;
209
+
210
+ /** ACCESSOR_T(..., "target", target, GETSTR, SETSTR) */
211
+ target: string;
212
+
213
+ /** ACCESSOR_T(..., "targetname", targetname, GETSTR, SETSTR) */
214
+ targetname: string;
215
+
216
+ /** ACCESSOR_T(..., "netname", netname, GETSTR, SETSTR) */
217
+ netname: string;
218
+
219
+ /** ACCESSOR_T(..., "message", message, GETSTR, SETSTR) */
220
+ message: string;
221
+
222
+ /** ACCESSOR_T(..., "dmg_take", dmg_take, GETN, SETFLOAT) */
223
+ dmg_take: number;
224
+
225
+ /** ACCESSOR_T(..., "dmg_save", dmg_save, GETN, SETFLOAT) */
226
+ dmg_save: number;
227
+
228
+ /** ACCESSOR_T(..., "dmg", dmg, GETN, SETFLOAT) */
229
+ dmg: number;
230
+
231
+ /** ACCESSOR_T(..., "dmgtime", dmgtime, GETN, SETFLOAT) */
232
+ dmgtime: number;
233
+
234
+ /** ACCESSOR_T(..., "noise", noise, GETSTR, SETSTR) */
235
+ noise: string;
236
+
237
+ /** ACCESSOR_T(..., "noise1", noise1, GETSTR, SETSTR) */
238
+ noise1: string;
239
+
240
+ /** ACCESSOR_T(..., "noise2", noise2, GETSTR, SETSTR) */
241
+ noise2: string;
242
+
243
+ /** ACCESSOR_T(..., "noise3", noise3, GETSTR, SETSTR) */
244
+ noise3: string;
245
+
246
+ /** ACCESSOR_T(..., "speed", speed, GETN, SETFLOAT) */
247
+ speed: number;
248
+
249
+ /** ACCESSOR_T(..., "air_finished", air_finished, GETN, SETFLOAT) */
250
+ air_finished: number;
251
+
252
+ /** ACCESSOR_T(..., "pain_finished", pain_finished, GETN, SETFLOAT) */
253
+ pain_finished: number;
254
+
255
+ /** ACCESSOR_T(..., "radsuit_finished", radsuit_finished, GETN, SETFLOAT) */
256
+ radsuit_finished: number;
257
+
258
+ /** ACCESSOR_T(..., "playerclass", playerclass, GETN, SETINT) */
259
+ playerclass: number;
260
+
261
+ /** ACCESSOR_T(..., "maxspeed", maxspeed, GETN, SETFLOAT) */
262
+ maxspeed: number;
263
+
264
+ /** ACCESSOR_T(..., "fov", fov, GETN, SETFLOAT) */
265
+ fov: number;
266
+
267
+ /** ACCESSOR_T(..., "weaponanim", weaponanim, GETN, SETINT) */
268
+ weaponanim: number;
269
+
270
+ /** ACCESSOR_T(..., "pushmsec", pushmsec, GETN, SETINT) */
271
+ pushmsec: number;
272
+
273
+ /** ACCESSOR_T(..., "bInDuck", bInDuck, GETN, SETINT) */
274
+ bInDuck: number;
275
+
276
+ /** ACCESSOR_T(..., "flTimeStepSound", flTimeStepSound, GETN, SETINT) */
277
+ flTimeStepSound: number;
278
+
279
+ /** ACCESSOR_T(..., "flSwimTime", flSwimTime, GETN, SETINT) */
280
+ flSwimTime: number;
281
+
282
+ /** ACCESSOR_T(..., "flDuckTime", flDuckTime, GETN, SETINT) */
283
+ flDuckTime: number;
284
+
285
+ /** ACCESSOR_T(..., "iStepLeft", iStepLeft, GETN, SETINT) */
286
+ iStepLeft: number;
287
+
288
+ /** ACCESSOR_T(..., "flFallVelocity", flFallVelocity, GETN, SETFLOAT) */
289
+ flFallVelocity: number;
290
+
291
+ /** ACCESSOR_T(..., "gamestate", gamestate, GETN, SETINT) */
292
+ gamestate: number;
293
+
294
+ /** ACCESSOR_T(..., "oldbuttons", oldbuttons, GETN, SETINT) */
295
+ oldbuttons: number;
296
+
297
+ /** ACCESSOR_T(..., "groupinfo", groupinfo, GETN, SETINT) */
298
+ groupinfo: number;
299
+
300
+ /** ACCESSOR_T(..., "iuser1", iuser1, GETN, SETINT) */
301
+ iuser1: number;
302
+
303
+ /** ACCESSOR_T(..., "iuser2", iuser2, GETN, SETINT) */
304
+ iuser2: number;
305
+
306
+ /** ACCESSOR_T(..., "iuser3", iuser3, GETN, SETINT) */
307
+ iuser3: number;
308
+
309
+ /** ACCESSOR_T(..., "iuser4", iuser4, GETN, SETINT) */
310
+ iuser4: number;
311
+
312
+ /** ACCESSOR_T(..., "fuser1", fuser1, GETN, SETFLOAT) */
313
+ fuser1: number;
314
+
315
+ /** ACCESSOR_T(..., "fuser2", fuser2, GETN, SETFLOAT) */
316
+ fuser2: number;
317
+
318
+ /** ACCESSOR_T(..., "fuser3", fuser3, GETN, SETFLOAT) */
319
+ fuser3: number;
320
+
321
+ /** ACCESSOR_T(..., "fuser4", fuser4, GETN, SETFLOAT) */
322
+ fuser4: number;
323
+
324
+ /** ACCESSOR_T(..., "vuser1", vuser1, GETVEC3, SETVEC3) */
325
+ vuser1: number[];
326
+
327
+ /** ACCESSOR_T(..., "vuser2", vuser2, GETVEC3, SETVEC3) */
328
+ vuser2: number[];
329
+
330
+ /** ACCESSOR_T(..., "vuser3", vuser3, GETVEC3, SETVEC3) */
331
+ vuser3: number[];
332
+
333
+ /** ACCESSOR_T(..., "vuser4", vuser4, GETVEC3, SETVEC3) */
334
+ vuser4: number[];
335
+
336
+ /** templ->SetNativeDataProperty("model", ...) */
337
+ model: string;
338
+
339
+ /** templ->SetNativeDataProperty("controller", ...) */
340
+ controller: number;
341
+
342
+ /** templ->SetNativeDataProperty("blending", ...) */
343
+ blending: number;
344
+
345
+ /** templ->SetNativeDataProperty("chain", ...) */
346
+ chain: Entity | null;
347
+
348
+ /** templ->SetNativeDataProperty("dmg_inflictor", ...) */
349
+ dmg_inflictor: Entity | null;
350
+
351
+ /** templ->SetNativeDataProperty("enemy", ...) */
352
+ enemy: Entity | null;
353
+
354
+ /** templ->SetNativeDataProperty("aiment", ...) */
355
+ aiment: Entity | null;
356
+
357
+ /** templ->SetNativeDataProperty("owner", ...) */
358
+ owner: Entity | null;
359
+
360
+ /** templ->SetNativeDataProperty("groundentity", ...) */
361
+ groundentity: Entity | null;
362
+
363
+ /** templ->SetNativeDataProperty("pContainingEntity", ...) */
364
+ pContainingEntity: Entity | null;
365
+
366
+ /** templ->SetNativeDataProperty("euser1", ...) */
367
+ euser1: Entity | null;
368
+
369
+ /** templ->SetNativeDataProperty("euser2", ...) */
370
+ euser2: Entity | null;
371
+
372
+ /** templ->SetNativeDataProperty("euser3", ...) */
373
+ euser3: Entity | null;
374
+
375
+ /** templ->SetNativeDataProperty("euser4", ...) */
376
+ euser4: Entity | null;
377
+ }
378
+ /** Client-specific data sent from server to client each frame */
379
+ interface ClientData {
380
+ /** ACCESSOR_T(..., "origin", origin, GETVEC3, SETVEC3) */
381
+ origin: number[];
382
+
383
+ /** ACCESSOR_T(..., "velocity", velocity, GETVEC3, SETVEC3) */
384
+ velocity: number[];
385
+
386
+ /** ACCESSOR_T(..., "punchangle", punchangle, GETVEC3, SETVEC3) */
387
+ punchangle: number[];
388
+
389
+ /** ACCESSOR_T(..., "view_ofs", view_ofs, GETVEC3, SETVEC3) */
390
+ view_ofs: number[];
391
+
392
+ /** ACCESSOR_T(..., "viewmodel", viewmodel, GETN, SETINT) */
393
+ viewmodel: number;
394
+
395
+ /** ACCESSOR_T(..., "flags", flags, GETN, SETINT) */
396
+ flags: number;
397
+
398
+ /** ACCESSOR_T(..., "waterlevel", waterlevel, GETN, SETINT) */
399
+ waterlevel: number;
400
+
401
+ /** ACCESSOR_T(..., "watertype", watertype, GETN, SETINT) */
402
+ watertype: number;
403
+
404
+ /** ACCESSOR_T(..., "bInDuck", bInDuck, GETN, SETINT) */
405
+ bInDuck: number;
406
+
407
+ /** ACCESSOR_T(..., "weapons", weapons, GETN, SETINT) */
408
+ weapons: number;
409
+
410
+ /** ACCESSOR_T(..., "flTimeStepSound", flTimeStepSound, GETN, SETINT) */
411
+ flTimeStepSound: number;
412
+
413
+ /** ACCESSOR_T(..., "flDuckTime", flDuckTime, GETN, SETINT) */
414
+ flDuckTime: number;
415
+
416
+ /** ACCESSOR_T(..., "flSwimTime", flSwimTime, GETN, SETINT) */
417
+ flSwimTime: number;
418
+
419
+ /** ACCESSOR_T(..., "waterjumptime", waterjumptime, GETN, SETINT) */
420
+ waterjumptime: number;
421
+
422
+ /** ACCESSOR_T(..., "weaponanim", weaponanim, GETN, SETINT) */
423
+ weaponanim: number;
424
+
425
+ /** ACCESSOR_T(..., "m_iId", m_iId, GETN, SETINT) */
426
+ m_iId: number;
427
+
428
+ /** ACCESSOR_T(..., "ammo_shells", ammo_shells, GETN, SETINT) */
429
+ ammo_shells: number;
430
+
431
+ /** ACCESSOR_T(..., "ammo_nails", ammo_nails, GETN, SETINT) */
432
+ ammo_nails: number;
433
+
434
+ /** ACCESSOR_T(..., "ammo_cells", ammo_cells, GETN, SETINT) */
435
+ ammo_cells: number;
436
+
437
+ /** ACCESSOR_T(..., "ammo_rockets", ammo_rockets, GETN, SETINT) */
438
+ ammo_rockets: number;
439
+
440
+ /** ACCESSOR_T(..., "tfstate", tfstate, GETN, SETINT) */
441
+ tfstate: number;
442
+
443
+ /** ACCESSOR_T(..., "pushmsec", pushmsec, GETN, SETINT) */
444
+ pushmsec: number;
445
+
446
+ /** ACCESSOR_T(..., "deadflag", deadflag, GETN, SETINT) */
447
+ deadflag: number;
448
+
449
+ /** ACCESSOR_T(..., "health", health, GETN, SETFLOAT) */
450
+ health: number;
451
+
452
+ /** ACCESSOR_T(..., "maxspeed", maxspeed, GETN, SETFLOAT) */
453
+ maxspeed: number;
454
+
455
+ /** ACCESSOR_T(..., "fov", fov, GETN, SETFLOAT) */
456
+ fov: number;
457
+
458
+ /** ACCESSOR_T(..., "m_flNextAttack", m_flNextAttack, GETN, SETFLOAT) */
459
+ m_flNextAttack: number;
460
+
461
+ /** ACCESSOR_T(..., "iuser1", iuser1, GETN, SETINT) */
462
+ iuser1: number;
463
+
464
+ /** ACCESSOR_T(..., "iuser2", iuser2, GETN, SETINT) */
465
+ iuser2: number;
466
+
467
+ /** ACCESSOR_T(..., "iuser3", iuser3, GETN, SETINT) */
468
+ iuser3: number;
469
+
470
+ /** ACCESSOR_T(..., "iuser4", iuser4, GETN, SETINT) */
471
+ iuser4: number;
472
+
473
+ /** ACCESSOR_T(..., "fuser1", fuser1, GETN, SETFLOAT) */
474
+ fuser1: number;
475
+
476
+ /** ACCESSOR_T(..., "fuser2", fuser2, GETN, SETFLOAT) */
477
+ fuser2: number;
478
+
479
+ /** ACCESSOR_T(..., "fuser3", fuser3, GETN, SETFLOAT) */
480
+ fuser3: number;
481
+
482
+ /** ACCESSOR_T(..., "fuser4", fuser4, GETN, SETFLOAT) */
483
+ fuser4: number;
484
+
485
+ /** ACCESSOR_T(..., "vuser1", vuser1, GETVEC3, SETVEC3) */
486
+ vuser1: number[];
487
+
488
+ /** ACCESSOR_T(..., "vuser2", vuser2, GETVEC3, SETVEC3) */
489
+ vuser2: number[];
490
+
491
+ /** ACCESSOR_T(..., "vuser3", vuser3, GETVEC3, SETVEC3) */
492
+ vuser3: number[];
493
+
494
+ /** ACCESSOR_T(..., "vuser4", vuser4, GETVEC3, SETVEC3) */
495
+ vuser4: number[];
496
+ }
497
+ /** Entity state for network transmission */
498
+ interface EntityState {
499
+ /** ACCESSOR_T(..., "entityType", entityType, GETN, SETINT) */
500
+ entityType: number;
501
+
502
+ /** ACCESSOR_T(..., "number", number, GETN, SETINT) */
503
+ number: number;
504
+
505
+ /** ACCESSOR_T(..., "msg_time", msg_time, GETN, SETFLOAT) */
506
+ msg_time: number;
507
+
508
+ /** ACCESSOR_T(..., "messagenum", messagenum, GETN, SETINT) */
509
+ messagenum: number;
510
+
511
+ /** ACCESSOR_T(..., "origin", origin, GETVEC3, SETVEC3) */
512
+ origin: number[];
513
+
514
+ /** ACCESSOR_T(..., "angles", angles, GETVEC3, SETVEC3) */
515
+ angles: number[];
516
+
517
+ /** ACCESSOR_T(..., "modelindex", modelindex, GETN, SETINT) */
518
+ modelindex: number;
519
+
520
+ /** ACCESSOR_T(..., "sequence", sequence, GETN, SETINT) */
521
+ sequence: number;
522
+
523
+ /** ACCESSOR_T(..., "frame", frame, GETN, SETFLOAT) */
524
+ frame: number;
525
+
526
+ /** ACCESSOR_T(..., "colormap", colormap, GETN, SETINT) */
527
+ colormap: number;
528
+
529
+ /** ACCESSOR_T(..., "skin", skin, GETN, SETINT) */
530
+ skin: number;
531
+
532
+ /** ACCESSOR_T(..., "solid", solid, GETN, SETINT) */
533
+ solid: number;
534
+
535
+ /** ACCESSOR_T(..., "effects", effects, GETN, SETINT) */
536
+ effects: number;
537
+
538
+ /** ACCESSOR_T(..., "scale", scale, GETN, SETFLOAT) */
539
+ scale: number;
540
+
541
+ /** ACCESSOR_T(..., "eflags", eflags, GETBYTE, SETBYTE) */
542
+ eflags: unknown;
543
+
544
+ /** ACCESSOR_T(..., "rendermode", rendermode, GETN, SETINT) */
545
+ rendermode: number;
546
+
547
+ /** ACCESSOR_T(..., "renderamt", renderamt, GETN, SETINT) */
548
+ renderamt: number;
549
+
550
+ /** ACCESSOR_T(..., "renderfx", renderfx, GETN, SETINT) */
551
+ renderfx: number;
552
+
553
+ /** ACCESSOR_T(..., "movetype", movetype, GETN, SETINT) */
554
+ movetype: number;
555
+
556
+ /** ACCESSOR_T(..., "animtime", animtime, GETN, SETFLOAT) */
557
+ animtime: number;
558
+
559
+ /** ACCESSOR_T(..., "framerate", framerate, GETN, SETFLOAT) */
560
+ framerate: number;
561
+
562
+ /** ACCESSOR_T(..., "body", body, GETN, SETINT) */
563
+ body: number;
564
+
565
+ /** ACCESSOR_T(..., "velocity", velocity, GETVEC3, SETVEC3) */
566
+ velocity: number[];
567
+
568
+ /** ACCESSOR_T(..., "mins", mins, GETVEC3, SETVEC3) */
569
+ mins: number[];
570
+
571
+ /** ACCESSOR_T(..., "maxs", maxs, GETVEC3, SETVEC3) */
572
+ maxs: number[];
573
+
574
+ /** ACCESSOR_T(..., "aiment", aiment, GETN, SETINT) */
575
+ aiment: number;
576
+
577
+ /** ACCESSOR_T(..., "owner", owner, GETN, SETINT) */
578
+ owner: number;
579
+
580
+ /** ACCESSOR_T(..., "friction", friction, GETN, SETFLOAT) */
581
+ friction: number;
582
+
583
+ /** ACCESSOR_T(..., "gravity", gravity, GETN, SETFLOAT) */
584
+ gravity: number;
585
+
586
+ /** ACCESSOR_T(..., "team", team, GETN, SETINT) */
587
+ team: number;
588
+
589
+ /** ACCESSOR_T(..., "playerclass", playerclass, GETN, SETINT) */
590
+ playerclass: number;
591
+
592
+ /** ACCESSOR_T(..., "health", health, GETN, SETINT) */
593
+ health: number;
594
+
595
+ /** ACCESSOR_T(..., "spectator", spectator, GETQBOOL, SETQBOOL) */
596
+ spectator: unknown;
597
+
598
+ /** ACCESSOR_T(..., "weaponmodel", weaponmodel, GETN, SETINT) */
599
+ weaponmodel: number;
600
+
601
+ /** ACCESSOR_T(..., "gaitsequence", gaitsequence, GETN, SETINT) */
602
+ gaitsequence: number;
603
+
604
+ /** ACCESSOR_T(..., "basevelocity", basevelocity, GETVEC3, SETVEC3) */
605
+ basevelocity: number[];
606
+
607
+ /** ACCESSOR_T(..., "usehull", usehull, GETN, SETINT) */
608
+ usehull: number;
609
+
610
+ /** ACCESSOR_T(..., "oldbuttons", oldbuttons, GETN, SETINT) */
611
+ oldbuttons: number;
612
+
613
+ /** ACCESSOR_T(..., "onground", onground, GETN, SETINT) */
614
+ onground: number;
615
+
616
+ /** ACCESSOR_T(..., "iStepLeft", iStepLeft, GETN, SETINT) */
617
+ iStepLeft: number;
618
+
619
+ /** ACCESSOR_T(..., "flFallVelocity", flFallVelocity, GETN, SETFLOAT) */
620
+ flFallVelocity: number;
621
+
622
+ /** ACCESSOR_T(..., "fov", fov, GETN, SETFLOAT) */
623
+ fov: number;
624
+
625
+ /** ACCESSOR_T(..., "weaponanim", weaponanim, GETN, SETINT) */
626
+ weaponanim: number;
627
+
628
+ /** ACCESSOR_T(..., "startpos", startpos, GETVEC3, SETVEC3) */
629
+ startpos: number[];
630
+
631
+ /** ACCESSOR_T(..., "endpos", endpos, GETVEC3, SETVEC3) */
632
+ endpos: number[];
633
+
634
+ /** ACCESSOR_T(..., "impacttime", impacttime, GETN, SETFLOAT) */
635
+ impacttime: number;
636
+
637
+ /** ACCESSOR_T(..., "starttime", starttime, GETN, SETFLOAT) */
638
+ starttime: number;
639
+
640
+ /** ACCESSOR_T(..., "iuser1", iuser1, GETN, SETINT) */
641
+ iuser1: number;
642
+
643
+ /** ACCESSOR_T(..., "iuser2", iuser2, GETN, SETINT) */
644
+ iuser2: number;
645
+
646
+ /** ACCESSOR_T(..., "iuser3", iuser3, GETN, SETINT) */
647
+ iuser3: number;
648
+
649
+ /** ACCESSOR_T(..., "iuser4", iuser4, GETN, SETINT) */
650
+ iuser4: number;
651
+
652
+ /** ACCESSOR_T(..., "fuser1", fuser1, GETN, SETFLOAT) */
653
+ fuser1: number;
654
+
655
+ /** ACCESSOR_T(..., "fuser2", fuser2, GETN, SETFLOAT) */
656
+ fuser2: number;
657
+
658
+ /** ACCESSOR_T(..., "fuser3", fuser3, GETN, SETFLOAT) */
659
+ fuser3: number;
660
+
661
+ /** ACCESSOR_T(..., "fuser4", fuser4, GETN, SETFLOAT) */
662
+ fuser4: number;
663
+
664
+ /** ACCESSOR_T(..., "vuser1", vuser1, GETVEC3, SETVEC3) */
665
+ vuser1: number[];
666
+
667
+ /** ACCESSOR_T(..., "vuser2", vuser2, GETVEC3, SETVEC3) */
668
+ vuser2: number[];
669
+
670
+ /** ACCESSOR_T(..., "vuser3", vuser3, GETVEC3, SETVEC3) */
671
+ vuser3: number[];
672
+
673
+ /** ACCESSOR_T(..., "vuser4", vuser4, GETVEC3, SETVEC3) */
674
+ vuser4: number[];
675
+
676
+ /** templ->SetNativeDataProperty("rendercolor", ...) */
677
+ rendercolor: Entity | null;
678
+
679
+ /** templ->SetNativeDataProperty("controller", ...) */
680
+ controller: Entity | null;
681
+
682
+ /** templ->SetNativeDataProperty("blending", ...) */
683
+ blending: Entity | null;
684
+ }
685
+ /** Player input commands sent from client to server */
686
+ interface UserCmd {
687
+ /** ACCESSOR_T(..., "lerp_msec", lerp_msec, GETN, SETINT) */
688
+ lerp_msec: number;
689
+
690
+ /** ACCESSOR_T(..., "msec", msec, GETN, SETINT) */
691
+ msec: number;
692
+
693
+ /** ACCESSOR_T(..., "lightlevel", lightlevel, GETN, SETINT) */
694
+ lightlevel: number;
695
+
696
+ /** ACCESSOR_T(..., "buttons", buttons, GETN, SETINT) */
697
+ buttons: number;
698
+
699
+ /** ACCESSOR_T(..., "impulse", impulse, GETN, SETINT) */
700
+ impulse: number;
701
+
702
+ /** ACCESSOR_T(..., "weaponselect", weaponselect, GETN, SETINT) */
703
+ weaponselect: number;
704
+
705
+ /** ACCESSOR_T(..., "impact_index", impact_index, GETN, SETINT) */
706
+ impact_index: number;
707
+
708
+ /** ACCESSOR_T(..., "forwardmove", forwardmove, GETN, SETFLOAT) */
709
+ forwardmove: number;
710
+
711
+ /** ACCESSOR_T(..., "sidemove", sidemove, GETN, SETFLOAT) */
712
+ sidemove: number;
713
+
714
+ /** ACCESSOR_T(..., "upmove", upmove, GETN, SETFLOAT) */
715
+ upmove: number;
716
+
717
+ /** ACCESSOR_T(..., "viewangles", viewangles, GETVEC3, SETVEC3) */
718
+ viewangles: number[];
719
+
720
+ /** ACCESSOR_T(..., "impact_position", impact_position, GETVEC3, SETVEC3) */
721
+ impact_position: number[];
722
+ }
723
+ /** Network address information */
724
+ interface NetAdr {
725
+ /** ACCESSOR_T(..., "port", port, GETN, SETINT) */
726
+ port: number;
727
+
728
+ /** templ->SetNativeDataProperty("type", ...) */
729
+ type: string;
730
+
731
+ /** templ->SetNativeDataProperty("ip", ...) */
732
+ ip: number[];
733
+
734
+ /** templ->SetNativeDataProperty("ipx", ...) */
735
+ ipx: number[];
736
+
737
+ /** templ->SetNativeDataProperty("ipString", ...) */
738
+ ipString: string;
739
+ }
740
+ /** Weapon state and timing information */
741
+ interface WeaponData {
742
+ /** ACCESSOR_T(..., "m_iId", m_iId, GETN, SETINT) */
743
+ m_iId: number;
744
+
745
+ /** ACCESSOR_T(..., "m_iClip", m_iClip, GETN, SETINT) */
746
+ m_iClip: number;
747
+
748
+ /** ACCESSOR_T(..., "m_fInReload", m_fInReload, GETN, SETINT) */
749
+ m_fInReload: number;
750
+
751
+ /** ACCESSOR_T(..., "m_fInSpecialReload", m_fInSpecialReload, GETN, SETINT) */
752
+ m_fInSpecialReload: number;
753
+
754
+ /** ACCESSOR_T(..., "m_fInZoom", m_fInZoom, GETN, SETINT) */
755
+ m_fInZoom: number;
756
+
757
+ /** ACCESSOR_T(..., "m_iWeaponState", m_iWeaponState, GETN, SETINT) */
758
+ m_iWeaponState: number;
759
+
760
+ /** ACCESSOR_T(..., "m_flNextPrimaryAttack", m_flNextPrimaryAttack, GETN, SETFLOAT) */
761
+ m_flNextPrimaryAttack: number;
762
+
763
+ /** ACCESSOR_T(..., "m_flNextSecondaryAttack", m_flNextSecondaryAttack, GETN, SETFLOAT) */
764
+ m_flNextSecondaryAttack: number;
765
+
766
+ /** ACCESSOR_T(..., "m_flTimeWeaponIdle", m_flTimeWeaponIdle, GETN, SETFLOAT) */
767
+ m_flTimeWeaponIdle: number;
768
+
769
+ /** ACCESSOR_T(..., "m_flNextReload", m_flNextReload, GETN, SETFLOAT) */
770
+ m_flNextReload: number;
771
+
772
+ /** ACCESSOR_T(..., "m_flPumpTime", m_flPumpTime, GETN, SETFLOAT) */
773
+ m_flPumpTime: number;
774
+
775
+ /** ACCESSOR_T(..., "m_fReloadTime", m_fReloadTime, GETN, SETFLOAT) */
776
+ m_fReloadTime: number;
777
+
778
+ /** ACCESSOR_T(..., "m_fAimedDamage", m_fAimedDamage, GETN, SETFLOAT) */
779
+ m_fAimedDamage: number;
780
+
781
+ /** ACCESSOR_T(..., "m_fNextAimBonus", m_fNextAimBonus, GETN, SETFLOAT) */
782
+ m_fNextAimBonus: number;
783
+
784
+ /** ACCESSOR_T(..., "iuser1", iuser1, GETN, SETINT) */
785
+ iuser1: number;
786
+
787
+ /** ACCESSOR_T(..., "iuser2", iuser2, GETN, SETINT) */
788
+ iuser2: number;
789
+
790
+ /** ACCESSOR_T(..., "iuser3", iuser3, GETN, SETINT) */
791
+ iuser3: number;
792
+
793
+ /** ACCESSOR_T(..., "iuser4", iuser4, GETN, SETINT) */
794
+ iuser4: number;
795
+
796
+ /** ACCESSOR_T(..., "fuser1", fuser1, GETN, SETFLOAT) */
797
+ fuser1: number;
798
+
799
+ /** ACCESSOR_T(..., "fuser2", fuser2, GETN, SETFLOAT) */
800
+ fuser2: number;
801
+
802
+ /** ACCESSOR_T(..., "fuser3", fuser3, GETN, SETFLOAT) */
803
+ fuser3: number;
804
+
805
+ /** ACCESSOR_T(..., "fuser4", fuser4, GETN, SETFLOAT) */
806
+ fuser4: number;
807
+ }
808
+ /** Player movement state and physics parameters */
809
+ interface PlayerMove {
810
+ /** ACCESSOR_T(..., "player_index", player_index, GETN, SETINT) */
811
+ player_index: number;
812
+
813
+ /** ACCESSOR_T(..., "server", server, GETBOOL, SETBOOL) */
814
+ server: boolean;
815
+
816
+ /** ACCESSOR_T(..., "multiplayer", multiplayer, GETBOOL, SETBOOL) */
817
+ multiplayer: boolean;
818
+
819
+ /** ACCESSOR_T(..., "flags", flags, GETN, SETINT) */
820
+ flags: number;
821
+
822
+ /** ACCESSOR_T(..., "usehull", usehull, GETN, SETINT) */
823
+ usehull: number;
824
+
825
+ /** ACCESSOR_T(..., "gravity", gravity, GETN, SETFLOAT) */
826
+ gravity: number;
827
+
828
+ /** ACCESSOR_T(..., "maxspeed", maxspeed, GETN, SETFLOAT) */
829
+ maxspeed: number;
830
+
831
+ /** ACCESSOR_T(..., "clientmaxspeed", clientmaxspeed, GETN, SETFLOAT) */
832
+ clientmaxspeed: number;
833
+
834
+ /** ACCESSOR_T(..., "movetype", movetype, GETN, SETINT) */
835
+ movetype: number;
836
+
837
+ /** ACCESSOR_T(..., "friction", friction, GETN, SETFLOAT) */
838
+ friction: number;
839
+
840
+ /** ACCESSOR_T(..., "oldbuttons", oldbuttons, GETN, SETINT) */
841
+ oldbuttons: number;
842
+
843
+ /** ACCESSOR_T(..., "onground", onground, GETN, SETINT) */
844
+ onground: number;
845
+
846
+ /** ACCESSOR_T(..., "waterlevel", waterlevel, GETN, SETINT) */
847
+ waterlevel: number;
848
+
849
+ /** ACCESSOR_T(..., "watertype", watertype, GETN, SETINT) */
850
+ watertype: number;
851
+
852
+ /** ACCESSOR_T(..., "oldwaterlevel", oldwaterlevel, GETN, SETINT) */
853
+ oldwaterlevel: number;
854
+
855
+ /** ACCESSOR_T(..., "chtexturetype", chtexturetype, GETN, SETINT) */
856
+ chtexturetype: number;
857
+
858
+ /** ACCESSOR_T(..., "dead", dead, GETN, SETINT) */
859
+ dead: number;
860
+
861
+ /** ACCESSOR_T(..., "deadflag", deadflag, GETN, SETINT) */
862
+ deadflag: number;
863
+
864
+ /** ACCESSOR_T(..., "spectator", spectator, GETN, SETINT) */
865
+ spectator: number;
866
+
867
+ /** ACCESSOR_T(..., "bInDuck", bInDuck, GETN, SETINT) */
868
+ bInDuck: number;
869
+
870
+ /** ACCESSOR_T(..., "flTimeStepSound", flTimeStepSound, GETN, SETINT) */
871
+ flTimeStepSound: number;
872
+
873
+ /** ACCESSOR_T(..., "iStepLeft", iStepLeft, GETN, SETINT) */
874
+ iStepLeft: number;
875
+
876
+ /** ACCESSOR_T(..., "numphysent", numphysent, GETN, SETINT) */
877
+ numphysent: number;
878
+
879
+ /** ACCESSOR_T(..., "nummoveent", nummoveent, GETN, SETINT) */
880
+ nummoveent: number;
881
+
882
+ /** ACCESSOR_T(..., "numvisent", numvisent, GETN, SETINT) */
883
+ numvisent: number;
884
+
885
+ /** ACCESSOR_T(..., "numtouch", numtouch, GETN, SETINT) */
886
+ numtouch: number;
887
+
888
+ /** ACCESSOR_T(..., "runfuncs", runfuncs, GETBOOL, SETBOOL) */
889
+ runfuncs: boolean;
890
+
891
+ /** ACCESSOR_T(..., "time", time, GETN, SETFLOAT) */
892
+ time: number;
893
+
894
+ /** ACCESSOR_T(..., "frametime", frametime, GETN, SETFLOAT) */
895
+ frametime: number;
896
+
897
+ /** ACCESSOR_T(..., "flFallVelocity", flFallVelocity, GETN, SETFLOAT) */
898
+ flFallVelocity: number;
899
+
900
+ /** ACCESSOR_T(..., "flSwimTime", flSwimTime, GETN, SETFLOAT) */
901
+ flSwimTime: number;
902
+
903
+ /** ACCESSOR_T(..., "flDuckTime", flDuckTime, GETN, SETFLOAT) */
904
+ flDuckTime: number;
905
+
906
+ /** ACCESSOR_T(..., "fuser1", fuser1, GETN, SETFLOAT) */
907
+ fuser1: number;
908
+
909
+ /** ACCESSOR_T(..., "fuser2", fuser2, GETN, SETFLOAT) */
910
+ fuser2: number;
911
+
912
+ /** ACCESSOR_T(..., "fuser3", fuser3, GETN, SETFLOAT) */
913
+ fuser3: number;
914
+
915
+ /** ACCESSOR_T(..., "fuser4", fuser4, GETN, SETFLOAT) */
916
+ fuser4: number;
917
+
918
+ /** ACCESSOR_T(..., "forward", forward, GETVEC3, SETVEC3) */
919
+ forward: number[];
920
+
921
+ /** ACCESSOR_T(..., "right", right, GETVEC3, SETVEC3) */
922
+ right: number[];
923
+
924
+ /** ACCESSOR_T(..., "up", up, GETVEC3, SETVEC3) */
925
+ up: number[];
926
+
927
+ /** ACCESSOR_T(..., "origin", origin, GETVEC3, SETVEC3) */
928
+ origin: number[];
929
+
930
+ /** ACCESSOR_T(..., "angles", angles, GETVEC3, SETVEC3) */
931
+ angles: number[];
932
+
933
+ /** ACCESSOR_T(..., "oldangles", oldangles, GETVEC3, SETVEC3) */
934
+ oldangles: number[];
935
+
936
+ /** ACCESSOR_T(..., "velocity", velocity, GETVEC3, SETVEC3) */
937
+ velocity: number[];
938
+
939
+ /** ACCESSOR_T(..., "movedir", movedir, GETVEC3, SETVEC3) */
940
+ movedir: number[];
941
+
942
+ /** ACCESSOR_T(..., "basevelocity", basevelocity, GETVEC3, SETVEC3) */
943
+ basevelocity: number[];
944
+
945
+ /** ACCESSOR_T(..., "view_ofs", view_ofs, GETVEC3, SETVEC3) */
946
+ view_ofs: number[];
947
+
948
+ /** ACCESSOR_T(..., "punchangle", punchangle, GETVEC3, SETVEC3) */
949
+ punchangle: number[];
950
+
951
+ /** ACCESSOR_T(..., "vuser1", vuser1, GETVEC3, SETVEC3) */
952
+ vuser1: number[];
953
+
954
+ /** ACCESSOR_T(..., "vuser2", vuser2, GETVEC3, SETVEC3) */
955
+ vuser2: number[];
956
+
957
+ /** ACCESSOR_T(..., "vuser3", vuser3, GETVEC3, SETVEC3) */
958
+ vuser3: number[];
959
+
960
+ /** ACCESSOR_T(..., "vuser4", vuser4, GETVEC3, SETVEC3) */
961
+ vuser4: number[];
962
+
963
+ /** ACCESSOR_T(..., "iuser1", iuser1, GETN, SETINT) */
964
+ iuser1: number;
965
+
966
+ /** ACCESSOR_T(..., "iuser2", iuser2, GETN, SETINT) */
967
+ iuser2: number;
968
+
969
+ /** ACCESSOR_T(..., "iuser3", iuser3, GETN, SETINT) */
970
+ iuser3: number;
971
+
972
+ /** ACCESSOR_T(..., "iuser4", iuser4, GETN, SETINT) */
973
+ iuser4: number;
974
+
975
+ /** templ->SetNativeDataProperty("sztexturename", ...) */
976
+ sztexturename: string;
977
+
978
+ /** templ->SetNativeDataProperty("physinfo", ...) */
979
+ physinfo: string;
980
+
981
+ /** templ->SetNativeDataProperty("cmd", ...) */
982
+ cmd: UserCmd | null;
983
+
984
+ /** templ->SetNativeDataProperty("movevars", ...) */
985
+ movevars: object | null;
986
+ }
987
+ /** Player customization data (sprays, models) */
988
+ interface Customization {
989
+ /** ACCESSOR_T(..., "bInUse", bInUse, GETBOOL, SETBOOL) */
990
+ bInUse: boolean;
991
+
992
+ /** ACCESSOR_T(..., "bTranslated", bTranslated, GETBOOL, SETBOOL) */
993
+ bTranslated: boolean;
994
+
995
+ /** ACCESSOR_T(..., "nUserData1", nUserData1, GETN, SETINT) */
996
+ nUserData1: number;
997
+
998
+ /** ACCESSOR_T(..., "nUserData2", nUserData2, GETN, SETINT) */
999
+ nUserData2: number;
1000
+
1001
+ /** templ->SetNativeDataProperty("resource", ...) */
1002
+ resource: object;
1003
+
1004
+ /** templ->SetNativeDataProperty("pInfo", ...) */
1005
+ pInfo: null;
1006
+
1007
+ /** templ->SetNativeDataProperty("pBuffer", ...) */
1008
+ pBuffer: null;
1009
+
1010
+ /** templ->SetNativeDataProperty("pNext", ...) */
1011
+ pNext: Customization | null;
1012
+ }
1013
+ /** Key-value pairs for entity spawning */
1014
+ interface KeyValueData {
1015
+ /** ACCESSOR_T(..., "fHandled", fHandled, GETN, SETINT) */
1016
+ fHandled: number;
1017
+
1018
+ /** templ->SetNativeDataProperty("szClassName", ...) */
1019
+ szClassName: string;
1020
+
1021
+ /** templ->SetNativeDataProperty("szKeyName", ...) */
1022
+ szKeyName: string;
1023
+
1024
+ /** templ->SetNativeDataProperty("szValue", ...) */
1025
+ szValue: string;
1026
+ }
1027
+ /** Save/restore game state information */
1028
+ interface SaveRestoreData {
1029
+ /** ACCESSOR_T(..., "size", size, GETN, SETINT) */
1030
+ size: number;
1031
+
1032
+ /** ACCESSOR_T(..., "bufferSize", bufferSize, GETN, SETINT) */
1033
+ bufferSize: number;
1034
+
1035
+ /** ACCESSOR_T(..., "tokenSize", tokenSize, GETN, SETINT) */
1036
+ tokenSize: number;
1037
+
1038
+ /** ACCESSOR_T(..., "tokenCount", tokenCount, GETN, SETINT) */
1039
+ tokenCount: number;
1040
+
1041
+ /** templ->SetNativeDataProperty("szCurrentMapName", ...) */
1042
+ szCurrentMapName: string;
1043
+ }
1044
+ /** Field type description for save/restore system */
1045
+ interface TypeDescription {
1046
+ /** ACCESSOR_T(..., "fieldOffset", fieldOffset, GETN, SETINT) */
1047
+ fieldOffset: number;
1048
+
1049
+ /** ACCESSOR_T(..., "fieldSize", fieldSize, GETN, SETINT) */
1050
+ fieldSize: number;
1051
+
1052
+ /** ACCESSOR_T(..., "flags", flags, GETN, SETINT) */
1053
+ flags: number;
1054
+
1055
+ /** templ->SetNativeDataProperty("fieldType", ...) */
1056
+ fieldType: number;
1057
+
1058
+ /** templ->SetNativeDataProperty("fieldName", ...) */
1059
+ fieldName: string;
1060
+
1061
+ /** templ->SetNativeDataProperty("fieldTypeName", ...) */
1062
+ fieldTypeName: string;
1063
+
1064
+ /** templ->SetNativeDataProperty("isGlobal", ...) */
1065
+ isGlobal: boolean;
1066
+ }
1067
+ /** Delta compression structure for network optimization */
1068
+ interface Delta {
1069
+ /** templ->SetNativeDataProperty("toString", ...) */
1070
+ toString: string;
1071
+
1072
+ /** templ->SetNativeDataProperty("isValid", ...) */
1073
+ isValid: boolean;
1074
+
1075
+ /** templ->SetNativeDataProperty("pointer", ...) */
1076
+ pointer: number;
1077
+ }
1078
+ /** Console variable (cvar) information */
1079
+ interface Cvar {
1080
+ /** ACCESSOR_T(..., "flags", flags, GETN, SETINT) */
1081
+ flags: number;
1082
+
1083
+ /** ACCESSOR_T(..., "value", value, GETN, SETFLOAT) */
1084
+ value: number;
1085
+
1086
+ /** templ->SetNativeDataProperty("name", ...) */
1087
+ name: string;
1088
+
1089
+ /** templ->SetNativeDataProperty("string", ...) */
1090
+ string: string;
1091
+
1092
+ /** templ->SetNativeDataProperty("next", ...) */
1093
+ next: Cvar | null;
1094
+ }
1095
+ /** Results from line/hull trace operations */
1096
+ interface TraceResult {
1097
+ /** v8::String::NewFromUtf8(isolate, "fraction").ToLocalChecked(), v8::Number::New(isolate, trace->flFraction)) */
1098
+ fraction: number;
1099
+
1100
+ /** v8::String::NewFromUtf8(isolate, "planeDist").ToLocalChecked(), v8::Number::New(isolate, trace->flPlaneDist)) */
1101
+ planeDist: number;
1102
+
1103
+ /** v8::String::NewFromUtf8(isolate, "endPos").ToLocalChecked(), endPos) */
1104
+ endPos: unknown;
1105
+
1106
+ /** v8::String::NewFromUtf8(isolate, "planeNormal").ToLocalChecked(), planeNormal) */
1107
+ planeNormal: unknown;
1108
+
1109
+ /** v8::String::NewFromUtf8(isolate, "hitGroup").ToLocalChecked(), v8::Integer::New(isolate, trace->iHitgroup)) */
1110
+ hitGroup: unknown;
1111
+
1112
+ /** v8::String::NewFromUtf8(isolate, "allSolid").ToLocalChecked(), v8::Boolean::New(isolate, trace->fAllSolid)) */
1113
+ allSolid: boolean;
1114
+
1115
+ /** v8::String::NewFromUtf8(isolate, "startSolid").ToLocalChecked(), v8::Boolean::New(isolate, trace->fStartSolid)) */
1116
+ startSolid: boolean;
1117
+
1118
+ /** v8::String::NewFromUtf8(isolate, "inOpen").ToLocalChecked(), v8::Boolean::New(isolate, trace->fInOpen)) */
1119
+ inOpen: boolean;
1120
+
1121
+ /** v8::String::NewFromUtf8(isolate, "inWater").ToLocalChecked(), v8::Boolean::New(isolate, trace->fInWater)) */
1122
+ inWater: boolean;
1123
+
1124
+ /** v8::String::NewFromUtf8(isolate, "hit").ToLocalChecked(), v8::Null(isolate)) */
1125
+ hit: null;
1126
+ }
1127
+ /** Game entity reference with properties and methods */
1128
+ interface Entity extends Entvars {
1129
+ /** Entity ID from edict index */
1130
+ id: number;
1131
+
1132
+ getPrivateDataBuffer(offset: number, size: number): Buffer | null;
1133
+
1134
+ writePrivateDataBuffer(offset: number, buffer: Buffer | ArrayBuffer | Uint8Array): boolean;
1135
+ }
1136
+ /** Result from monster hull trace operations */
1137
+ interface TraceMonsterHullResult {
1138
+ /** Return value from pfnTraceMonsterHull - likely collision/movement validity flag */
1139
+ result: number;
1140
+
1141
+ /** Standard trace result with hit information */
1142
+ trace: TraceResult;
1143
+ }
1144
+ }