sentry

Vars | |
camera | Camera for viewing with cam consoles |
---|---|
firing | For minimap icon change if sentry is firing |
iff_signal | Iff signal of the sentry. If the /gun has a set IFF then this will be the same as that. If not the sentry will get its IFF signal from the deployer |
knockdown_threshold | Damage required to knock the sentry over and disable it |
last_alert | Time of last alert |
last_damage_alert | Time of last damage alert |
potential_targets | List of targets that can be shot at |
radio | Radio so that the sentry can scream for help |
range | View and fire range of the sentry |
spark_system | Spark system for making sparks |
Procs | |
check_next_shot | Checks the range and the path of the target currently being shot at to see if it is eligable for being shot at again. If not it will stop the firing. |
check_target_path | Checks the path to the target for obstructions. Returns TRUE if the path is clear, FALSE if not. |
get_target | Works through potential targets. First checks if they are in range, and if they are friend/foe. Then checks the path to them. Returns the first eligable target. |
knock_down | Bonks the sentry onto its side. This currently is used here, and in /living/carbon/xeno/warrior/mob_abilities in punch |
match_iff | Checks the users faction against turret IFF, used to stop hostile factions from interacting with turrets in ways they shouldn't. |
remove_emp | Lifts EMP effects |
scan | Checks the nearby mobs for eligability. If they can be targets it stores them in potential_targets. Returns TRUE if there are targets, FALSE if not. |
sentry_alert | Sentry wants to scream for help. |
sentry_start_fire | Sees if theres a target to shoot, then handles firing. |
sentry_stop_fire | Ends firing |
set_on | Handles turning the sentry ON and OFF. new_state is a bool |
update_minimap_icon | Change minimap icon if its firing or not firing |
Var Details
camera

Camera for viewing with cam consoles
firing

For minimap icon change if sentry is firing
iff_signal

Iff signal of the sentry. If the /gun has a set IFF then this will be the same as that. If not the sentry will get its IFF signal from the deployer
knockdown_threshold

Damage required to knock the sentry over and disable it
last_alert

Time of last alert
last_damage_alert

Time of last damage alert
potential_targets

List of targets that can be shot at
radio

Radio so that the sentry can scream for help
range

View and fire range of the sentry
spark_system

Spark system for making sparks
Proc Details
check_next_shot
Checks the range and the path of the target currently being shot at to see if it is eligable for being shot at again. If not it will stop the firing.
check_target_path
Checks the path to the target for obstructions. Returns TRUE if the path is clear, FALSE if not.
get_target
Works through potential targets. First checks if they are in range, and if they are friend/foe. Then checks the path to them. Returns the first eligable target.
knock_down
Bonks the sentry onto its side. This currently is used here, and in /living/carbon/xeno/warrior/mob_abilities in punch
match_iff
Checks the users faction against turret IFF, used to stop hostile factions from interacting with turrets in ways they shouldn't.
remove_emp
Lifts EMP effects
scan
Checks the nearby mobs for eligability. If they can be targets it stores them in potential_targets. Returns TRUE if there are targets, FALSE if not.
sentry_alert
Sentry wants to scream for help.
sentry_start_fire
Sees if theres a target to shoot, then handles firing.
sentry_stop_fire
Ends firing
set_on
Handles turning the sentry ON and OFF. new_state is a bool
update_minimap_icon
Change minimap icon if its firing or not firing