obj
meters
icon = 'misc.dmi'
icon_state="thing"
layer = MOB_LAYER + 51
screen_loc = "SOUTH, WEST"
var
obj/meter/HP_meter/HPM
obj/meter/EP_meter/EPM
obj/meter/MP_meter/MPM
New()
..()
src.HPM = new
src.EPM = new
src.MPM = new
proc
Update()
src.HPM.Update()
overlays -= HPM
overlays += HPM
src.EPM.Update()
overlays -= EPM
overlays += EPM
src.MPM.Update()
overlays -= MPM
overlays += MPM
meter
var
num = 0
width = 30
HP_meter
layer = MOB_LAYER + 100
icon = 'meter.dmi'
icon_state = "30" //that's zero, not ( ) or O
screen_loc="6,7"
EP_meter
layer = MOB_LAYER + 100
icon = 'meterb.dmi'
icon_state = "30" //that's zero, not ( ) or O
screen_loc="6,7"
MP_meter
layer = MOB_LAYER + 100
icon = 'meterc.dmi'
icon_state = "30" //that's zero, not ( ) or O
screen_loc="6,7"
proc
Update()
if(num < 0) //if the meter is negative
num = 0 //set it to zero
else if(num > width) //if the meter is over 100%
num = width //set it to 100%
src.icon_state = "[round(src.num)]"
ID:269222
Apr 16 2005, 9:07 am
|
|
i was wonderin how to make a verb Toggle HUD... heres my HUD coding, can someone tell me how ot make it plz? thanks
|