/tg/ Station 13 - Modules - TypesVar Details - Proc Details

wings

Wing base type. can do things :>

Vars

cant_hideWe cant hide these wings in suit
flap_soundSound played on the *flap emote, if any
flight_levelThe level of flight this organ provides, from passive 0G drift to magic flight
flyThe flight action object
has_open_spriteDoes this wing type have open/close sprite variants
wings_openAre our wings open or closed?

Procs

allow_flightCheck if we can passively drift in low-gravity. Used by WINGS_FLIGHTLESS jetpack component
can_flyCheck if still eligible for active flight (wings covered, atmosphere too thin, etc)
close_wingsClose wings. Deactivate jetpack component
fly_slipSlipping but in the air?
grind_resultsYou only get the juice if your wings are worth a damn
handle_flightCalled on_life(). Handle flight code and check if we're still flying
make_flap_soundSet flap_sound to play the sound when emoting *flap
open_wingsSpread wings. Activate Jetpack component
setup_jetpackupdate proc to kick our jetpack component whenever circumstances change
toggle_flightUNSAFE PROC, should only be called through the Activate or other sources that check for CanFly

Var Details

cant_hide

We cant hide these wings in suit

flap_sound

Sound played on the *flap emote, if any

flight_level

The level of flight this organ provides, from passive 0G drift to magic flight

fly

The flight action object

has_open_sprite

Does this wing type have open/close sprite variants

wings_open

Are our wings open or closed?

Proc Details

allow_flight

Check if we can passively drift in low-gravity. Used by WINGS_FLIGHTLESS jetpack component

can_fly

Check if still eligible for active flight (wings covered, atmosphere too thin, etc)

close_wings

Close wings. Deactivate jetpack component

fly_slip

Slipping but in the air?

grind_results

You only get the juice if your wings are worth a damn

handle_flight

Called on_life(). Handle flight code and check if we're still flying

make_flap_sound

Set flap_sound to play the sound when emoting *flap

open_wings

Spread wings. Activate Jetpack component

setup_jetpack

update proc to kick our jetpack component whenever circumstances change

Flightless wings never generate lift of their own, drifting in 0G and hook the organ being implanted/removed. Anything airworthy flies under its own power, so we hook the wings being opened/closed instead

toggle_flight

UNSAFE PROC, should only be called through the Activate or other sources that check for CanFly