mob/verb/Attack(mob/client/M)
if(M.Weapon==1)
if(M.client)
set category="Commands"
set src in oview(1)
M.Health -= src.Damage
src.icon_state = "bandit"
M <<"<font color=red><b><small>You attack [M.client]!"
if(M.Health <= 0)
new/obj/misc/Player_Corpse(loc)
DeathCheck(M) //sends M to death proc
else
if(M.Weapon==0)
M <<"<font color=red><b><small>You won't do any serious damage with just your fists."
return
Problem description: So, I coded my PVP stuff from scratch. It's not too complicated but it works for what I want to do.
The only thing that doesn't work is the icon_state stuff. I want player killers to be recognized when they attack someone. However, the icon state only lasts until the player moves.
Help?