Skip to content

Commit

Permalink
Fix ViewPunch random for AR2
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr0maks committed Aug 25, 2023
1 parent f4c2cb4 commit cbb119b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mp/src/game/shared/hl2mp/weapon_ar2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ void CWeaponAR2::DelayedAttack( void )

// pOwner->SnapEyeAngles( angles );

pOwner->ViewPunch( QAngle( SharedRandomInt( "ar2pax", -8, -12 ), SharedRandomInt( "ar2pay", 1, 2 ), 0 ) );
pOwner->ViewPunch( QAngle( SharedRandomInt( "ar2pax", -12, -8 ), SharedRandomInt( "ar2pay", 1, 2 ), 0 ) );

// Decrease ammo
pOwner->RemoveAmmo( 1, m_iSecondaryAmmoType );
Expand Down
2 changes: 1 addition & 1 deletion sp/src/game/shared/hl2mp/weapon_ar2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ void CWeaponAR2::DelayedAttack( void )

// pOwner->SnapEyeAngles( angles );

pOwner->ViewPunch( QAngle( SharedRandomInt( "ar2pax", -8, -12 ), SharedRandomInt( "ar2pay", 1, 2 ), 0 ) );
pOwner->ViewPunch( QAngle( SharedRandomInt( "ar2pax", -12, -8 ), SharedRandomInt( "ar2pay", 1, 2 ), 0 ) );

// Decrease ammo
pOwner->RemoveAmmo( 1, m_iSecondaryAmmoType );
Expand Down

0 comments on commit cbb119b

Please sign in to comment.