Skip to content

Commit

Permalink
Small projectile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sardelka9515 committed Aug 18, 2022
1 parent 4908028 commit be13e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RageCoop.Client/Sync/EntityPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ public static void DoSync()
if (p.MainProjectile.AttachedEntity==null)
{
// Prevent projectiles from exploding next to vehicle
if (p.WeaponHash==(WeaponHash)VehicleWeaponHash.Tank )
if (p.WeaponHash==(WeaponHash)VehicleWeaponHash.Tank || p.MainProjectile.Position.DistanceTo(p.Origin)<2)
{
continue;
}
Expand Down

0 comments on commit be13e0d

Please sign in to comment.