mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Bugfix 2: Electric Boogaloo, Ninjas being tracked by AI's
Removed AI's ability to track them sneaky ninja's.
This commit is contained in:
@@ -77,10 +77,8 @@
|
|||||||
//Cameras can't track people wearing an agent card or a ninja hood.
|
//Cameras can't track people wearing an agent card or a ninja hood.
|
||||||
if(H.wear_id && istype(H.wear_id.GetID(), /obj/item/weapon/card/id/syndicate))
|
if(H.wear_id && istype(H.wear_id.GetID(), /obj/item/weapon/card/id/syndicate))
|
||||||
continue
|
continue
|
||||||
if(istype(H.head, /obj/item/clothing/head/helmet/space/space_ninja))
|
if(istype(H.head, /obj/item/clothing/head/helmet/space/space_ninja))
|
||||||
var/obj/item/clothing/head/helmet/space/space_ninja/hood = H.head
|
continue
|
||||||
if(!hood.canremove)
|
|
||||||
continue
|
|
||||||
|
|
||||||
// Now, are they viewable by a camera? (This is last because it's the most intensive check)
|
// Now, are they viewable by a camera? (This is last because it's the most intensive check)
|
||||||
if(!near_camera(M))
|
if(!near_camera(M))
|
||||||
@@ -137,8 +135,8 @@
|
|||||||
U << "Follow camera mode terminated."
|
U << "Follow camera mode terminated."
|
||||||
U.cameraFollow = null
|
U.cameraFollow = null
|
||||||
return
|
return
|
||||||
if(istype(H.head, /obj/item/clothing/head/helmet/space/space_ninja) && !H.head.canremove)
|
if(istype(H.head, /obj/item/clothing/head/helmet/space/space_ninja))
|
||||||
U << "Follow camera mode terminated."
|
U << "Follow camera mode terminated."
|
||||||
U.cameraFollow = null
|
U.cameraFollow = null
|
||||||
return
|
return
|
||||||
if(H.digitalcamo)
|
if(H.digitalcamo)
|
||||||
@@ -199,4 +197,4 @@
|
|||||||
else
|
else
|
||||||
if (sorttext(a.c_tag, b.c_tag) < 0)
|
if (sorttext(a.c_tag, b.c_tag) < 0)
|
||||||
L.Swap(j, j + 1)
|
L.Swap(j, j + 1)
|
||||||
return L
|
return L
|
||||||
|
|||||||
Reference in New Issue
Block a user