mirror of
https://github.com/halpz/re3.git
synced 2025-06-29 11:36:25 +00:00
Merge branch 'master' into master
This commit is contained in:
@ -35,6 +35,12 @@ CWeapon::Reload(void)
|
||||
m_nAmmoInClip = m_nAmmoTotal;
|
||||
}
|
||||
|
||||
bool
|
||||
CWeapon::IsTypeMelee(void)
|
||||
{
|
||||
return m_eWeaponType == WEAPONTYPE_UNARMED || m_eWeaponType == WEAPONTYPE_BASEBALLBAT;
|
||||
}
|
||||
|
||||
STARTPATCHES
|
||||
InjectHook(0x55C330, &CWeapon::Initialise, PATCH_JUMP);
|
||||
InjectHook(0x5639D0, &CWeapon::Reload, PATCH_JUMP);
|
||||
|
@ -64,5 +64,6 @@ public:
|
||||
void Reload(void);
|
||||
bool Fire(CEntity*, CVector*);
|
||||
void AddGunshell(CEntity*, CVector const&, CVector2D const&, float);
|
||||
bool IsTypeMelee(void);
|
||||
};
|
||||
static_assert(sizeof(CWeapon) == 0x18, "CWeapon: error");
|
||||
|
Reference in New Issue
Block a user