Fixed stinger grenade lag spikes (#36641)
* Fixed stinger lag spikes * Simplify nullable checks * More cleanup of projectile grenades * Remove null default from ShootProjectile
This commit is contained in:
@@ -77,7 +77,7 @@ public sealed class ProjectileGrenadeSystem : EntitySystem
|
||||
// slightly uneven, doesn't really change much, but it looks better
|
||||
var direction = angle.ToVec().Normalized();
|
||||
var velocity = _random.NextVector2(component.MinVelocity, component.MaxVelocity);
|
||||
_gun.ShootProjectile(contentUid, direction, velocity, uid, null);
|
||||
_gun.ShootProjectile(contentUid, direction, velocity, null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user