mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Merge pull request #6078 from PsiOmegaDelta/TurretExploit
Fixes turret exploit
This commit is contained in:
@@ -124,8 +124,7 @@
|
|||||||
Topic("breaker=1", list("breaker"="1"), 0) // 0 meaning no window (consistency! wait...)
|
Topic("breaker=1", list("breaker"="1"), 0) // 0 meaning no window (consistency! wait...)
|
||||||
|
|
||||||
/obj/machinery/turretid/AICtrlClick() //turns off/on Turrets
|
/obj/machinery/turretid/AICtrlClick() //turns off/on Turrets
|
||||||
src.enabled = !src.enabled
|
Topic("toggleOn", list("toggleOn" = 1), 1) // 1 meaning no window (consistency!)
|
||||||
src.updateTurrets()
|
|
||||||
|
|
||||||
/atom/proc/AIAltClick(var/atom/A)
|
/atom/proc/AIAltClick(var/atom/A)
|
||||||
AltClick(A)
|
AltClick(A)
|
||||||
@@ -140,8 +139,7 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
/obj/machinery/turretid/AIAltClick() //toggles lethal on turrets
|
/obj/machinery/turretid/AIAltClick() //toggles lethal on turrets
|
||||||
src.lethal = !src.lethal
|
Topic("toggleLethal", list("toggleLethal" = 1), 1) // 1 meaning no window (consistency!)
|
||||||
src.updateTurrets()
|
|
||||||
|
|
||||||
/atom/proc/AIMiddleClick()
|
/atom/proc/AIMiddleClick()
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -436,8 +436,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/obj/machinery/turretid/Topic(href, href_list)
|
/obj/machinery/turretid/Topic(href, href_list, var/nowindow = 0)
|
||||||
..()
|
if(..(href, href_list))
|
||||||
|
return
|
||||||
if (src.locked)
|
if (src.locked)
|
||||||
if (!istype(usr, /mob/living/silicon))
|
if (!istype(usr, /mob/living/silicon))
|
||||||
usr << "Control panel is locked!"
|
usr << "Control panel is locked!"
|
||||||
@@ -449,7 +450,8 @@
|
|||||||
else if (href_list["toggleLethal"])
|
else if (href_list["toggleLethal"])
|
||||||
src.lethal = !src.lethal
|
src.lethal = !src.lethal
|
||||||
src.updateTurrets()
|
src.updateTurrets()
|
||||||
src.attack_hand(usr)
|
if(!nowindow)
|
||||||
|
src.attack_hand(usr)
|
||||||
|
|
||||||
/obj/machinery/turretid/proc/updateTurrets()
|
/obj/machinery/turretid/proc/updateTurrets()
|
||||||
if(control_area)
|
if(control_area)
|
||||||
|
|||||||
Reference in New Issue
Block a user