Small projectile fix

This commit is contained in:
Sardelka9515
2022-08-18 08:43:10 +08:00
parent 490802862a
commit be13e0d102

View File

@ -343,7 +343,7 @@ namespace RageCoop.Client
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;
}