Prevent enemy pistol fire triggering recoil on the player's pistol

This commit is contained in:
Simon 2020-12-14 21:17:18 +00:00
parent dba88780fd
commit 08ef6278e1

View file

@ -1955,18 +1955,18 @@ void FireWeapon( gentity_t *ent ) {
break;
case WP_LUGER:
Bullet_Fire( ent, LUGER_SPREAD * aimSpreadScale, LUGER_DAMAGE );
if (gVR)
if (gVR && !( ent->r.svFlags & SVF_CASTAI )) // only recoil the weapon if this is the player
gVR->weapon_recoil = WEAPON_RECOIL;
break;
case WP_SILENCER:
Bullet_Fire( ent, SILENCER_SPREAD * aimSpreadScale, LUGER_DAMAGE );
if (gVR)
if (gVR && !( ent->r.svFlags & SVF_CASTAI )) // only recoil the weapon if this is the player
gVR->weapon_recoil = WEAPON_RECOIL;
break;
case WP_AKIMBO: //----(SA) added
case WP_COLT:
Bullet_Fire( ent, COLT_SPREAD * aimSpreadScale, COLT_DAMAGE );
if (gVR)
if (gVR && !( ent->r.svFlags & SVF_CASTAI )) // only recoil the weapon if this is the player
gVR->weapon_recoil = WEAPON_RECOIL;
break;
case WP_VENOM: