diff --git a/code/modules/projectiles/ammunition/boxes.dm b/code/modules/projectiles/ammunition/boxes.dm index ac0dde64c0..5dd745231c 100644 --- a/code/modules/projectiles/ammunition/boxes.dm +++ b/code/modules/projectiles/ammunition/boxes.dm @@ -67,9 +67,9 @@ /obj/item/ammo_magazine/c9mm name = "ammunition Box (9mm)" - icon_state = "9mm" + icon_state = "9mm" origin_tech = list(TECH_COMBAT = 2) - matter = list(DEFAULT_WALL_MATERIAL = 1800) + matter = list(DEFAULT_WALL_MATERIAL = 1800) caliber = "9mm" ammo_type = /obj/item/ammo_casing/c9mm max_ammo = 30 @@ -192,3 +192,15 @@ max_ammo = 20 multiple_sprites = 1 +/obj/item/ammo_magazine/g12 + name = "magazine (12 gauge)" + icon_state = "g12" + mag_type = MAGAZINE + caliber = "shotgun" + matter = list(DEFAULT_WALL_MATERIAL = 2200) + ammo_type = /obj/item/ammo_casing/shotgun/pellet + max_ammo = 24 + multiple_sprites = 1 + +/obj/item/ammo_magazine/g12/empty + initial_ammo = 0 diff --git a/code/modules/projectiles/guns/projectile/automatic.dm b/code/modules/projectiles/guns/projectile/automatic.dm index 1fd6a6bb0c..bb54c4e879 100644 --- a/code/modules/projectiles/guns/projectile/automatic.dm +++ b/code/modules/projectiles/guns/projectile/automatic.dm @@ -10,7 +10,7 @@ slot_flags = SLOT_BELT ammo_type = /obj/item/ammo_casing/c9mm multi_aim = 1 - + firemodes = list( list(name="semiauto", burst=1, fire_delay=0), list(name="3-round bursts", burst=3, move_delay=4, accuracy = list(0,-1,-1,-2,-2), dispersion = list(0.0, 0.6, 1.0)), @@ -64,7 +64,7 @@ slot_flags = SLOT_BACK load_method = MAGAZINE magazine_type = /obj/item/ammo_magazine/c762 - + firemodes = list( list(name="semiauto", burst=1, fire_delay=0), list(name="3-round bursts", burst=3, move_delay=6, accuracy = list(0,-1,-1,-2,-2), dispersion = list(0.0, 0.6, 0.6)), @@ -117,7 +117,7 @@ magazine_type = /obj/item/ammo_magazine/a556 auto_eject = 1 auto_eject_sound = 'sound/weapons/smg_empty_alarm.ogg' - + burst_delay = 4 firemode_type = /datum/firemode/z8 firemodes = list( @@ -125,7 +125,7 @@ list(name="3-round bursts", burst=3, move_delay=6, accuracy = list(0,-1,-1), dispersion = list(0.0, 0.6, 0.6)), list(name="fire grenades", use_launcher=1) ) - + var/obj/item/weapon/gun/launcher/grenade/underslung/launcher /obj/item/weapon/gun/projectile/automatic/z8/New() @@ -185,12 +185,12 @@ fire_sound = 'sound/weapons/Gunshot_light.ogg' load_method = MAGAZINE magazine_type = /obj/item/ammo_magazine/a762 - + firemodes = list( list(name="short bursts", burst=5, move_delay=6, accuracy = list(0,-1,-1,-2,-2,-2,-3,-3), dispersion = list(0.6, 1.0, 1.0, 1.0, 1.2)), list(name="long bursts", burst=8, move_delay=8, accuracy = list(0,-1,-1,-2,-2,-2,-3,-3), dispersion = list(1.0, 1.0, 1.0, 1.0, 1.2)), ) - + var/cover_open = 0 /obj/item/weapon/gun/projectile/automatic/l6_saw/special_check(mob/user) @@ -230,3 +230,30 @@ user << "You need to open the cover to unload [src]." return ..() + +/obj/item/weapon/gun/projectile/automatic/as24 + name = "\improper AS-24 automatic shotgun" + desc = "A durable, rugged looking automatic weapon of a make popular on the frontier worlds. Uses 12 gauge shells. It is unmarked." + icon_state = "ashot" + item_state = null + w_class = 4 + force = 10 + caliber = "shotgun" + origin_tech = list(TECH_COMBAT = 6, TECH_MATERIAL = 1, TECH_ILLEGAL = 4) + slot_flags = SLOT_BACK + load_method = MAGAZINE + magazine_type = /obj/item/ammo_magazine/g12 + + firemodes = list( + list(name="semiauto", burst=1, fire_delay=0), + list(name="3-round bursts", burst=3, move_delay=6, accuracy = list(0,-1,-1,-2,-2), dispersion = list(0.0, 0.6, 0.6)), + list(name="short bursts", burst=5, move_delay=6, accuracy = list(0,-1,-1,-2,-2), dispersion = list(0.6, 1.0, 1.0, 1.0, 1.2)), + ) + +/obj/item/weapon/gun/projectile/automatic/z8/update_icon() + ..() + if(ammo_magazine) + icon_state = "ashot-[round(ammo_magazine.stored_ammo.len,12)]" + else + icon_state = "ashot" + return diff --git a/icons/obj/ammo.dmi b/icons/obj/ammo.dmi index 779d34c7d1..1cb6952bb6 100644 Binary files a/icons/obj/ammo.dmi and b/icons/obj/ammo.dmi differ diff --git a/icons/obj/gun.dmi b/icons/obj/gun.dmi index f0c9ac7b8d..317e3777e1 100644 Binary files a/icons/obj/gun.dmi and b/icons/obj/gun.dmi differ