I was using this for the back attack thing.
I would probably need quite a few if statements for usr.dir and E.dir detection to include more directions.
Code:
mob
Bump(var/mob/enemies/E)
if(usr.attacklock == 0)
if(usr.dir == E.dir)
usr.attacklock = 1
usr << "damage"
sleep(4)
usr.attacklock = 0
E.Deathcheck()
else
usr.attacklock = 1
usr << "minimal damage"
sleep(4)
usr.attacklock = 0
usr.Deathcheck()
Problem description: Need help making a condensed version of a direction detection bump combat. Whether the enemy is being bumped head-on, from the side or from the back.
Thanks in advance!