proc/deathcheck()
if(src.health <= 0)
if(src.client)
src <<"[src] killed you!"
src.loc = locate(172,421,1)
src.health = src.maxhealth
if(src.monstername == "Infil Sniper")
var/Rand = rand(1,5)
if(Rand==5)
new/obj/Items/Health_Pack(src.loc)
del(src)
if(Rand==3)
new/obj/Items/Small_Health_Pack(src.loc)
del(src)
if(Rand==1)
new/obj/Items/Small_Health_Pack(src.loc)
del(src)
else
del(src)
Problem description:
They dont die, no warnings or anything.. no errors.... But they somtimes die (but only when they drop an item) such as a health pack.. I did try making a rand 2,4,5 for dropping and item and just del(src) and it still wont work.. any suggestions?