[entity] Mega Spray Bottle (#15558)
This commit is contained in:
@@ -63,7 +63,7 @@ namespace Content.Server.Chemistry.EntitySystems
|
|||||||
_physics.SetLinearDamping(physics, 0f);
|
_physics.SetLinearDamping(physics, 0f);
|
||||||
_physics.SetAngularDamping(physics, 0f);
|
_physics.SetAngularDamping(physics, 0f);
|
||||||
|
|
||||||
_throwing.TryThrow(vapor.Owner, dir * speed, user: user, pushbackRatio: 50f);
|
_throwing.TryThrow(vapor.Owner, dir * speed, speed, user: user, pushbackRatio: 50f);
|
||||||
|
|
||||||
var distance = (target.Position - vaporXform.WorldPosition).Length;
|
var distance = (target.Position - vaporXform.WorldPosition).Length;
|
||||||
var time = (distance / physics.LinearVelocity.Length);
|
var time = (distance / physics.LinearVelocity.Length);
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ technologies-cleaning-technology = Cleaning technology
|
|||||||
technologies-cleaning-technology-description = Start to a shiny clean station.
|
technologies-cleaning-technology-description = Start to a shiny clean station.
|
||||||
|
|
||||||
technologies-advanced-cleaning-technology = Advanced cleaning technology
|
technologies-advanced-cleaning-technology = Advanced cleaning technology
|
||||||
technologies-advanced-cleaning-technology-description = Advanced mop won't stop people from trashing the station, sadly.
|
technologies-advanced-cleaning-technology-description = Advanced tools won't stop people from trashing the station, sadly.
|
||||||
|
|
||||||
technologies-foodbev-technology = Food and beverage technology
|
technologies-foodbev-technology = Food and beverage technology
|
||||||
technologies-food-and-beverage-technology-description = Robust service from better technology.
|
technologies-food-and-beverage-technology-description = Robust service from better technology.
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
- Bucket
|
- Bucket
|
||||||
- MopItem
|
- MopItem
|
||||||
- SprayBottle
|
- SprayBottle
|
||||||
|
|
||||||
- type: technology
|
- type: technology
|
||||||
name: technologies-advanced-cleaning-technology
|
name: technologies-advanced-cleaning-technology
|
||||||
id: AdvancedCleaningTechnology
|
id: AdvancedCleaningTechnology
|
||||||
@@ -37,10 +38,10 @@
|
|||||||
state: advmop
|
state: advmop
|
||||||
requiredPoints: 5000
|
requiredPoints: 5000
|
||||||
requiredTechnologies:
|
requiredTechnologies:
|
||||||
- BasicResearch
|
|
||||||
- CleaningTechnology
|
- CleaningTechnology
|
||||||
unlockedRecipes:
|
unlockedRecipes:
|
||||||
- AdvMopItem
|
- AdvMopItem
|
||||||
|
- MegaSprayBottle
|
||||||
|
|
||||||
# Food/Bev Service Technology Tree
|
# Food/Bev Service Technology Tree
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
- type: DrainableSolution
|
- type: DrainableSolution
|
||||||
solution: spray
|
solution: spray
|
||||||
- type: SolutionTransfer
|
- type: SolutionTransfer
|
||||||
|
canChangeTransferAmount: true
|
||||||
- type: ItemCooldown
|
- type: ItemCooldown
|
||||||
- type: Spray
|
- type: Spray
|
||||||
transferAmount: 10
|
transferAmount: 10
|
||||||
@@ -33,6 +34,29 @@
|
|||||||
- type: TrashOnEmpty
|
- type: TrashOnEmpty
|
||||||
solution: spray
|
solution: spray
|
||||||
|
|
||||||
|
- type: entity
|
||||||
|
name: mega spray bottle
|
||||||
|
id: MegaSprayBottle
|
||||||
|
parent: SprayBottle
|
||||||
|
suffix: Empty
|
||||||
|
description: A huge spray bottle, capable of unrivaled janitorial power.
|
||||||
|
components:
|
||||||
|
- type: Sprite
|
||||||
|
netsync: false
|
||||||
|
sprite: Objects/Specific/Janitorial/janitorial.rsi
|
||||||
|
state: cleaner_large
|
||||||
|
- type: SolutionContainerManager
|
||||||
|
solutions:
|
||||||
|
spray:
|
||||||
|
maxVol: 250
|
||||||
|
- type: Spray
|
||||||
|
sprayedPrototype: BigVapor
|
||||||
|
transferAmount: 10
|
||||||
|
sprayVelocity: 5
|
||||||
|
sprayAliveTime: 1.5
|
||||||
|
spraySound:
|
||||||
|
path: /Audio/Effects/spray2.ogg
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: spray bottle
|
name: spray bottle
|
||||||
id: SprayBottleWater
|
id: SprayBottleWater
|
||||||
@@ -102,3 +126,26 @@
|
|||||||
- Opaque
|
- Opaque
|
||||||
- type: Appearance
|
- type: Appearance
|
||||||
- type: VaporVisuals
|
- type: VaporVisuals
|
||||||
|
|
||||||
|
- type: entity
|
||||||
|
id: BigVapor
|
||||||
|
parent: Vapor
|
||||||
|
noSpawn: true
|
||||||
|
components:
|
||||||
|
- type: Sprite
|
||||||
|
netsync: false
|
||||||
|
sprite: Effects/chempuff.rsi
|
||||||
|
rotation: 90
|
||||||
|
layers:
|
||||||
|
- state: chempuff
|
||||||
|
scale: 2, 2
|
||||||
|
map: ["enum.VaporVisualLayers.Base"]
|
||||||
|
- type: Fixtures
|
||||||
|
fixtures:
|
||||||
|
- shape:
|
||||||
|
!type:PhysShapeAabb
|
||||||
|
bounds: "-0.6,-0.6,0.6,0.6"
|
||||||
|
hard: false
|
||||||
|
mask:
|
||||||
|
- FullTileMask
|
||||||
|
- Opaque
|
||||||
|
|||||||
@@ -221,6 +221,7 @@
|
|||||||
- MopItem
|
- MopItem
|
||||||
- AdvMopItem
|
- AdvMopItem
|
||||||
- SprayBottle
|
- SprayBottle
|
||||||
|
- MegaSprayBottle
|
||||||
- FireExtinguisher
|
- FireExtinguisher
|
||||||
- KitchenKnife
|
- KitchenKnife
|
||||||
- ButchCleaver
|
- ButchCleaver
|
||||||
|
|||||||
@@ -27,6 +27,13 @@
|
|||||||
materials:
|
materials:
|
||||||
Plastic: 100
|
Plastic: 100
|
||||||
|
|
||||||
|
- type: latheRecipe
|
||||||
|
id: MegaSprayBottle
|
||||||
|
result: MegaSprayBottle
|
||||||
|
completetime: 3
|
||||||
|
materials:
|
||||||
|
Plastic: 250
|
||||||
|
|
||||||
- type: latheRecipe
|
- type: latheRecipe
|
||||||
id: SprayBottle
|
id: SprayBottle
|
||||||
result: SprayBottle
|
result: SprayBottle
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 436 B |
@@ -10,6 +10,9 @@
|
|||||||
{
|
{
|
||||||
"name": "cleaner"
|
"name": "cleaner"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "cleaner_large"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "mopbucket"
|
"name": "mopbucket"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user