In response to The Conjuror
The Conjuror wrote:
Ok, use this, it'll work, sorry for all the confusion on such a simple thing, dunno where my head was...

mob/Bump(mob/M)
if(istype(M,/mob/Die))
src << "You died!"
src.loc = locate(1,4,1)
die()
return

For some reason that code doesn't work right.
In response to ElderKain
Bump
In response to ElderKain
Bump, I also need help with this.
In response to HeroshiSan
2nd bump, come on, if some1 can come up with a code that actualy works ill give them GM abilitys. (in the game i'm working on)

here is the gravity proc and the client thing to help
#define DEBUG

mob
var
inair

proc
Gravity(var/mob/M)
if(M.dir == EAST || M.dir == WEST)
if(M.inair == 1)
var/turf/check = locate(M.x,M.y-1,M.z)
if(check.density == 1)
M.inair = 0
return
else
M.loc=locate(M.x,M.y-1,M.z)
sleep(2)
Gravity(M)
else
return 0


client
Northeast()
return
Northwest()
return
Southeast()
return
Southwest()
return
North()
if(src.mob.dir == EAST)
if(src.mob.inair == 0)
src.mob.inair = 1
for(var/i=1,i<4,i++)
src.Move(locate(src.mob.x,src.mob.y+1,src.mob.z),NORTH)
src.mob.dir = EAST
sleep(2)
Gravity(src.mob)
return
else
return
if(src.mob.dir == WEST)
if(src.mob.inair == 0)
src.mob.inair = 1
for(var/i=1,i<4,i++)
src.Move(locate(src.mob.x,src.mob.y+1,src.mob.z),NORTH)
src.mob.dir = WEST
sleep(2)
Gravity(src.mob)
return
else
return
East()
..()
if(src.mob.inair == 0)
var/turf/checkdense = locate(src.mob.x,src.mob.y-1,src.mob.z)
if(checkdense.density == 0)
src.mob.inair = 1
Gravity(src.mob)
return

West()
..()
if(src.mob.inair == 0)
var/turf/checkdense = locate(src.mob.x,src.mob.y-1,src.mob.z)
if(checkdense.density == 0)
src.mob.inair = 1
Gravity(src.mob)
return
South()
if(src.mob.inair == 1)
return
else
Gravity(src.mob)
return
Page: 1 2