Adds Spray Bottles (#1522)

* Spray Bottle

* -"Proper" wall detection
-Removed some using
-Fixed sound

* Just don't add it

* -Removed spill sound
-Added sound parameter to SpillHelper.SpillAt

* Now spawns Vapor instead of Puddles instantly

* -Review
-Nullable

* Reworkkkk

* AABB shittery

Co-authored-by: Víctor Aguilera Puerto <6766154+Zumorica@users.noreply.github.com>
This commit is contained in:
Exp
2020-08-08 14:33:36 +02:00
committed by GitHub
parent 322c2261b6
commit b4f08811eb
10 changed files with 312 additions and 5 deletions

Binary file not shown.

View File

@@ -174,3 +174,24 @@
state: soapomega
- type: Slippery
paralyzeTime: 7
- type: entity
name: spray bottle
id: SprayBottle
parent: BaseItem
description: A spray bottle with an unscrewable top.
components:
- type: Sprite
texture: Objects/Specific/Janitorial/cleaner.png
- type: Icon
texture: Objects/Specific/Janitorial/cleaner.png
- type: Solution
maxVol: 100
caps: 1
- type: Pourable
transferAmount: 5.0
- type: CanSpill
- type: Spray
transferAmount: 10
sprayVelocity: 5
spraySound: /Audio/Effects/spray.ogg

View File

@@ -6,3 +6,21 @@
components:
- type: Solution
maxVol: 5
- type: entity
id: Vapor
name: "vapor"
abstract: true
components:
- type: SnapGrid
offset: Center
- type: Solution
maxVol: 50
- type: Vapor
- type: Physics
- type: Collidable
shapes:
- !type:PhysShapeAabb
bounds: "-0.25,-0.25,0.25,0.25"
mask:
- Impassable

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 B