2018-08-19 09:46:58 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "..\Global\global.h"
|
|
|
|
|
2019-12-02 09:11:21 +01:00
|
|
|
//#define SmashObject ((int (__cdecl*)(short)) 0x00465200)
|
2019-12-01 08:13:19 +01:00
|
|
|
//#define FindTargetPoint ((void (__cdecl*)(ITEM_INFO*, GAME_VECTOR*)) 0x004533A0)
|
2019-12-02 09:11:21 +01:00
|
|
|
//#define HitTarget ((short (__cdecl*)(ITEM_INFO*, GAME_VECTOR*, int, int)) 0x00453930)
|
|
|
|
#define DoProperDetection ((void (__cdecl*)(short, int, int, int, int, int)) 0x00453BE0)
|
2019-12-22 19:01:36 +01:00
|
|
|
//#define DoFlameTorch ((void (__cdecl*)()) 0x00433EA0)
|
2019-12-02 09:11:21 +01:00
|
|
|
//#define GetAmmo ((int (__cdecl*)(int)) 0x004546C0)
|
2018-11-15 18:39:13 +01:00
|
|
|
#define LaraGetNewTarget ((void (__cdecl*)(WEAPON_INFO*)) 0x00452ED0)
|
2019-12-01 08:13:19 +01:00
|
|
|
//#define LaraTargetInfo ((void (__cdecl*)(WEAPON_INFO*)) 0x00452CC0)
|
2019-12-22 19:01:36 +01:00
|
|
|
//#define TorchControl ((void (__cdecl*)(short)) 0x00434390)
|
2019-12-02 09:11:21 +01:00
|
|
|
//#define FireWeapon ((int (__cdecl*)(int,ITEM_INFO*,ITEM_INFO*,short*)) 0x00453580)
|
2018-11-01 09:10:32 +01:00
|
|
|
|
|
|
|
extern WEAPON_INFO Weapons[NUM_WEAPONS];
|
2018-08-19 09:46:58 +02:00
|
|
|
|
2019-12-02 14:49:19 +01:00
|
|
|
void SmashItem(short itemNum);
|
|
|
|
int WeaponObject(int weaponType);
|
|
|
|
void LaraGun();
|
|
|
|
short* GetAmmo(int weaponType);
|
|
|
|
void InitialiseNewWeapon();
|
|
|
|
int WeaponObjectMesh(int weaponType);
|
|
|
|
void AimWeapon(WEAPON_INFO* winfo, LARA_ARM* arm);
|
|
|
|
void HitTarget(ITEM_INFO* item, GAME_VECTOR* hitPos, int damage, int flag);
|
|
|
|
int FireWeapon(int weaponType, ITEM_INFO* target, ITEM_INFO* src, short* angles);
|
|
|
|
void find_target_point(ITEM_INFO* item, GAME_VECTOR* target);
|
|
|
|
void LaraTargetInfo(WEAPON_INFO* weapon);
|
2019-12-04 18:51:23 +01:00
|
|
|
int CheckForHoldingState(int state);
|
2018-08-19 09:46:58 +02:00
|
|
|
|
|
|
|
void Inject_LaraFire();
|