mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
AI Jump Buttons for Snaxi (#25565)
* AI Jump Buttons for Snaxi * Some fixes
This commit is contained in:
@@ -142,6 +142,24 @@
|
||||
for(var/datum/camerachunk/c in eyeobj.visibleCameraChunks)
|
||||
c.remove(eyeobj)
|
||||
|
||||
/mob/living/silicon/ai/proc/jump_to_area(var/area/A)
|
||||
if(!A)
|
||||
return
|
||||
if(!eyeobj)
|
||||
eyeobj = new(loc)
|
||||
eyeobj.ai = src
|
||||
eyeobj.name = "[name] (AI Eye)"
|
||||
eyeobj.forceMove(loc)
|
||||
var/list/turfs = list()
|
||||
for(var/turf/T in A)
|
||||
turfs.Add(T)
|
||||
var/turf/T = pick(turfs)
|
||||
if(!T)
|
||||
to_chat(src, "<span class='danger'>Nowhere to jump to!</span>")
|
||||
return
|
||||
cameraFollow = null
|
||||
eyeobj.forceMove(T)
|
||||
|
||||
/mob/living/silicon/ai/verb/toggle_acceleration()
|
||||
set category = "AI Commands"
|
||||
set name = "Toggle Camera Acceleration"
|
||||
|
||||
Reference in New Issue
Block a user