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:
@@ -0,0 +1,28 @@
|
||||
- type: entity
|
||||
name: Extinguisher Spray
|
||||
id: ExtinguisherSpray
|
||||
description: Extinguisher Spray
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: Effects/extinguisherSpray.rsi
|
||||
layers:
|
||||
- state: extinguish
|
||||
- type: Icon
|
||||
sprite: Effects/extinguisherSpray.rsi
|
||||
state: extinguish
|
||||
- type: GasVapor
|
||||
dissipationInterval: 1
|
||||
gas: WaterVapor
|
||||
gasVolume: 200
|
||||
gasTemperature: 293.15
|
||||
gasAmount: 20
|
||||
- type: Physics
|
||||
- type: Collidable
|
||||
shapes:
|
||||
- !type:PhysShapeAabb
|
||||
bounds: "-0.25,-0.25,0.25,0.25"
|
||||
mask:
|
||||
- Impassable
|
||||
- type: Appearance
|
||||
visuals:
|
||||
- type: ExtinguisherVisualizer
|
||||
@@ -4,9 +4,26 @@
|
||||
id: FireExtinguisher
|
||||
description: Extinguishes fires.
|
||||
components:
|
||||
- type: Sprite
|
||||
texture: Objects/Misc/fire_extinguisher.png
|
||||
- type: Icon
|
||||
texture: Objects/Misc/fire_extinguisher.png
|
||||
- type: Item
|
||||
size: 10
|
||||
- type: Sprite
|
||||
sprite: Objects/Misc/fire_extinguisher.rsi
|
||||
layers:
|
||||
- state: fire_extinguisher_open
|
||||
- type: Icon
|
||||
sprite: Objects/Misc/fire_extinguisher.rsi
|
||||
state: fire_extinguisher_open
|
||||
- type: Item
|
||||
sprite: Objects/Misc/fire_extinguisher.rsi
|
||||
size: 10
|
||||
- type: Solution
|
||||
maxVol: 1000
|
||||
caps: 9
|
||||
contents:
|
||||
reagents:
|
||||
- ReagentId: chem.H2O
|
||||
Quantity: 1000
|
||||
- type: GasSprayer
|
||||
spraySound: /Audio/Effects/spray.ogg
|
||||
sprayType: ExtinguisherSpray
|
||||
fuelType: chem.H2O
|
||||
fuelName: water
|
||||
fuelCost: 50
|
||||
|
||||
Reference in New Issue
Block a user