Cluster grenade refactor and contra markings (#31108)

* Cluster grenade refactor

* oopsies on the name

* Solve client-side errors

* reviews addressed

* filling scattering grenades is now predicted

* reviews addressed
This commit is contained in:
Plykiya
2024-12-16 04:08:07 -08:00
committed by GitHub
parent 1266b05b02
commit a4d6f09a4f
14 changed files with 757 additions and 558 deletions

View File

@@ -34,6 +34,11 @@ public sealed class RequireProjectileTargetSystem : EntitySystem
if (!shooter.HasValue)
return;
// ProjectileGrenades delete the entity that's shooting the projectile,
// so it's impossible to check if the entity is in a container
if (TerminatingOrDeleted(shooter.Value))
return;
if (!_container.IsEntityOrParentInContainer(shooter.Value))
args.Cancelled = true;
}