mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-09 00:52:09 +00:00
Monkeys no longer deathemote when gibbed. Added a Coder/Host level debug verb that forces the master_controller to run its process() proc. Pressing the button while the master_controller is already process()ing is not advised. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@978 316c924e-a436-60f5-8080-3fe189b3f50e
33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
/obj/item/weapon/plastique/attack_self(mob/user as mob)
|
|
var/newtime = input(usr, "Please set the timer.", "Timer", 10)
|
|
src.timer = newtime
|
|
user << "Timer set for [src.timer] seconds."
|
|
|
|
/obj/item/weapon/plastique/afterattack(atom/target as obj|turf, mob/user as mob, flag)
|
|
if (!flag)
|
|
return
|
|
if (istype(target, /turf/unsimulated) || istype(target, /turf/simulated/shuttle))
|
|
return
|
|
user << "Planting explosives..."
|
|
if(do_after(user, 50) && get_dist(user, target) <= 1)
|
|
user.drop_item()
|
|
src.target = target
|
|
src.loc = null
|
|
var/location
|
|
if (isturf(target)) location = target
|
|
if (isobj(target)) location = target.loc
|
|
target.overlays += image('assemblies.dmi', "plastic-explosive2")
|
|
user << "Bomb has been planted. Timer counting down from [src.timer]."
|
|
spawn(src.timer*10)
|
|
if(target)
|
|
explosion(location, -1, -1, 2, 3)
|
|
if (istype(src.target, /turf/simulated/wall)) src.target:dismantle_wall(1)
|
|
else src.target.ex_act(1)
|
|
if (isobj(src.target))
|
|
if (src.target)
|
|
del(src.target)
|
|
if (src)
|
|
del(src)
|
|
|
|
/obj/item/weapon/plastique/attack(mob/M as mob, mob/user as mob, def_zone)
|
|
return |