mirror of
https://github.com/DrBeef/RTCWQuest.git
synced 2025-04-22 23:11:02 +00:00
Prevent enemy pistol fire triggering recoil on the player's pistol
This commit is contained in:
parent
dba88780fd
commit
08ef6278e1
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue