diff --git a/code/modules/projectiles/ammunition/special/syringe.dm b/code/modules/projectiles/ammunition/special/syringe.dm index caf5da3562..074f657e55 100644 --- a/code/modules/projectiles/ammunition/special/syringe.dm +++ b/code/modules/projectiles/ammunition/special/syringe.dm @@ -40,6 +40,26 @@ CG.syringes_left-- ..() +//smart dart test +/obj/item/ammo_casing/chemgun/smart + name = "smart dart synthesiser" + desc = "test." + projectile_type = /obj/item/projectile/bullet/dart/syringe/dart + firing_effect_type = null + harmful = FALSE + +/obj/item/ammo_casing/chemgun/smart/ready_proj(atom/target, mob/living/user, quiet, zone_override = "") + if(!BB) + return + if(istype(loc, /obj/item/gun/chem/smart)) + var/obj/item/gun/chem/smart/SG = loc + if(SG.syringes_left <= 0) + return + SG.reagents.trans_to(BB, 10) + BB.name = "Smart chemical dart" + SG.syringes_left-- + ..() + /obj/item/ammo_casing/dnainjector name = "rigged syringe gun spring" desc = "A high-power spring that throws DNA injectors." diff --git a/code/modules/projectiles/guns/misc/chem_gun.dm b/code/modules/projectiles/guns/misc/chem_gun.dm index 779ab64bc2..a5e29a254e 100644 --- a/code/modules/projectiles/guns/misc/chem_gun.dm +++ b/code/modules/projectiles/guns/misc/chem_gun.dm @@ -45,3 +45,16 @@ if(chambered && !chambered.BB) chambered.newshot() last_synth = world.time + +/obj/item/gun/chem/smart + name = "improved smartdart gun" + desc = "A Nanotrasen syringe gun, modified to automatically synthesise smart chemical darts, and instead hold reagents." + icon_state = "chemgun" + item_state = "chemgun" + +obj/item/gun/chem/smart/Initialize() + . = ..() + chambered = new /obj/item/ammo_casing/chemgun/smart(src) + START_PROCESSING(SSobj, src) + create_reagents(100, OPENCONTAINER) +