Files
kiwistation/code/modules/projectiles/projectile/bullets/dnainjector.dm
T
Fikou 14725daf58 repaths neurotoxin + embedding changes in bullets + adds effects when you shoot energy weapons (#52543)
* how

* Update alien_powers.dm

* adds impact effects, makes thinks that shouldnt embed not embed

* rogue pixel moment
2020-07-30 01:33:51 -03:00

26 lines
764 B
Plaintext

/obj/projectile/bullet/dnainjector
name = "\improper DNA injector"
icon_state = "syringeproj"
var/obj/item/dnainjector/injector
damage = 5
hitsound_wall = "shatter"
embedding = null
/obj/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 BULLET_ACT_HIT
else
blocked = 100
target.visible_message("<span class='danger'>\The [src] is deflected!</span>", \
"<span class='userdanger'>You are protected against \the [src]!</span>")
return ..()
/obj/projectile/bullet/dnainjector/Destroy()
QDEL_NULL(injector)
return ..()