Spray nozzle can suck puddles into tank directly! (#30600)

* feat: now vacuum cleaner can suck solutions from floor

* refactor using AbsorbentSystem instead of separate vacuum cleaner

* refactor: remove unused vacuum cleaner files

* refactor: renamed ConnectedContainerComponent to SlotBasedConnectedContainerComponent (and system)

* fix: fix invalid comp name

* fix: no more spray nozzle messaging about water inside bottles etc.

* refactor: minor refactor in SlotBasedConnectedContainerSystem and adjustments after merge

* refactor: cleanups

* refactor: renaming

* refactor: update to use _puddleSystem.GetAbsorbentReagents

* refactor: changed interactions with SlotBasedConnectedContainerSystem into events

* refactor: new sound and action delay adjusted to sound (amount tweaked a bit accordingly, almost)

* refactor: added networking for SlotBasedConnectedContainerComponent

* fix attribution for vacuum-cleaner-fast.ogg

* trying to fix multi-license for mix sound file

* remove empty line

* refactor: remove trailing whitespace

* by ref struct, brother

---------

Co-authored-by: pa.pecherskij <pa.pecherskij@interfax.ru>
Co-authored-by: EmoGarbage404 <retron404@gmail.com>
This commit is contained in:
Fildrance
2025-05-26 06:36:16 +03:00
committed by GitHub
parent d1370de758
commit 291ccfbe23
14 changed files with 221 additions and 84 deletions

View File

@@ -34,6 +34,7 @@
size: Large
sprite: Objects/Specific/Janitorial/mop.rsi
- type: Absorbent
useAbsorberSolution: true
- type: SolutionContainerManager
solutions:
absorbed:
@@ -89,6 +90,7 @@
sprite: Objects/Specific/Janitorial/advmop.rsi
- type: Absorbent
pickupAmount: 100
useAbsorberSolution: true
- type: UseDelay
delay: 1.0
- type: SolutionRegeneration
@@ -322,6 +324,7 @@
sprite: Objects/Specific/Janitorial/rag.rsi
- type: Absorbent
pickupAmount: 15
useAbsorberSolution: true
- type: Construction
graph: Rag
node: rag

View File

@@ -21,9 +21,18 @@
- FullAuto
soundGunshot:
path: /Audio/Weapons/Guns/Gunshots/water_spray.ogg
- type: Absorbent
pickupAmount: 35
solutionName: tank
useAbsorberSolution: false
pickupSound:
path: /Audio/Effects/Fluids/vacuum-cleaner-fast.ogg
- type: Appearance
- type: ClothingSlotAmmoProvider
- type: SlotBasedConnectedContainer
targetSlot: BACK
providerWhitelist:
containerWhitelist:
tags:
- NozzleBackTank
- type: UseDelay
delay: 1.0