feat(CustomWeapons): deactivate when weapon is holstered (#1231)

This commit is contained in:
Rxann
2023-04-15 17:17:43 -04:00
committed by GitHub
parent 287f231361
commit be8b7b76a2
8 changed files with 21 additions and 13 deletions

View File

@ -8,7 +8,7 @@ namespace big
{
void looped::weapons_delete_gun()
{
if (const bool bDeleteGun = g.weapons.custom_weapon == CustomWeapon::DELETE_GUN; bDeleteGun)
if (const bool bDeleteGun = g.weapons.custom_weapon == CustomWeapon::DELETE_GUN; bDeleteGun && (!g.self.custom_weapon_stop || WEAPON::IS_PED_ARMED(self::ped, 4 | 2)))
{
if (PAD::IS_DISABLED_CONTROL_PRESSED(0, (int)ControllerInputs::INPUT_AIM))
{