From bfb3871ec3445a773e4a89ad6040c8dd9045786d Mon Sep 17 00:00:00 2001 From: Anewbe Date: Mon, 3 Apr 2017 15:05:57 -0500 Subject: [PATCH] Adds hollowpoint rounds, for bears and such --- .../modules/projectiles/ammunition/bullets.dm | 43 +++++++++++++++++++ .../modules/projectiles/projectile/bullets.dm | 14 ++++++ 2 files changed, 57 insertions(+) diff --git a/code/modules/projectiles/ammunition/bullets.dm b/code/modules/projectiles/ammunition/bullets.dm index ace4cb1fb8..add0170643 100644 --- a/code/modules/projectiles/ammunition/bullets.dm +++ b/code/modules/projectiles/ammunition/bullets.dm @@ -31,6 +31,10 @@ projectile_type = /obj/item/projectile/ion/small matter = list(DEFAULT_WALL_MATERIAL = 130, "uranium" = 100) +/* + * 9mm + */ + /obj/item/ammo_casing/c9mm desc = "A 9mm bullet casing." caliber = "9mm" @@ -65,6 +69,10 @@ projectile_type = /obj/item/projectile/bullet/pistol/ap */ +/* + * 45 ammo + */ + /obj/item/ammo_casing/c45 desc = "A .45 bullet casing." caliber = ".45" @@ -101,6 +109,15 @@ icon_state = "empcasing" matter = list(DEFAULT_WALL_MATERIAL = 130, "uranium" = 100) +/obj/item/ammo_casing/c45/hp + desc = "A .45 hollow-point bullet casing." + projectile_type = /obj/item/projectile/bullet/pistol/medium/hollow + + +/* + * 10mm + */ + /obj/item/ammo_casing/a10mm desc = "A 10mm bullet casing." caliber = "10mm" @@ -113,6 +130,10 @@ icon_state = "empcasing" matter = list(DEFAULT_WALL_MATERIAL = 130, "uranium" = 100) +/* + * Shotguns + */ + /obj/item/ammo_casing/shotgun name = "shotgun slug" desc = "A 12 gauge slug." @@ -178,6 +199,10 @@ // projectile_type = /obj/item/projectile/bullet/shotgun/ion matter = list(DEFAULT_WALL_MATERIAL = 360, "uranium" = 240) +/* + * 762mm + */ + /obj/item/ammo_casing/a762 desc = "A 7.62mm bullet casing." caliber = "a762" @@ -199,6 +224,12 @@ projectile_type = /obj/item/projectile/bullet/blank matter = list(DEFAULT_WALL_MATERIAL = 90) +/obj/item/ammo_casing/a762/hp + desc = "A 7.62mm hollow-point bullet casing." + projectile_type = /obj/item/projectile/bullet/rifle/a762/hollow + +//145mm + /obj/item/ammo_casing/a145 desc = "A 14.5mm shell." icon_state = "lcasing" @@ -206,6 +237,10 @@ projectile_type = /obj/item/projectile/bullet/rifle/a145 matter = list(DEFAULT_WALL_MATERIAL = 1250) +/* + * 556mm + */ + /obj/item/ammo_casing/a556 desc = "A 5.56mm bullet casing." caliber = "a556" @@ -222,6 +257,14 @@ icon_state = "rifle-casing" // Need to make an icon for these projectile_type = /obj/item/projectile/bullet/rifle/practice +/obj/item/ammo_casing/a556/hp + desc = "A 5.56mm hollow-point bullet casing." + projectile_type = /obj/item/projectile/bullet/rifle/a556/hollow + +/* + * Misc + */ + /obj/item/ammo_casing/rocket name = "rocket shell" desc = "A high explosive designed to be fired from a launcher." diff --git a/code/modules/projectiles/projectile/bullets.dm b/code/modules/projectiles/projectile/bullets.dm index f87f726bf3..cf62d9e0c8 100644 --- a/code/modules/projectiles/projectile/bullets.dm +++ b/code/modules/projectiles/projectile/bullets.dm @@ -137,6 +137,10 @@ damage = 20 armor_penetration = 15 +/obj/item/projectile/bullet/pistol/medium/hollow + damage = 30 + armor_penetration = -50 + /obj/item/projectile/bullet/pistol/strong //revolvers and matebas damage = 60 @@ -200,6 +204,11 @@ damage = 20 armor_penetration = 50 // At 40 or more armor, this will do more damage than standard rounds. +/obj/item/projectile/bullet/rifle/a762/hollow + damage = 35 + armor_penetration = -50 + penetrating = 0 + /obj/item/projectile/bullet/rifle/a556 damage = 35 @@ -207,6 +216,11 @@ damage = 30 armor_penetration = 50 // At 30 or more armor, this will do more damage than standard rounds. +/obj/item/projectile/bullet/rifle/a556/hollow + damage = 40 + armor_penetration = -50 + penetrating = 0 + /obj/item/projectile/bullet/rifle/a145 damage = 80 stun = 3