disposal unit 
Vars | |
| active_power_usage | The pneumatic pump power. 3 HP ~ 2200W |
|---|---|
| broken | Used for cosmetic broken disposal units. |
| flush | True if flush handle is pulled |
| flush_after_ticks | After 10 ticks it will look whether it is ready to flush |
| flush_count | This var adds 1 once per tick. When it reaches flush_after_ticks it resets and tries to flush. |
| flushing | True if flushing in progress |
| mode | Item mode 0=off 1=charging 2=charged |
| narrow_tube | Whether the disposals tube is too narrow for a mob to fit into. |
| trunk | The attached pipe trunk |
Procs | |
| Initialize | Create a new disposal, find the attached trunk (if present) and init gas resvr. |
| MouseDrop_T | Mouse drop another mob or self |
| attack_hand | Human interact with machine |
| attackby | Attack by item places it in to disposal |
| eject | Eject the contents of the disposal unit |
| ex_act | Pipe affected by explosion |
| expel | Called when holder is expelled from a disposal, should usually only occur if the pipe network is modified |
| flush | Perform a flush |
| go_out | Leave the disposal |
| power_change | Called when area power changes |
| process | Timed process, charge the gas reservoir and perform flush if ready |
| relaymove | Attempt to move while inside |
| update | Update the icon & overlays to reflect mode & status |
Var Details
active_power_usage 
The pneumatic pump power. 3 HP ~ 2200W
broken 
Used for cosmetic broken disposal units.
flush 
True if flush handle is pulled
flush_after_ticks 
After 10 ticks it will look whether it is ready to flush
flush_count 
This var adds 1 once per tick. When it reaches flush_after_ticks it resets and tries to flush.
flushing 
True if flushing in progress
mode 
Item mode 0=off 1=charging 2=charged
narrow_tube 
Whether the disposals tube is too narrow for a mob to fit into.
trunk 
The attached pipe trunk
Proc Details
Initialize
Create a new disposal, find the attached trunk (if present) and init gas resvr.
MouseDrop_T
Mouse drop another mob or self
attack_hand
Human interact with machine
attackby
Attack by item places it in to disposal
eject
Eject the contents of the disposal unit
ex_act
Pipe affected by explosion
expel
Called when holder is expelled from a disposal, should usually only occur if the pipe network is modified
flush
Perform a flush
go_out
Leave the disposal
power_change
Called when area power changes
process
Timed process, charge the gas reservoir and perform flush if ready
relaymove
Attempt to move while inside
update
Update the icon & overlays to reflect mode & status