mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 08:01:06 +00:00
* Adds icon and hitsound where needed. * Moves alt_attack to /obj/item and deletes weapons.dm * Replaced /obj/item/weapon with /obj/item * Fixes merge issues. * Fix merge issues.
32 lines
613 B
Plaintext
32 lines
613 B
Plaintext
/datum/wires/explosive
|
|
wire_count = 1
|
|
|
|
var/const/WIRE_EXPLODE = 1
|
|
|
|
/datum/wires/explosive/proc/explode()
|
|
return
|
|
|
|
/datum/wires/explosive/UpdatePulsed(var/index)
|
|
switch(index)
|
|
if(WIRE_EXPLODE)
|
|
explode()
|
|
|
|
/datum/wires/explosive/UpdateCut(var/index, var/mended)
|
|
switch(index)
|
|
if(WIRE_EXPLODE)
|
|
if(!mended)
|
|
explode()
|
|
|
|
/datum/wires/explosive/c4
|
|
holder_type = /obj/item/plastique
|
|
|
|
/datum/wires/explosive/c4/CanUse(var/mob/living/L)
|
|
var/obj/item/plastique/P = holder
|
|
if(P.open_panel)
|
|
return 1
|
|
return 0
|
|
|
|
/datum/wires/explosive/c4/explode()
|
|
var/obj/item/plastique/P = holder
|
|
P.explode(get_turf(P))
|