So therefore I want to suggest a new feature:
Format:
turn_towards(Ref,Dir,Angle)
Returns:
The rotation of an object towards.
Args:
Ref: A mob or obj.
Dir: One of NORTH, SOUTH, EAST, WEST, NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST.
Angle: An angle in degrees. Positive value turns the src towards ref. Negative value turns src away from ref.
Example:
var/mob/M
for(var/mob/Enemy/L in world)
M = L
src.dir = turn_towards(M,NORTH,45) //dir = Northwest towards M
src.dir = turn_towards(M,NORTH,-45) //dir = Northeast away from M
Or if you really must hve this procedure:
proc/turn_towards(loc1,loc2,dir,angle) turn(get_dir(loc1,loc2),dir,angle)