mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
do it via screen/act_intent instead
This commit is contained in:
@@ -1,3 +1,15 @@
|
||||
/mob/living/simple_animal/create_mob_hud()
|
||||
hud_used = new /datum/hud/simple(src)
|
||||
|
||||
/datum/hud/simple/New(mob/user)
|
||||
..()
|
||||
var/obj/screen/using
|
||||
using = new /obj/screen/act_intent/simple()
|
||||
using.icon_state = mymob.a_intent
|
||||
static_inventory += using
|
||||
action_intent = using
|
||||
|
||||
|
||||
/mob/living/simple_animal/pet/create_mob_hud()
|
||||
if(client && !hud_used)
|
||||
hud_used = new /datum/hud/corgi(src)
|
||||
|
||||
@@ -71,17 +71,14 @@
|
||||
if(ishuman(usr))
|
||||
var/_x = text2num(params2list(params)["icon-x"])
|
||||
var/_y = text2num(params2list(params)["icon-y"])
|
||||
|
||||
if(_x<=16 && _y<=16)
|
||||
usr.a_intent_change(INTENT_HARM)
|
||||
else if(_x<=16 && _y>=17)
|
||||
usr.a_intent_change(INTENT_HELP)
|
||||
else if(_x>=17 && _y<=16)
|
||||
usr.a_intent_change(INTENT_GRAB)
|
||||
|
||||
else if(_x>=17 && _y>=17)
|
||||
usr.a_intent_change(INTENT_DISARM)
|
||||
|
||||
else
|
||||
usr.a_intent_change("right")
|
||||
|
||||
@@ -97,6 +94,11 @@
|
||||
name = "run/walk toggle"
|
||||
icon_state = "running"
|
||||
|
||||
|
||||
/obj/screen/act_intent/simple
|
||||
icon = 'icons/mob/screen_robot.dmi'
|
||||
screen_loc = ui_acti
|
||||
|
||||
/obj/screen/mov_intent/Click()
|
||||
if(iscarbon(usr))
|
||||
var/mob/living/carbon/C = usr
|
||||
|
||||
Reference in New Issue
Block a user