mob/Bump(Obstacle)
..()
if(thrown)
if(ismob(Obstacle))
var/thrownalready = 0
var/mob/M = Obstacle
var/turf/T = get_step(src,src.dir)
if(T)
if(T.density == 0)
if(thrownalready == 0)
thrownalready = 1
view(6) << "<FONT COLOR = RED><I>[src.name] collides into [Obstacle]!"
M.movable = 1
M.locked = 0
M.movement = 2
M.thrown = 1
M.dir = src.dir
walk(M,src.dir)
walk(src,src.dir)
else
var/dmg = M.throwdamage
dmg = round(dmg)
var/obj/battlenumbers/numbers = new /obj/battlenumbers(src.loc)
numbers.loc = locate(M.x,M.y+1,M.z)
numbers.BattleNumbers("[dmg]",numbers)
M.hp -= dmg
M.thrown = 0
M.movement = 0
M.throwdamage = 0
walk(M,0)
else
if(isturf(Obstacle))
var/turf/T = get_step(src,src.dir)
if(T)
if(T.density == 1)
var/dmg = throwdamage
dmg = round(dmg)
var/obj/battlenumbers/numbers = new /obj/battlenumbers(src.loc)
numbers.loc = locate(src.x,src.y+1,src.z)
numbers.BattleNumbers("[dmg]",numbers)
src.hp -= dmg
thrown = 0
movement = 0
throwdamage = 0
walk(src,0)
Basically, when your thrown into someone else you both get thrown. And then if you collide into a turf and it's density is one, both should recieve the damage I didn't add that yet.
For some reason when a person collides, the person keeps on bumping to the person and the other person doesn't move, it just keeps on bumping.
Fixed
Lummox JR