xeno_turret

We find the tunnel, looking within 10 tiles of where the user clicked, excluding src
Vars | |
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 |
Procs | |
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 |
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