holopad

Vars | |
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 |
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 |
Procs | |
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 |
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
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
- flag - one of the can_hear_flags flag defines
- set_flag - boolean, if TRUE sets can_hear_flags to that flag and might add hearing sensitivity if can_hear_flags was NONE before, if FALSE unsets the flag and possibly removes hearing sensitivity
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