mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-09 10:30:34 +00:00
bit more CAutomobile
This commit is contained in:
parent
07c6c7d0a2
commit
e9cafe340a
9 changed files with 219 additions and 18 deletions
|
@ -5,7 +5,9 @@
|
|||
#include "WeaponInfo.h"
|
||||
|
||||
WRAPPER bool CWeapon::Fire(CEntity*, CVector*) { EAXJMP(0x55C380); }
|
||||
WRAPPER void CWeapon::FireFromCar(CAutomobile *car, bool left) { EAXJMP(0x55C940); }
|
||||
WRAPPER void CWeapon::AddGunshell(CEntity*, CVector const&, CVector2D const&, float) { EAXJMP(0x55F770); }
|
||||
WRAPPER void CWeapon::Update(int32 audioEntity) { EAXJMP(0x563A10); }
|
||||
|
||||
void
|
||||
CWeapon::Initialise(eWeaponType type, int ammo)
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#pragma once
|
||||
#include "Entity.h"
|
||||
|
||||
enum eWeaponType
|
||||
{
|
||||
|
@ -46,6 +45,9 @@ enum eWeaponState
|
|||
WEAPONSTATE_MELEE_MADECONTACT
|
||||
};
|
||||
|
||||
class CEntity;
|
||||
class CAutomobile;
|
||||
|
||||
class CWeapon
|
||||
{
|
||||
public:
|
||||
|
@ -61,8 +63,10 @@ public:
|
|||
}
|
||||
|
||||
void Initialise(eWeaponType type, int ammo);
|
||||
void Update(int32 audioEntity);
|
||||
void Reload(void);
|
||||
bool Fire(CEntity*, CVector*);
|
||||
void FireFromCar(CAutomobile *car, bool left);
|
||||
void AddGunshell(CEntity*, CVector const&, CVector2D const&, float);
|
||||
bool IsTypeMelee(void);
|
||||
bool IsType2Handed(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue