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:
BIN
Resources/Audio/Effects/spray.ogg
Normal file
BIN
Resources/Audio/Effects/spray.ogg
Normal file
Binary file not shown.
@@ -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
|
||||
|
||||
@@ -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
|
||||
BIN
Resources/Textures/Objects/Specific/Janitorial/cleaner.png
Normal file
BIN
Resources/Textures/Objects/Specific/Janitorial/cleaner.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 411 B |
Reference in New Issue
Block a user