mob
Move()
. = ..()
src.layer = MOB_LAYER + -(src.y / world.maxy)
attackable
player
var/frozen = 0
Move(var/loc, var/dir)
if(!frozen)
if(!..())
if(dir in list(NORTHWEST, SOUTHWEST, NORTHEAST, SOUTHEAST))
var/step1 = turn(dir, 45)
var/step2 = turn(dir, -45)
if(!step(src, step1))
step(src, step2)
else
//If successful, other shit goes here.
return 1
Problem description:
How would you go about controlling the mob under src.client.eye (assume it it set to something different than src.client.mob and is of type /mob/Soldier)?
Do you mean you want the user to control src.client.eye, or a mob in the same physical location as src.client.eye?
For the former, assuming you want src.client.eye to move without src moving:
That should pretty much do it.