mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-24 00:12:07 +00:00
69 lines
2.5 KiB
Plaintext
69 lines
2.5 KiB
Plaintext
/obj/item/weapon/grenade/spawnergrenade
|
|
desc = "It is set to detonate in 5 seconds. It will unleash unleash an unspecified anomaly into the vicinity."
|
|
name = "delivery grenade"
|
|
icon = 'icons/obj/grenade.dmi'
|
|
icon_state = "delivery"
|
|
item_state = "flashbang"
|
|
origin_tech = "materials=3;magnets=4"
|
|
var/spawner_type = null // must be an object path
|
|
var/deliveryamt = 1 // amount of type to deliver
|
|
spawner_type = /mob/living/simple_animal/hostile/viscerator
|
|
|
|
prime() // Prime now just handles the two loops that query for people in lockers and people who can see it.
|
|
|
|
if(spawner_type && deliveryamt)
|
|
// Make a quick flash
|
|
var/turf/T = get_turf(src)
|
|
playsound(T, 'sound/effects/phasein.ogg', 100, 1)
|
|
for(var/mob/living/carbon/C in viewers(T, null))
|
|
C.flash_eyes()
|
|
|
|
for(var/i=1, i<=deliveryamt, i++)
|
|
var/atom/movable/x = new spawner_type
|
|
x.admin_spawned = admin_spawned
|
|
x.loc = T
|
|
if(prob(50))
|
|
for(var/j = 1, j <= rand(1, 3), j++)
|
|
step(x, pick(NORTH,SOUTH,EAST,WEST))
|
|
|
|
// Spawn some hostile syndicate critters
|
|
|
|
qdel(src)
|
|
return
|
|
|
|
/obj/item/weapon/grenade/spawnergrenade/manhacks
|
|
name = "manhack delivery grenade"
|
|
spawner_type = /mob/living/simple_animal/hostile/viscerator
|
|
deliveryamt = 5
|
|
origin_tech = "materials=3;magnets=4;syndicate=3"
|
|
|
|
/obj/item/weapon/grenade/spawnergrenade/spesscarp
|
|
name = "carp delivery grenade"
|
|
spawner_type = /mob/living/simple_animal/hostile/carp
|
|
deliveryamt = 5
|
|
origin_tech = "materials=3;magnets=4;syndicate=3"
|
|
|
|
/obj/item/weapon/grenade/spawnergrenade/feral_cats
|
|
name = "feral cat delivery grenade"
|
|
desc = "This grenade contains 8 dehydrated feral cats in a similar manner to dehydrated monkeys, which, upon detonation, will be rehydrated by a small reservoir of water contained within the grenade. These cats will then attack anything in sight."
|
|
spawner_type = /mob/living/simple_animal/hostile/feral_cat
|
|
deliveryamt = 5
|
|
origin_tech = "materials=3;magnets=4;syndicate=3"
|
|
|
|
/obj/item/weapon/grenade/spawnergrenade/feral_cats/prime() //Own proc for this because the regular one would flash people which was dumb.
|
|
update_mob()
|
|
if(spawner_type && deliveryamt)
|
|
var/turf/T = get_turf(src)
|
|
playsound(T, 'sound/effects/phasein.ogg', 100, 1)
|
|
|
|
for(var/i=1, i<=deliveryamt, i++)
|
|
var/atom/movable/x = new spawner_type
|
|
x.loc = T
|
|
if(prob(50))
|
|
for(var/j = 1, j <= rand(1, 3), j++)
|
|
step(x, pick(NORTH,SOUTH,EAST,WEST))
|
|
|
|
|
|
qdel(src)
|
|
return
|