ID:170750
 
Need a grenade code,something you throw,it blows up sending a 5x5 overlay and any mob inside the 5x5 grid gets killed.
Hiddeknight wrote:
Need a grenade code,something you throw,it blows up sending a 5x5 overlay and any mob inside the 5x5 grid gets killed.

My (ancient!) War_Demo closely resembles that. It uses projectiles, but it can be easily refitted to accomodate for grenades.

War_Demo
In response to Malver
proc
Explode(obj/boomball/O)
for(var/turf/X as turf in range(src,1))
X.overlays += image('explosion.dmi')
spawn(10)
X.overlays.Cut()
for(var/mob/M as mob in X)
Damage(M, src.splash)

why dont the overlays dissapear?