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

canister

Vars

can_max_release_pressureMaximum pressure allowed for release_pressure var
can_min_release_pressureMinimum pressure allower for release_pressure var
filledHow much the canister should be filled (recommended from 0 to 1)
gas_typeStores the path of the gas for mapped canisters
heat_limitMax amount of heat allowed inside of the canister before it starts to melt (different tiers have different limits)
label2typesList of all the gases, used in labelling the canisters
maximum_pressureMaximum pressure allowed on initialize inside the canister, multiplied by the filled var
modeSet the tier of the canister and overlay used
pressure_limitMax amount of pressure allowed inside of the canister before it starts to break (different tiers have different limits)
prototypeIs the canister a prototype one?
release_logUsed to log opening and closing of the valve, available on VV
release_pressurePlayer controlled var that set the release pressure of the canister
restrictedIf true, the prototype canister requires engi access to be used
starter_tempInitial temperature gas mixture
temperature_resistanceMaximum amount of heat that the canister can handle before taking damage
valve_openIs the valve open?
valve_timerTimer variables

Procs

canister_breakHandle canisters disassemble, releases the gas content in the turf
create_gasCalled on Initialize(), fill the canister with the gas_type specified up to the filled level (half if 0.5, full if 1) Used for canisters spawned in maps and by admins
get_time_leftGetter for the amount of time left in the timer of prototype canisters
set_activeStarts the timer of prototype canisters
should_atmos_processFunction is used to actually set the overlays
ui_statefunction used to check the limit of the canisters and also set the amount of damage that the canister can receive, if the heat and pressure are way higher than the limit the more damage will be done

Var Details

can_max_release_pressure

Maximum pressure allowed for release_pressure var

can_min_release_pressure

Minimum pressure allower for release_pressure var

filled

How much the canister should be filled (recommended from 0 to 1)

gas_type

Stores the path of the gas for mapped canisters

heat_limit

Max amount of heat allowed inside of the canister before it starts to melt (different tiers have different limits)

label2types

List of all the gases, used in labelling the canisters

maximum_pressure

Maximum pressure allowed on initialize inside the canister, multiplied by the filled var

mode

Set the tier of the canister and overlay used

pressure_limit

Max amount of pressure allowed inside of the canister before it starts to break (different tiers have different limits)

prototype

Is the canister a prototype one?

release_log

Used to log opening and closing of the valve, available on VV

release_pressure

Player controlled var that set the release pressure of the canister

restricted

If true, the prototype canister requires engi access to be used

starter_temp

Initial temperature gas mixture

temperature_resistance

Maximum amount of heat that the canister can handle before taking damage

valve_open

Is the valve open?

valve_timer

Timer variables

Proc Details

canister_break

Handle canisters disassemble, releases the gas content in the turf

create_gas

Called on Initialize(), fill the canister with the gas_type specified up to the filled level (half if 0.5, full if 1) Used for canisters spawned in maps and by admins

get_time_left

Getter for the amount of time left in the timer of prototype canisters

set_active

Starts the timer of prototype canisters

should_atmos_process

Function is used to actually set the overlays

ui_state

function used to check the limit of the canisters and also set the amount of damage that the canister can receive, if the heat and pressure are way higher than the limit the more damage will be done