Skip to content

Commit

Permalink
Merge pull request #245 from Mr0maks/fix_random_in_ar2
Browse files Browse the repository at this point in the history
Fix ViewPunch random for AR2
  • Loading branch information
Blixibon authored Oct 25, 2023
2 parents 8280197 + cbb119b commit 8e9020c
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 8e9020c

Please sign in to comment.