Much nicer syringe gun implementation

Makes syringe guns a type of launcher gun, and removes the hack
projectile.
Also moves syringe and dart gun source files into the modules/projectile
folder.
This commit is contained in:
mwerezak
2015-02-13 21:21:43 -05:00
parent 0d89717cf2
commit f8977c65af
17 changed files with 185 additions and 182 deletions

View File

@@ -22,14 +22,10 @@
/obj/item/weapon/gun/launcher/proc/update_release_force(obj/item/projectile)
return 0
/obj/item/weapon/gun/launcher/process_projectile(obj/projectile, mob/user, atom/target, var/target_zone, var/params=null, var/pointblank=0, var/reflex=0)
if(!istype(projectile, /obj/item)) return 0
var/obj/item/I = projectile
update_release_force(I)
I.loc = get_turf(user)
I.throw_at(target, throw_distance, release_force, user)
/obj/item/weapon/gun/launcher/process_projectile(obj/item/projectile, mob/user, atom/target, var/target_zone, var/params=null, var/pointblank=0, var/reflex=0)
update_release_force(projectile)
projectile.loc = get_turf(user)
projectile.throw_at(target, throw_distance, release_force, user)
return 1
/obj/item/weapon/gun/launcher/attack_self(mob/living/user as mob)