ID:169000
 
I need a way to take a player, and change their icon to an upside-down non-moving version of their north directional state (To make it look like they're dead) because I use custom icons on my game and not everyone has a death state =P
well if its a mini game you could make it a corpse and the player a ghost...


        
mob/proc/Die()
new /obj/corpse(src.loc)
src.icon = 'ghost.dmi'
src.density = 0
In response to Cheetoz
I just wondered if there's a way to grab their north movement state, then turn it upside down using some proc. I don't know much about the icon variables/procs =/ I'll read up on them later maybe.
In response to Cowdude
mob/proc/Flip()
if(src.dir == NORTH)
src.dir = SOUTH
return
if(src.dir == SOUTH)
src.dir = NORTH
return



EDIT: heres the other way....

mob/proc/Flip()
src.dir = turn(src.dir, 180)
In response to Cheetoz
well that just turns them around. I just want to generate an icon that's the upside down version of their north state; so it looks like they fell on their face.
In response to Cowdude
....omg, then you must have the icons like that
In response to Cheetoz
Cheetoz wrote:
....omg, then you must have the icons like that

And with DM it's easy to do that.

var/icon/I = someothericon
I.Flip(NORTH)


And if you just want the north state...

var/icon/I = icon(someothericon, somestate, NORTH)
I.Flip(NORTH)
In response to Jon88

mob/verb/Die()
var/icon/I = icon(src.icon, src.icon_state, NORTH)
I.Flip(NORTH)
src.tempicon = src.icon
src.icon = I


So I want that? (it saves the icon so that you can un-die :P)

(I'm using this for Roleplay purposes by the way.)