Incendiary projectiles and lava firestack reduction (#23479)
* Firestack reduction and FireStackOnHit added * Slight lava tweak * Remove component and tweaked incendiary pellets * Incendiary grenade tweak * Now ignites on projectile fixture or ignition fixture + incendiary grenade tweak * flare shells now ignite entities again * Comment * undo flare gun ignite
This commit is contained in:
@@ -13,6 +13,7 @@ using Content.Shared.Database;
|
||||
using Content.Shared.Interaction;
|
||||
using Content.Shared.Physics;
|
||||
using Content.Shared.Popups;
|
||||
using Content.Shared.Projectiles;
|
||||
using Content.Shared.Rejuvenate;
|
||||
using Content.Shared.Temperature;
|
||||
using Content.Shared.Throwing;
|
||||
@@ -102,6 +103,12 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
if (!EntityManager.TryGetComponent(otherEnt, out FlammableComponent? flammable))
|
||||
return;
|
||||
|
||||
//Only ignite when the colliding fixture is projectile or ignition.
|
||||
if (args.OurFixtureId != component.FixtureId && args.OurFixtureId != SharedProjectileSystem.ProjectileFixture)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
flammable.FireStacks += component.FireStacks;
|
||||
Ignite(otherEnt, uid, flammable);
|
||||
component.Count--;
|
||||
|
||||
Reference in New Issue
Block a user