Files
Paradise/code/game/objects/items/weapons/explosives.dm
petethegoat@gmail.com c122bee94b You can now store C4 in whatever, without blowing yourself up.
Changed the armoury layout a bit, Sec got two more riot suits, and lost two empty lockboxes.
Changed the medical room in Sec to an interrogation room! Credit to Smoke Carter for the design.
As a result, Mr Fixit has been powered off and returned to the armoury. Deploying him every round is likely to be a good idea.

Feedback is always welcome, especially from Sec Officers.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2462 316c924e-a436-60f5-8080-3fe189b3f50e
2011-10-31 22:05:29 +00:00

39 lines
1.6 KiB
Plaintext

/obj/item/weapon/plastique/attack_self(mob/user as mob)
var/newtime = input(usr, "Please set the timer.", "Timer", 10)
timer = newtime
user << "Timer set for [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) || istype(target, /obj/item/weapon/storage/))
return
user << "Planting explosives..."
if(ismob(target))
user.attack_log += "\[[time_stamp()]\] <font color='red'> [user.real_name] tried planting [name] on [target:real_name] ([target:ckey])</font>"
user.visible_message("\red [user.name] is trying to plant some kind of explosive on [target.name]!")
if(do_after(user, 50) && in_range(user, target))
user.drop_item()
target = target
loc = null
var/location
if (isturf(target)) location = target
if (isobj(target)) location = target.loc
if (ismob(target))
target:attack_log += "\[[time_stamp()]\]<font color='orange'> Had the [name] planted on them by [user.real_name] ([user.ckey])</font>"
user.visible_message("\red [user.name] finished planting an explosive on [target.name]!")
target.overlays += image('assemblies.dmi', "plastic-explosive2")
user << "Bomb has been planted. Timer counting down from [timer]."
spawn(timer*10)
if(target)
explosion(location, -1, -1, 2, 3)
if (istype(target, /turf/simulated/wall)) target:dismantle_wall(1)
else target.ex_act(1)
if (isobj(target))
if (target)
del(target)
if (src)
del(src)
/obj/item/weapon/plastique/attack(mob/M as mob, mob/user as mob, def_zone)
return