mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-18 17:34:09 +00:00
parent
18de44e038
commit
f9316d9cc3
13 changed files with 1046 additions and 815 deletions
|
@ -45,7 +45,7 @@ CWeapon::Reload(void)
|
|||
bool
|
||||
CWeapon::IsType2Handed(void)
|
||||
{
|
||||
return m_eWeaponType >= WEAPONTYPE_SHOTGUN && m_eWeaponType <= WEAPONTYPE_FLAMETHROWER && m_eWeaponType != WEAPONTYPE_ROCKETLAUNCHER;
|
||||
return m_eWeaponType >= WEAPONTYPE_SHOTGUN && m_eWeaponType <= WEAPONTYPE_FLAMETHROWER && m_eWeaponType != WEAPONTYPE_ROCKETLAUNCHER;
|
||||
}
|
||||
|
||||
bool
|
||||
|
@ -88,8 +88,20 @@ CWeapon::HitsGround(CEntity *holder, CVector *firePos, CEntity *aimingTo)
|
|||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
CWeapon::HasWeaponAmmoToBeUsed(void)
|
||||
{
|
||||
switch (m_eWeaponType) {
|
||||
case WEAPONTYPE_UNARMED:
|
||||
case WEAPONTYPE_BASEBALLBAT:
|
||||
return true;
|
||||
default:
|
||||
return m_nAmmoTotal != 0;
|
||||
}
|
||||
}
|
||||
|
||||
STARTPATCHES
|
||||
InjectHook(0x55C330, &CWeapon::Initialise, PATCH_JUMP);
|
||||
InjectHook(0x5639D0, &CWeapon::Reload, PATCH_JUMP);
|
||||
InjectHook(0x564890, &CWeapon::HitsGround, PATCH_JUMP);
|
||||
ENDPATCHES
|
||||
ENDPATCHES
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue