mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
Fixes cyborg tracking not always showing up (#82975)
## About The Pull Request Silicons moving with their builtincamera doesnt automatically update the camera net, so for some time after borgs move, they wont show up to the AI to track. It's a minor but annoying issue that this fixes. ## Why It's Good For The Game Fixes a minor issue with the new ai tracking stuff. ## Changelog 🆑 fix: AIs can now track Silicon as long as their built-in camera is online. /🆑
This commit is contained in:
@@ -1290,9 +1290,9 @@
|
||||
return FALSE
|
||||
if(invisibility || alpha <= 50)//cloaked
|
||||
return FALSE
|
||||
if(!isturf(src.loc)) //The reason why we don't just use get_turf is because they could be in a closet, disposals, or a vehicle.
|
||||
if(!isturf(loc)) //The reason why we don't just use get_turf is because they could be in a closet, disposals, or a vehicle.
|
||||
return FALSE
|
||||
var/turf/T = src.loc
|
||||
var/turf/T = loc
|
||||
if(is_centcom_level(T.z)) //dont detect mobs on centcom
|
||||
return FALSE
|
||||
if(is_away_level(T.z))
|
||||
|
||||
@@ -480,3 +480,11 @@
|
||||
stack_trace("Silicon [src] ( [type] ) was somehow missing their integrated tablet. Please make a bug report.")
|
||||
create_modularInterface()
|
||||
modularInterface.imprint_id(name = newname)
|
||||
|
||||
/mob/living/silicon/can_track(mob/living/user)
|
||||
//if their camera is online, it's safe to assume they are in cameranets
|
||||
//since it takes a while for camera vis to update, this lets us bypass that so AIs can always see their borgs,
|
||||
//without making cameras constantly update every time a borg moves.
|
||||
if(builtInCamera && builtInCamera.can_use())
|
||||
return TRUE
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user