Made some "tactical" explosives for Noize

Use it on itself to set the timer length (defaults to 10 seconds)
  Can be applied to floors, walls, monkeys, whatever
  Whatever it is applied to suffers a max-severity ex_act()(turf turns to space, objects are destroyed, mobs gib), aside from walls, which are simply busted down to not even girder
  Minimal damage to everything else in range, as with a PDA bomb
  Fits in your pocket for convenient carry
  Replaces the piss-weak syndiebombs for anyone with a syndicate uplink, comes in 2-packs

Low-severity explosions do not have a 100% chance of knocking walls down to girders anymore.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@662 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
n3ophyt3@gmail.com
2010-12-18 23:55:20 +00:00
parent ad248c0604
commit 10d382258f
4 changed files with 21 additions and 4 deletions

View File

@@ -1647,3 +1647,13 @@ Total SMES charging rate should not exceed total power generation rate, or an ov
w_class = 2.0
m_amt = 50
/obj/item/weapon/plastique
name = "Plastic Explosives"
desc = "Used to put holes in specific areas without too much extra hole."
icon = 'assemblies.dmi'
icon_state = "timer-igniter-tank0"
item_state = "plasma-c"
flags = FPRINT | TABLEPASS | USEDELAY
w_class = 2.0
var/timer = 10
var/atom/target = null

View File

@@ -40,7 +40,7 @@
if ((O.client && !( O.blinded )))
O << text("\red [src] has been scanned by [user] with the [W]")
else
if (!( istype(W, /obj/item/weapon/grab) ) || !(istype(W, /obj/item/weapon/cleaner)) || !(istype(W, /obj/item/weapon/plantbgone)) )
if (!( istype(W, /obj/item/weapon/grab) ) && !(istype(W, /obj/item/weapon/plastique)) &&!(istype(W, /obj/item/weapon/cleaner)) && !(istype(W, /obj/item/weapon/plantbgone)) )
for(var/mob/O in viewers(src, null))
if ((O.client && !( O.blinded )))
O << text("\red <B>[] has been hit by [] with []</B>", src, user, W)

View File

@@ -1681,7 +1681,7 @@ Code:
src.menu_message += "<A href='byond://?src=\ref[src];buy_item=sleepypen'>Sleepy Pen</A> (5)<BR>"
src.menu_message += "<A href='byond://?src=\ref[src];buy_item=cloak'>Cloaking Device</A> (4)<BR>"
src.menu_message += "<A href='byond://?src=\ref[src];buy_item=sword'>Energy Sword</A> (4)<BR>"
src.menu_message += "<A href='byond://?src=\ref[src];buy_item=bomb'>Low-Yield Bomb</A> (4)<BR>"
src.menu_message += "<A href='byond://?src=\ref[src];buy_item=bomb'>Plastic Explosives</A> (4)<BR>"
src.menu_message += "<A href='byond://?src=\ref[src];buy_item=powersink'>Power Sink</A> (5)<BR>"
src.menu_message += "<A href='byond://?src=\ref[src];buy_item=detomatix'>Detomatix Cartridge</A> (3)<BR>"
src.menu_message += "<A href='byond://?src=\ref[src];buy_item=space'>Syndicate-made Space Suit (inludes a helmet)</A> (3)<BR>"
@@ -1766,7 +1766,8 @@ Code:
if("bomb")
if (src.uses >= 4)
src.uses -= 4
new /obj/spawner/newbomb/timer/syndicate(get_turf(src.hostpda))
new /obj/item/weapon/plastique(get_turf(src.hostpda))
new /obj/item/weapon/plastique(get_turf(src.hostpda))
if("powersink")
if (src.uses >= 5)
src.uses -= 5

View File

@@ -265,7 +265,13 @@
else
dismantle_wall(devastated=1)
if(3.0)
dismantle_wall()
var/proba
if (istype(src, /turf/simulated/wall/r_wall))
proba = 15
else
proba = 40
if (prob(proba))
dismantle_wall()
else
return