Remote Camera Component ![code/modules/wiremod/components/atom/remotecam.dm 12](git.png)
Attaches a camera for surveillance-on-the-go.
Vars | |
c_tag_random | Camera random ID |
---|---|
camera_prefix | The shell's type (used for prefix naming) |
camera_range | Camera range flag (near/far) |
camera_range_settable | Allow camera range to be set or not |
camera_signal_move_override | Used only for the BCI shell type, as the COMSIG_MOVABLE_MOVED signal need to be assigned to the user mob, not the shell circuit |
current_camera_emp | Used to store the camera emp state |
current_camera_emp_timer_id | Used to store the camera emp timer id |
current_camera_name | Used to store the last string used for the camera name |
current_camera_network | Used to store the last string used for the camera network |
current_camera_range | Used to store the current camera range setting (near/far) |
current_camera_state | Used to store the current process state |
current_cameranet_state | Used to store the current cameranet state |
network | The network to use |
shell_camera | Camera object |
shell_parent | The shell storing the parent circuit |
start | Starts the cameraa |
stop | Stops the program. |
Procs | |
cameranet_add | Add camera from global cameranet |
cameranet_remove | Remove camera from global cameranet |
close_camera | Close the camera state (only if it's already active) |
init_camera | Initializes the camera |
process | Handle power usage and camera state updating |
remove_camera | Remove the camera |
remove_camera_emp | Restore emp'd camera |
set_camera_emp | Set the camera as emp'd |
start_process | Adds the component to the SSclock_component process list |
stop_process | Removes the component to the SSclock_component process list |
update_camera_location | Update the chunk for the camera (if enabled) |
update_camera_name_network | Updates the camera name and network |
update_camera_range | Set the camera range |
Var Details
c_tag_random ![code/modules/wiremod/components/atom/remotecam.dm 39](git.png)
Camera random ID
camera_prefix ![code/modules/wiremod/components/atom/remotecam.dm 37](git.png)
The shell's type (used for prefix naming)
camera_range ![code/modules/wiremod/components/atom/remotecam.dm 23](git.png)
Camera range flag (near/far)
camera_range_settable ![code/modules/wiremod/components/atom/remotecam.dm 28](git.png)
Allow camera range to be set or not
camera_signal_move_override ![code/modules/wiremod/components/atom/remotecam.dm 30](git.png)
Used only for the BCI shell type, as the COMSIG_MOVABLE_MOVED signal need to be assigned to the user mob, not the shell circuit
current_camera_emp ![code/modules/wiremod/components/atom/remotecam.dm 46](git.png)
Used to store the camera emp state
current_camera_emp_timer_id ![code/modules/wiremod/components/atom/remotecam.dm 48](git.png)
Used to store the camera emp timer id
current_camera_name ![code/modules/wiremod/components/atom/remotecam.dm 50](git.png)
Used to store the last string used for the camera name
current_camera_network ![code/modules/wiremod/components/atom/remotecam.dm 54](git.png)
Used to store the last string used for the camera network
current_camera_range ![code/modules/wiremod/components/atom/remotecam.dm 52](git.png)
Used to store the current camera range setting (near/far)
current_camera_state ![code/modules/wiremod/components/atom/remotecam.dm 42](git.png)
Used to store the current process state
current_cameranet_state ![code/modules/wiremod/components/atom/remotecam.dm 44](git.png)
Used to store the current cameranet state
network ![code/modules/wiremod/components/atom/remotecam.dm 25](git.png)
The network to use
shell_camera ![code/modules/wiremod/components/atom/remotecam.dm 33](git.png)
Camera object
shell_parent ![code/modules/wiremod/components/atom/remotecam.dm 35](git.png)
The shell storing the parent circuit
start ![code/modules/wiremod/components/atom/remotecam.dm 19](git.png)
Starts the cameraa
stop ![code/modules/wiremod/components/atom/remotecam.dm 21](git.png)
Stops the program.
Proc Details
cameranet_add
Add camera from global cameranet
cameranet_remove
Remove camera from global cameranet
close_camera
Close the camera state (only if it's already active)
init_camera
Initializes the camera
process
Handle power usage and camera state updating
This is the generic abstract proc - subtypes with specialized logic should use their own copy of process()
remove_camera
Remove the camera
remove_camera_emp
Restore emp'd camera
set_camera_emp
Set the camera as emp'd
start_process
Adds the component to the SSclock_component process list
Starts draining cell per second while camera is active
stop_process
Removes the component to the SSclock_component process list
Stops draining cell per second
update_camera_location
Update the chunk for the camera (if enabled)
update_camera_name_network
Updates the camera name and network
update_camera_range
Set the camera range