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

holopad

Vars

callingIf we are currently calling another holopad
can_hear_flagsbitfield. used to turn on and off hearing sensitivity depending on if we can act on Hear() at all - meant for lowering the number of unessesary hearable atoms
diskRecord disk
force_answer_callCalls will be automatically answered after a couple rings, here for debugging
holo_callsArray of /datum/holocalls that are calling US. this is only filled for holopads answering calls from another holopad
holo_rangeChange to change how far the AI can move away from the holopad before deactivating
holoraysHoloray-mob link
last_requestTo prevent request spam. ~Carn
loop_modeCurrently looping a recording
mastersassociative lazylist of the form: list(mob calling us = hologram representing that mob). this is only populated for holopads answering calls from another holopad
outgoing_callCurrently outgoing holocall, cannot call any other holopads unless this is null. creating a new holocall from us to another holopad sets this var to that holocall datum
planeThe plane is set such that it shows up without being covered by pipes/wires in a map editor, we change this on initialize.
record_modeCurrently recording
record_startRecording start time
record_userUser that inititiated the recording
replay_holoReplay hologram
replay_modeCurrently replaying a recording
secureFor pads in secure areas; do not allow forced connecting

Procs

callee_hung_upCalled by holocall to inform outgoing_call that the call is terminated.
callee_picked_upCalled by holocall to inform outgoing_call that the receiver picked up.
hangup_all_callshangup_all_calls: Disconnects all current holocalls from the holopad
set_can_hear_flagssetter for can_hear_flags. handles adding or removing the given flag on can_hear_flags and then adding hearing sensitivity or removing it depending on the final state this is necessary because holopads are a significant fraction of the hearable atoms on station which increases the cost of procs that iterate through hearables so we need holopads to not be hearable until it is needed
set_holocallsetter for adding/removing holocalls to this holopad. used to update the holo_calls list and can_hear_flags adds the given holocall if add_holocall is TRUE, removes if FALSE

Var Details

calling

If we are currently calling another holopad

can_hear_flags

bitfield. used to turn on and off hearing sensitivity depending on if we can act on Hear() at all - meant for lowering the number of unessesary hearable atoms

disk

Record disk

force_answer_call

Calls will be automatically answered after a couple rings, here for debugging

holo_calls

Array of /datum/holocalls that are calling US. this is only filled for holopads answering calls from another holopad

holo_range

Change to change how far the AI can move away from the holopad before deactivating

holorays

Holoray-mob link

last_request

To prevent request spam. ~Carn

loop_mode

Currently looping a recording

masters

associative lazylist of the form: list(mob calling us = hologram representing that mob). this is only populated for holopads answering calls from another holopad

outgoing_call

Currently outgoing holocall, cannot call any other holopads unless this is null. creating a new holocall from us to another holopad sets this var to that holocall datum

plane

The plane is set such that it shows up without being covered by pipes/wires in a map editor, we change this on initialize.

record_mode

Currently recording

record_start

Recording start time

record_user

User that inititiated the recording

replay_holo

Replay hologram

replay_mode

Currently replaying a recording

secure

For pads in secure areas; do not allow forced connecting

Proc Details

callee_hung_up

Called by holocall to inform outgoing_call that the call is terminated.

callee_picked_up

Called by holocall to inform outgoing_call that the receiver picked up.

hangup_all_calls

hangup_all_calls: Disconnects all current holocalls from the holopad

set_can_hear_flags

setter for can_hear_flags. handles adding or removing the given flag on can_hear_flags and then adding hearing sensitivity or removing it depending on the final state this is necessary because holopads are a significant fraction of the hearable atoms on station which increases the cost of procs that iterate through hearables so we need holopads to not be hearable until it is needed

set_holocall

setter for adding/removing holocalls to this holopad. used to update the holo_calls list and can_hear_flags adds the given holocall if add_holocall is TRUE, removes if FALSE