ID:170750
Dec 19 2004, 6:06 pm
|
|
Need a grenade code,something you throw,it blows up sending a 5x5 overlay and any mob inside the 5x5 grid gets killed.
|
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? |
My (ancient!) War_Demo closely resembles that. It uses projectiles, but it can be easily refitted to accomodate for grenades.
War_Demo