mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 11:07:12 +01:00
still runtimes
This commit is contained in:
@@ -264,17 +264,16 @@ var/list/holopads = list()
|
||||
if(eye_area != holo_area)
|
||||
return 1
|
||||
|
||||
else
|
||||
var/turf/target_turf = get_turf(AI.eyeobj)
|
||||
var/newdir = AI.holo.dir
|
||||
clear_holo()//If not, we want to get rid of the hologram.
|
||||
var/obj/machinery/hologram/holopad/pad_close = get_closest_atom(/obj/machinery/hologram/holopad, holopads, AI.eyeobj)
|
||||
if(get_dist(pad_close, AI.eyeobj) <= pad_close.holo_range)
|
||||
if(!(pad_close.stat & NOPOWER) && !pad_close.masters[src])
|
||||
pad_close.activate_holo(AI, 1)
|
||||
if(pad_close.masters[src])
|
||||
pad_close.AI.holo.forceMove(target_turf)
|
||||
pad_close.AI.holo.dir = newdir//runtime
|
||||
var/turf/target_turf = get_turf(AI.eyeobj)
|
||||
var/newdir = AI.holo.dir
|
||||
clear_holo()//If not, we want to get rid of the hologram.
|
||||
var/obj/machinery/hologram/holopad/pad_close = get_closest_atom(/obj/machinery/hologram/holopad, holopads, AI.eyeobj)
|
||||
if(get_dist(pad_close, AI.eyeobj) <= pad_close.holo_range)
|
||||
if(!(pad_close.stat & NOPOWER) && !pad_close.masters[src])
|
||||
pad_close.activate_holo(AI, 1)
|
||||
if(pad_close.masters[src])
|
||||
pad_close.hologram.forceMove(target_turf)
|
||||
pad_close.hologram.dir = newdir//runtime
|
||||
else
|
||||
continue
|
||||
clear_holo(master)//If not, we want to get rid of the hologram.
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
if(!message)
|
||||
return
|
||||
|
||||
var/obj/machinery/holopad/T = current
|
||||
var/obj/machinery/hologram/holopad/T = current
|
||||
if(istype(T) && T.masters[src])
|
||||
|
||||
//Human-like, sorta, heard by those who understand humans.
|
||||
@@ -116,7 +116,7 @@
|
||||
if(!message)
|
||||
return
|
||||
|
||||
var/obj/machinery/holopad/T = current
|
||||
var/obj/machinery/hologram/holopad/T = current
|
||||
if(istype(T) && T.masters[src])
|
||||
var/rendered = "<span class='game say'><span class='name'>[name]</span> <span class='message'>[message]</span></span>"
|
||||
to_chat(src, "<i><span class='game say'>Holopad action relayed, <span class='name'>[real_name]</span> <span class='message'>[message]</span></span></i>")
|
||||
@@ -129,7 +129,7 @@
|
||||
return 1
|
||||
|
||||
/mob/living/silicon/ai/emote(var/act, var/type, var/message)
|
||||
var/obj/machinery/holopad/T = current
|
||||
var/obj/machinery/hologram/holopad/T = current
|
||||
if(istype(T) && T.masters[src])//Is the AI using a holopad?
|
||||
src.holopad_emote(message)
|
||||
else //Emote normally, then.
|
||||
|
||||
Reference in New Issue
Block a user