byond - Modules - TypesVar Details - Proc Details

xeno_turret

We find the tunnel, looking within 10 tiles of where the user clicked, excluding src

Vars

ammoWhat kind of spit it uses
firerateFire rate of the target in ticks
firingFor minimap icon change if sentry is firing
hostileTarget of the turret
last_hostileLast target of the turret
last_scan_timeThe last time the sentry did a scan
light_initial_colorlight color that gets set in initialize
potential_hostilesPotential list of targets found by scan
rangeRange of the turret

Procs

destroy_on_hijackSignal handler to delete the turret when the alamo is hijacked
get_targetLook for the closest human in range and in light of sight. If no human is in range, will look for xenos of other hives
scanReturn TRUE if a possible target is near
set_hostileSetter for hostile with hard del in mind
set_last_hostileSetter for last_hostile with hard del in mind
shootSignal handler to make the turret shoot at its target
unset_hostileSignal handler for hard del of hostile
unset_last_hostileSignal handler for hard del of last_hostile
update_minimap_iconChange minimap icon if its firing or not firing

Var Details

ammo

What kind of spit it uses

firerate

Fire rate of the target in ticks

firing

For minimap icon change if sentry is firing

hostile

Target of the turret

last_hostile

Last target of the turret

last_scan_time

The last time the sentry did a scan

light_initial_color

light color that gets set in initialize

potential_hostiles

Potential list of targets found by scan

range

Range of the turret

Proc Details

destroy_on_hijack

Signal handler to delete the turret when the alamo is hijacked

get_target

Look for the closest human in range and in light of sight. If no human is in range, will look for xenos of other hives

scan

Return TRUE if a possible target is near

set_hostile

Setter for hostile with hard del in mind

set_last_hostile

Setter for last_hostile with hard del in mind

shoot

Signal handler to make the turret shoot at its target

unset_hostile

Signal handler for hard del of hostile

unset_last_hostile

Signal handler for hard del of last_hostile

update_minimap_icon

Change minimap icon if its firing or not firing