byond - Modules - TypesVar Details - Proc Details

disposal unit

Vars

active_power_usageThe pneumatic pump power. 3 HP ~ 2200W
brokenUsed for cosmetic broken disposal units.
flushTrue if flush handle is pulled
flush_after_ticksAfter 10 ticks it will look whether it is ready to flush
flush_countThis var adds 1 once per tick. When it reaches flush_after_ticks it resets and tries to flush.
flushingTrue if flushing in progress
modeItem mode 0=off 1=charging 2=charged
narrow_tubeWhether the disposals tube is too narrow for a mob to fit into.
trunkThe attached pipe trunk

Procs

InitializeCreate a new disposal, find the attached trunk (if present) and init gas resvr.
MouseDrop_TAmazing what you can do with a bit of dexterity. Strong mobs can lift above their own weight. Mouse drop another mob or self
attack_handHuman interact with machine
attackbyAttack by item places it in to disposal
ejectEject the contents of the disposal unit
ex_actPipe affected by explosion
expelCalled when holder is expelled from a disposal, should usually only occur if the pipe network is modified
flushPerform a flush
go_outLeave the disposal
power_changeCalled when area power changes
processTimed process, charge the gas reservoir and perform flush if ready
relaymoveAttempt to move while inside
updateUpdate 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

Amazing what you can do with a bit of dexterity. Strong mobs can lift above their own weight. 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