-
Notifications
You must be signed in to change notification settings - Fork 1
/
IGI-Natives-V2.json
644 lines (644 loc) · 24.3 KB
/
IGI-Natives-V2.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
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
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
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
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
{
"Natives": [
{
"Native": {
"name": "AnimTriggerRead",
"address": "004EC070",
"signature": "void AnimTriggerRead(uint* path);",
"note": "Read Config of AnimTrigger, Params: Path like: 'LOCAL:Animtrigger'"
}
},
{
"Native": {
"name": "CompilerCleanup",
"address": "004B83D0",
"signature": "void CompileCleanUp(int* file);",
"note": "Cleanup files after compiling, Params: File passed to CompileQVM"
}
},
{
"Native": {
"name": "ConfigCompile",
"address": "004F0CF0",
"signature": "int ConfigCompile(int p1,char* cfg_file,int p3);",
"note": "Compile any config file, Params: Config: 'WEAPONS:weaponconfig.qsc' p1 ??, p3 ??"
}
},
{
"Native": {
"name": "ConfigRead",
"address": "00405850",
"signature": "int ConfigRead(char* cfg_file);",
"note": "Read game config file, Params: File: 'LOCAL:config.qsc'"
}
},
{
"Native": {
"name": "ConfigWrite",
"address": "00405BD0",
"signature": "void ConfigWrite(char* cfg_file);",
"note": "Write game config file, Params: File: 'LOCAL:config.qsc'"
}
},
{
"Native": {
"name": "CutsceneDelete",
"address": "00415AB0",
"signature": "void CutsceneDelete(char* buffer);",
"note": "Delete current cutscene, Params: Buffer of size 30."
}
},
{
"Native": {
"name": "ErrorShow",
"address": "004AF7B0",
"signature": "void ErrorShow(char* err_msg);",
"note": "Show error message from game, Params: Error message."
}
},
{
"Native": {
"name": "FramesSet",
"address": "00402820",
"signature": "void FramesSet(int frames);",
"note": "Set game frames, Params: 30,60 max 240FPS."
}
},
{
"Native": {
"name": "GameMaterialLoad",
"address": "00408350",
"signature": "void GameMaterialLoad(void);",
"note": "Load game material.qvm to memory."
}
},
{
"Native": {
"name": "GraphicsReset",
"address": "00403B70",
"signature": "void GraphicsReset(char* buffer);",
"note": "Reset Graphics options in settings, Params: Buffer of size 30."
}
},
{
"Native": {
"name": "GraphOpen",
"address": "004F9FF0",
"signature": "void GraphOpen(uint level,char* graph_str);",
"note": "Open graph of level,Params: with str 'Graph4019.dat'"
}
},
{
"Native": {
"name": "HumanplayerLoad",
"address": "004137A0",
"signature": "void HumanplayerLoad(void);",
"note": "Load Humanplayer.qvm file to memory."
}
},
{
"Native": {
"name": "InputDisable",
"address": "004157D0",
"signature": "void InputDisable(char* buffer);",
"note": "Disable input of player., Params: Buffer of size 30."
}
},
{
"Native": {
"name": "InputEnable",
"address": "00415830",
"signature": "void InputEnable(char* buffer);",
"note": "Enable input of player., Params: Buffer of size 30."
}
},
{
"Native": {
"name": "LogAdd",
"address": "004BBC30",
"signature": "void LogAdd(byte* log_msg);",
"note": "Add internal game log message., Params: message to log."
}
},
{
"Native": {
"name": "LevelLoad",
"address": "004F0E10",
"signature": "void LevelLoad(int level_path,int level_len);",
"note": "Load current level from level_path,Params: path: 0057B568, len: 0x1E."
}
},
{
"Native": {
"name": "LevelQuit",
"address": "00416550",
"signature": "void LevelQuit(void);",
"note": "Quit current level to mainmenu."
}
},
{
"Native": {
"name": "LevelRestart",
"address": "00416FE0",
"signature": "void LevelRestart(void);",
"note": "Restarts current level."
}
},
{
"Native": {
"name": "LevelStart",
"address": "00415B30",
"signature": "void LevelStart(int p1);",
"note": "Start new level, Params: p1: 0057BABC"
}
},
{
"Native": {
"name": "MenuManager",
"address": "00418B00",
"signature": "int* MenuManager(int p1,char *menu_str,char p3,char p4,int p5);",
"note": "MenuManager load for inagame or Mainmenu,Params: p1: 0057BABC ,p3,p4,p5: 0."
}
},
{
"Native": {
"name": "MusicDisable",
"address": "00415A60",
"signature": "void MusicDisable(char* buffer);",
"note": "Disable Game Music, Params: Buffer of size 30."
}
},
{
"Native": {
"name": "MusicEnable",
"address": "00415A10",
"signature": "void MusicEnable(char* buffer);",
"note": "Enable Game Music, Params: Buffer of size 30."
}
},
{
"Native": {
"name": "MusicSetSfxVolume",
"address": "00495F30",
"signature": "void MusicSetSfxVolume(float volume);",
"note": "Sets sound effect volume, Params: volume range [0.0 - 1.0]"
}
},
{
"Native": {
"name": "MusicSetVolume",
"address": "00495E70",
"signature": "void MusicSetVolume(float volume,float volume);",
"note": "Sets music volume., Params: volume range [0.0 - 1.0]"
}
},
{
"Native": {
"name": "MusicUpdateVolume",
"address": "004158E0",
"signature": "void MusicUpdateVolume(char* buffer);",
"note": "Update current music volume, Params: Buffer of size 30."
}
},
{
"Native": {
"name": "PhysicsObjTypeRead",
"address": "004EDFE0",
"signature": "void PhysicsObjTypeRead(char* cfg_file);",
"note": "Read Physics obj config file, Params: config file."
}
},
{
"Native": {
"name": "QhashInit",
"address": "004B0D60",
"signature": "void QHashInit(char hash_val);",
"note": "Init hash table value, Params: hash value 0 or 1."
}
},
{
"Native": {
"name": "QhashReset",
"address": "004B0D90",
"signature": "void QHashReset(void);",
"note": "Reset QTask type hash table."
}
},
{
"Native": {
"name": "QscCompile",
"address": "004B8410",
"signature": "void QscCompile(char* qsc_file);",
"note": "Compile QSC file to QVM, Params: QSC script file like 'LOCAL:objects.qsc'"
}
},
{
"Native": {
"name": "QtaskUpdate",
"address": "004F0E90",
"signature": "void QtaskUpdate(void);",
"note": "Update QTask hash table call before loading level."
}
},
{
"Native": {
"name": "QtaskUpdateList",
"address": "00401B20",
"signature": "void QtaskUpdateList(int* p1);",
"note": "Update all QTask list, Params: p1 ??"
}
},
{
"Native": {
"name": "QvmAssemble",
"address": "004BB270",
"signature": "int QvmAssemble(char *file_out,char *file_in);",
"note": "Assemble QAS assembler file, Params: Assemler source file like 'objects.qas'"
}
},
{
"Native": {
"name": "QvmCompile",
"address": "004B85B0",
"signature": "void QvmCompile(int file);",
"note": "Compile qvm file loaded in memory, Params: address of QVM file loaded from 'LoadResource' method."
}
},
{
"Native": {
"name": "QvmLoad",
"address": "004B80B0",
"signature": "int * QvmLoad(char *file_name);",
"note": "Compiles and Load any .qvm file into memory, Params: any qvm file name, Returns filename loaded."
}
},
{
"Native": {
"name": "QvmParse",
"address": "004BBCB0",
"signature": "int QvmParse(char *file_name,int mem_alloc_addr);",
"note": "Parse Assembler source file, Params: any QAS file name and Memory allocated by Mem_Alloc(), Returns status."
}
},
{
"Native": {
"name": "ResourceFlush",
"address": "004B63D0",
"signature": "void ResourceFlush(int* p1);",
"note": "Releases the current holding resources, Params: Params: p1 ??"
}
},
{
"Native": {
"name": "ResourceLoad",
"address": "004B5F00",
"signature": "int * ResourceLoad(char *resource_file,char **buffer)",
"note": "Load resource in Memory and Returns address of file., Params: resource file like 'sounds.res','AI/303.qvm'"
}
},
{
"Native": {
"name": "ResourceUnload",
"address": "004B6380",
"signature": "void ResourceUnload(int *resource_file);",
"note": "Unload resource loaded in memory, Params: resource file like 'sounds.qvm','AI/303.qvm'"
}
},
{
"Native": {
"name": "IsResourceLoaded",
"address": "004B5B90",
"signature": "int IsResourceLoaded(char *res_file,int *res_file_ptr);",
"note": "Check where resource is in loaded in memory, Params: resource 'sounds.qvm','AI/303.qvm' and address of res file"
}
},
{
"Native": {
"name": "ResourcePackUnpack",
"address": "004B18B0",
"signature": "int ResourcePackUnpack(char *res_file,char **buffer);",
"note": "Packs and return address or Unpacks resource file into memory depending upon resource type, Params: resource 'sounds.res','terrain.res', and buffer."
}
},
{
"Native": {
"name": "ResourceUnpack",
"address": "004B16D0",
"signature": "void ResourceUnpack(int* res_ptr, int res_addr, int res_size);",
"note": "Unpacks resource file into memory, Params: Resource ptr, address where to unpack (Allocate using Mem_Alloc) and size of resource."
}
},
{
"Native": {
"name": "ScriptInit",
"address": "004F0E50",
"signature": "void ScriptInit(char* file_name,int p2,int p3,int p4);",
"note": "Init script buffer for Assembler, Params: Use QvmLoad(file_name) first."
}
},
{
"Native": {
"name": "ScriptSetsymbolCxt",
"address": "004B8930",
"signature": "void ScriptSetsymbolCxt(byte *symbol_name,int** symbol_buf);",
"note": "Set symbol context before loading it, Params: symbol_name like 'TaskType_Set'."
}
},
{
"Native": {
"name": "StatusMessageClear",
"address": "00485AD0",
"signature": "void StatusMessageClear (char* buffer);",
"note": "Clear current status message from screen not from memory, Params: Buffer of size 30."
}
},
{
"Native": {
"name": "StatusMessageShow",
"address": "00485970",
"signature": "int* StatusMessageShow(int status_timer,char* msg,char *sprite,char *status_byte);",
"note": "Show status message on screen, Params: msg to show, sprite of msg, status_timer 0xA758AC, status_byte &0x567C74."
}
},
{
"Native": {
"name": "SymbolRemove",
"address": "004C0460",
"signature": "void SymbolRemove(int *p1,int *symbol_name);",
"note": "Remove symbol from memory, Params: symbol_name like 'TaskType_Set', p1 pointer ??"
}
},
{
"Native": {
"name": "TasktypeSet",
"address": "004B8810",
"signature": "void TasktypeSet(int** task_str,int task_id);",
"note": "Defines new constants for game and scripts ,Params: task_str (int**)WEAPONTYPE_PISTOL, task_id"
}
},
{
"Native": {
"name": "WarningShow",
"address": "004AF810",
"signature": "void WarningShow(char* warn_msg);",
"note": "Show warning message, Params: message to show."
}
},
{
"Native": {
"name": "WeaponConfigRead",
"address": "004071E0",
"signature": "int WeaponConfigRead(int p1,char *cfg_file);",
"note": "Read weapon config file into memory, Params: p1 is 0, cfg_file is 'weaponconfig.qvm'"
}
},
{
"Native": {
"name": "SymbolCheck",
"address": "004C0560",
"signature": "int * SymbolCheck(int *p1,int **symbol_name,int* p3);",
"note": "Check symbol in QTask list if already loaded, Params: symbol_name like 'TaskType_Set', p1,p3 ??"
}
},
{
"Native": {
"name": "GameDefineOptions",
"address": "004B8890",
"signature": "void GameDefineOptions(int **option_str,int option_func_addr,int opt1,int opt2);",
"note": "Define game options constants , Params: opt_str (int**)'DefineAmmoType'"
}
},
{
"Native": {
"name": "ScriptBufInit",
"address": "004C0200",
"signature": "void ScriptBufInit(int *buff_arr1,int buff_arr2,int buff,int buff_size);",
"note": "Init buffer for scripts, Params: buffers with last param as size."
}
},
{
"Native": {
"name": "SoundLoad",
"address": "004E68D0",
"signature": "void SoundLoad(char *sound_dir);",
"note": "Load all level sounds from path , Params: Path of sound like 'MISSION:sounds'"
}
},
{
"Native": {
"name": "MemoryAlloc",
"address": "004B0C60",
"signature": "uint MemAlloc(int num, int size);",
"note": "Allocate memory for game, Params: Check calloc() in c."
}
},
{
"Native": {
"name": "MemoryDealloc",
"address": "004B0BE0",
"signature": "uint MemDealloc(void);",
"note": "Deallocate allocated memory."
}
},
{
"Native": {
"name": "MissionOpen",
"address": "00484E60",
"signature": "void MissionOpen(char **ptr_file);",
"note": "Open current mission file , Params: Pointer to mission file."
}
},
{
"Native": {
"name": "FileOpen",
"address": "004A5350",
"signature": "void* FileOpen(const char* file,char *mode);",
"note": "Open file for reading or writing, Params: Check fopen() in c."
}
},
{
"Native": {
"name": "QFileOpen",
"address": "004B1510",
"signature": "void* QFileOpen(const char* file,char *mode);",
"note": "Open Qfile (QSC,QVM) for reading or writing, Params: Check fopen() in c."
}
},
{
"Native": {
"name": "RigidDyncubeObjRead",
"address": "004C48E0",
"signature": "void RigidDynCubeObjRead(uint *cfg_file);",
"note": "Read rigid dynCube config file , Params: config file of rigid dynCube."
}
},
{
"Native": {
"name": "MagicObjLoad",
"address": "004C4930",
"signature": "void MagicObjLoad(char *path);",
"note": "Loads magic objects from path, Params: Path 'LOCAL:magicobj'"
}
},
{
"Native": {
"name": "AnimTriggerLoad",
"address": "004EC0C0",
"signature": "void AnimTriggerLoad(char *path);",
"note": "Loads anim trigger objects from path, Params: Path 'LOCAL:animtrigger'"
}
},
{
"Native": {
"name": "PhysicsObjLoad",
"address": "004EE030",
"signature": "void PhysicsObjLoad(char *path);",
"note": "Loads physics objects from path, Params: Path 'LOCAL:physicsobj'"
}
},
{
"Native": {
"name": "AmmoTypeOpen",
"address": "0047CAB0",
"signature": "void AmmoTypeOpen(void);",
"note": "Open ammo qvm file to memory for all weapons loaded."
}
},
{
"Native": {
"name": "WeaponTypeOpen",
"address": "00413B70",
"signature": "void WeaponTypeOpen(void);",
"note": "Open all weapons defined in .qsc file for Humanplayer."
}
},
{
"Native": {
"name": "GameDataSymbolLoad",
"address": "004A53B3",
"signature": "int GameDataSymbolLoad(char* sym_buf,char* sym_path,char* sym_name);",
"note": "Load game data symbol to buffer for game like internal vairables,UI controls,timers etc. Params: like (buf,'LOCAL:models/%s.mef','000_02_1')"
}
},
{
"Native": {
"name": "GameDataSymbolRemove",
"address": "004B80A0",
"signature": "void GameDataSymbolRemove(char* sym_buf);",
"note": "Removes game data symbol for game like internal vairables,UI controls,timers etc."
}
},
{
"Native": {
"name": "SymbolRegisterBool8",
"address": "004B7EE0",
"signature": "void SymbolRegisterBool8(int **sym_buf,int sym_addr);",
"note": "Register new symbol of type 'Boolean' for game like internal vairables,UI controls,timers etc."
}
},
{
"Native": {
"name": "SymbolRegisterInt16",
"address": "004B7E80",
"signature": "void SymbolRegisterInt16(int **sym_buf,int sym_addr);",
"note": "Register new symbol of type 'Int16' for game like internal vairables,UI controls,timers etc."
}
},
{
"Native": {
"name": "SymbolRegisterInt32",
"address": "004B7FA0",
"signature": "void SymbolRegisterInt16(int **sym_buf,int sym_addr);",
"note": "Register new symbol of type 'Int32' for game like internal vairables,UI controls,timers etc."
}
},
{
"Native": {
"name": "SymbolRegisterReal32",
"address": "004B7FC0",
"signature": "void SymbolRegisterReal32(int **sym_buf,int sym_addr);",
"note": "Register new symbol of type 'Real32 aka Float' for game like internal vairables,UI controls,timers etc."
}
},
{
"Native": {
"name": "LoadingScreenShow",
"address": "0048A440",
"signature": "void LoadingScreenShow(int loading_type);",
"note": "Show menu loading screen before loading level."
}
},
{
"Native": {
"name": "QTaskHashTableSet",
"address": "004BAAC0",
"signature": "void QTaskHashTableSet(int **symbol,int ptr_func,int symbol_val,int p4,int p5,int p6,int p7)",
"note": "Main Hash Table for QTasks types for Objects(Guns,Ammo,Scripts,Variables etc) in whole game. HashTable is 70bytes long for each QTask."
}
},
{
"Native": {
"name": "WeaponsCountGet",
"address": "00413BB0",
"signature": "int WeaponsCountGet()",
"note": "Get total number of Weapons in game."
}
},
{
"Native": {
"name": "WeaponGunPickup",
"address": "0045FFC0",
"signature": "void WeaponGunPickup(int param_ptr, int* type_ptr)",
"note": "Weapon pickup from ground, Param: param_ptr is in defined in Constants as 'gun_pickup_ptr', set Weapon Id in type_ptr like *(0x19F720) = 5"
}
},
{
"Native": {
"name": "WeaponAmmoPickup",
"address": "0045FF80",
"signature": "void WeaponAmmoPickup(int param_ptr, int* type_ptr)",
"note": "Ammo pickup from ground, Param: param_ptr is in defined in Constants as 'gun_pickup_ptr', set Ammo Id in type_ptr like *(0x19F820) = 3"
}
},
{
"Native": {
"name": "PlayerXPHit",
"address": "00416D80",
"signature": "uint PlayerXPHit()",
"note": "Get Player XP Hit damage for current health."
}
},
{
"Native": {
"name": "HumanViewCam",
"address": "00463760",
"signature": "void HumanViewCam(int soldier_ptr,int cam_type)",
"note": "Camera view for Human Player/Soldier , Param: soldier_ptr is pointer to Entity you are changing and cam_type is [1-6]"
}
},
{
"Native": {
"name": "HumanTaskViewReset",
"address": "004659E0",
"signature": "void HumanTaskViewReset(int human_ptr)",
"note": "Reset Human view angle after changing it by Zoom (Dragunov,Binoculars). "
}
},
{
"Native": {
"name": "IsPlayerProfileActive",
"address": "00406220",
"signature": "char* IsPlayerProfileActive()",
"note": "Checks if current player profle is active."
}
},
{
"Native": {
"name": "SoldierExecute",
"address": "0045C440",
"signature": "void SoldierExecute(int ptr, int addr)",
"note": "Execute current soldier in level, Param: ptr = (addr+0x2EC) and soldier address."
}
}
]
}