From 4373165e2152a108f9a7a684df445d5bb79d7c00 Mon Sep 17 00:00:00 2001 From: theColdflame Date: Sun, 4 Sep 2016 14:38:39 +0100 Subject: [PATCH] Adds additional variants of 10mm ammunition. (#5596) * adds variants of 10mm ammunition you can shoot people with it * ones which work * third time's the charm * adds the letter 'u' * makes armor pen values more reasonable * rebalanced AP --- .../projectiles/ammunition/ammo_casings.dm | 9 +++++++++ code/modules/projectiles/ammunition/magazines.dm | 15 +++++++++++++++ code/modules/projectiles/projectile/bullets.dm | 14 ++++++++++++++ 3 files changed, 38 insertions(+) diff --git a/code/modules/projectiles/ammunition/ammo_casings.dm b/code/modules/projectiles/ammunition/ammo_casings.dm index 2a893755589..e78a87d0839 100644 --- a/code/modules/projectiles/ammunition/ammo_casings.dm +++ b/code/modules/projectiles/ammunition/ammo_casings.dm @@ -27,6 +27,15 @@ caliber = "10mm" projectile_type = /obj/item/projectile/bullet/midbullet3 +/obj/item/ammo_casing/c10mm/ap + projectile_type = /obj/item/projectile/bullet/midbullet3/ap + +/obj/item/ammo_casing/c10mm/fire + projectile_type = /obj/item/projectile/bullet/midbullet3/fire + +/obj/item/ammo_casing/c10mm/hp + projectile_type = /obj/item/projectile/bullet/midbullet3/hp + /obj/item/ammo_casing/c9mm desc = "A 9mm bullet casing." caliber = "9mm" diff --git a/code/modules/projectiles/ammunition/magazines.dm b/code/modules/projectiles/ammunition/magazines.dm index a97bde454c6..137d4258410 100644 --- a/code/modules/projectiles/ammunition/magazines.dm +++ b/code/modules/projectiles/ammunition/magazines.dm @@ -180,6 +180,21 @@ max_ammo = 8 multiple_sprites = 2 +/obj/item/ammo_box/magazine/m10mm/fire + name = "pistol magazine (10mm incendiary)" + desc = "A gun magazine. Loaded with rounds which ignite the target." + ammo_type = /obj/item/ammo_casing/c10mm/fire + +/obj/item/ammo_box/magazine/m10mm/hp + name = "pistol magazine (10mm HP)" + desc= "A gun magazine. Loaded with hollow-point rounds, extremely effective against unarmored targets, but nearly useless against protective clothing." + ammo_type = /obj/item/ammo_casing/c10mm/hp + +/obj/item/ammo_box/magazine/m10mm/ap + name = "pistol magazine (10mm AP)" + desc= "A gun magazine. Loaded with rounds which penetrate armour, but are less effective against normal targets" + ammo_type = /obj/item/ammo_casing/c10mm/ap + /obj/item/ammo_box/magazine/m10mm/empty //for maint drops desc = "A gun magazine. Seems to be broken and can only hold one bullet. Pretty useless." max_ammo = 1 diff --git a/code/modules/projectiles/projectile/bullets.dm b/code/modules/projectiles/projectile/bullets.dm index 8c40044ad2d..88d5946742a 100644 --- a/code/modules/projectiles/projectile/bullets.dm +++ b/code/modules/projectiles/projectile/bullets.dm @@ -112,6 +112,20 @@ /obj/item/projectile/bullet/midbullet3 damage = 30 +/obj/item/projectile/bullet/midbullet3/hp + damage = 40 + armour_penetration = -50 + +/obj/item/projectile/bullet/midbullet3/ap + damage = 27 + armour_penetration = 40 + +/obj/item/projectile/bullet/midbullet3/fire/on_hit(atom/target, blocked = 0) + if(..(target, blocked)) + var/mob/living/M = target + M.adjust_fire_stacks(1) + M.IgniteMob() + /obj/item/projectile/bullet/heavybullet damage = 35