[MIRROR] Improved AI Vore (#11055)

Co-authored-by: ShadowLarkens <shadowlarkens@gmail.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-06-12 16:26:01 -07:00
committed by GitHub
parent e411fa99de
commit b5d7c9acc9
5 changed files with 51 additions and 68 deletions

View File

@@ -133,6 +133,9 @@ For the other part of the code, check silicon say.dm. Particularly robot talk.*/
else
hologram.set_light(2)
for(var/obj/belly/B as anything in A.vore_organs)
B.forceMove(hologram)
masters[A] = hologram
set_light(2) //pad lighting
icon_state = "holopad1"
@@ -140,6 +143,7 @@ For the other part of the code, check silicon say.dm. Particularly robot talk.*/
A.holo = src
if(LAZYLEN(masters))
START_MACHINE_PROCESSING(src)
return 1
/obj/machinery/hologram/holopad/proc/clear_holo(mob/living/silicon/ai/user)
@@ -165,18 +169,8 @@ For the other part of the code, check silicon say.dm. Particularly robot talk.*/
/obj/machinery/hologram/holopad/proc/move_hologram(mob/living/silicon/ai/user)
if(masters[user])
/*VOREStation Removal, using our own code
step_to(masters[user], user.eyeobj) // So it turns.
var/obj/effect/overlay/H = masters[user]
H.loc = get_turf(user.eyeobj)
masters[user] = H
*/
//VOREStation Add - Solid mass holovore tracking stuff
var/obj/effect/overlay/aiholo/H = masters[user]
if(H.bellied)
walk_to(H, user.eyeobj) //Walk-to respects obstacles
else
walk_towards(H, user.eyeobj) //Walk-towards does not
walk_towards(H, user.eyeobj)
//Hologram left the screen (got stuck on a wall or something)
if(get_dist(H, user.eyeobj) > world.view)
clear_holo(user)