Add a fire extinguisher (#1685)
* added a lantern * Add A Lantern with radiating light * Added a GasVapor system and made a base for extinguisher spray. * switched to using solution component for fire extinguisher * made it so fire extinguisher's can run out of water vapor * Added actual Gas to Gas Vapor, now getting atmosphere for touched tiles. * Made it so gasVapor reacts and dissapates on reacting * GasVapor now dissapates exponentially while traveling * Added in-hands for fire extinguisher * Added Spraysound to gasSprayer and to fire extinguisher prototype * parameterized GasSprayer and GasVapor * removed un-used imports in gasSprayer and gasVapor components and systems * removed accidential threading import into gasmixturecomponent * add a shared extinguisher component for extinguisher spray rotation instead of piggy-backing on RogueArrow * paremeterized fuelCost and fuel name in GasSprayerComponent * Paremeterized gasAmount, removed un-used code from gasVaporComponent * Removed BaseItem Parent from Extinguisher_spray * added GasVapor and GasSprayer to Ingored Components list * reduced offset of spawned extinguisher vapor from player * Update IgnoredComponents.cs * renamed SharedExtinguisherComponent to SharedGasSprayerComponent and removed reference to RoguePointingArrow * renamed shareExtinguisherComponent to SharedGasSprayerComponent * Update Content.Server/Atmos/GasSprayerComponent.cs Added check for solution component on GasSprayer. Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com> * Update Content.Server/Atmos/GasSprayerComponent.cs Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
This commit is contained in:
20
Content.Server/GameObjects/EntitySystems/GasVaporSystem.cs
Normal file
20
Content.Server/GameObjects/EntitySystems/GasVaporSystem.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Content.Server.Atmos;
|
||||
using Robust.Shared.GameObjects.Systems;
|
||||
|
||||
namespace Content.Server.GameObjects.EntitySystems
|
||||
{
|
||||
public class GasVaporSystem : EntitySystem
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void Update(float frameTime)
|
||||
{
|
||||
foreach (var GasVapor in ComponentManager.EntityQuery<GasVaporComponent>())
|
||||
{
|
||||
if (GasVapor.Initialized)
|
||||
{
|
||||
GasVapor.Update(frameTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user