* Splits projectiles into different files for readability * Update tgstation.dme * I love how the dme cleans itself up
25 lines
777 B
Plaintext
25 lines
777 B
Plaintext
/obj/item/projectile/bullet/dnainjector
|
|
name = "\improper DNA injector"
|
|
icon_state = "syringeproj"
|
|
var/obj/item/dnainjector/injector
|
|
damage = 5
|
|
hitsound_wall = "shatter"
|
|
|
|
/obj/item/projectile/bullet/dnainjector/on_hit(atom/target, blocked = FALSE)
|
|
if(iscarbon(target))
|
|
var/mob/living/carbon/M = target
|
|
if(blocked != 100)
|
|
if(M.can_inject(null, FALSE, def_zone, FALSE))
|
|
if(injector.inject(M, firer))
|
|
QDEL_NULL(injector)
|
|
return TRUE
|
|
else
|
|
blocked = 100
|
|
target.visible_message("<span class='danger'>\The [src] was deflected!</span>", \
|
|
"<span class='userdanger'>You were protected against \the [src]!</span>")
|
|
return ..()
|
|
|
|
/obj/item/projectile/bullet/dnainjector/Destroy()
|
|
QDEL_NULL(injector)
|
|
return ..()
|