mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-06 07:22:42 +00:00
Made turret identifiers update all other ones in the area.
This commit is contained in:
@@ -394,6 +394,12 @@
|
||||
src.attack_hand(usr)
|
||||
|
||||
/obj/machinery/turretid/proc/updateTurrets()
|
||||
if(control_area)
|
||||
for (var/obj/machinery/turret/aTurret in get_area_all_atoms(control_area))
|
||||
aTurret.setState(enabled, lethal)
|
||||
update_icons()
|
||||
|
||||
/obj/machinery/turretid/proc/update_icons()
|
||||
if (src.enabled)
|
||||
if (src.lethal)
|
||||
icon_state = "motion1"
|
||||
@@ -401,10 +407,11 @@
|
||||
icon_state = "motion3"
|
||||
else
|
||||
icon_state = "motion0"
|
||||
|
||||
if(control_area)
|
||||
for (var/obj/machinery/turret/aTurret in get_area_all_atoms(control_area))
|
||||
aTurret.setState(enabled, lethal)
|
||||
for (var/obj/machinery/turretid/aTurret in get_area_all_atoms(control_area))
|
||||
aTurret.icon_state = icon_state
|
||||
aTurret.enabled = enabled
|
||||
aTurret.lethal = lethal
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user