Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
ff8a625
Add framework for new ammo types and
genessee-forgot-his-password-again Jul 18, 2023
efe905c
Update _persistence.dme
genessee-forgot-his-password-again Jul 18, 2023
ddfabb6
add DMI files for 2 new guns
genessee-forgot-his-password-again Jul 18, 2023
3b5d484
Merge branch 'PersistentSS13:dev' into gun-expansion-part2
genessee-forgot-his-password-again Jul 18, 2023
a7460bd
Add 'Zip' and 'Rimfire' pistols
genessee-forgot-his-password-again Jul 18, 2023
c94588b
oops
genessee-forgot-his-password-again Jul 18, 2023
007a318
Adds new guns to protolathe
genessee-forgot-his-password-again Jul 18, 2023
b7a252e
Make legacy ammunition types unprintable
genessee-forgot-his-password-again Jul 18, 2023
818fb65
updates .22LR bullet descriptions to be less vague
genessee-forgot-his-password-again Jul 18, 2023
d6ebd4b
Add DMI files for .45 rounds
genessee-forgot-his-password-again Jul 18, 2023
01b9642
Add .45 mags/boxes, update 10mm weapons to .45
genessee-forgot-his-password-again Jul 18, 2023
3b0b7b3
Add 5.56 ammunition DMIs
genessee-forgot-his-password-again Jul 18, 2023
3742556
Add magazine icons + bulletcode
genessee-forgot-his-password-again Jul 18, 2023
d6e2881
oops
genessee-forgot-his-password-again Jul 18, 2023
e28fa9d
Update 5.56 weapons to 5.56x45mm
genessee-forgot-his-password-again Jul 18, 2023
e122892
Update 5.56x45mm fire sound
genessee-forgot-his-password-again Jul 18, 2023
9928ac5
Add new designs to protolathe
genessee-forgot-his-password-again Jul 19, 2023
32b4c9c
Add 12g boxes and ammunition
genessee-forgot-his-password-again Sep 10, 2023
03d8f98
Update shotguns to use new caliber
genessee-forgot-his-password-again Sep 10, 2023
baba01c
Fix calbier var
genessee-forgot-his-password-again Sep 10, 2023
14780f1
Add new files to persistence.dme
genessee-forgot-his-password-again Sep 10, 2023
e3c6776
oops lol
genessee-forgot-his-password-again Sep 10, 2023
826ecf1
okay look i'm distracted
genessee-forgot-his-password-again Sep 10, 2023
930d76e
Fix Colt magazine + bullet stuff for other guns
genessee-forgot-his-password-again Sep 11, 2023
577b9ce
Add Sawn-Off Shotgun
genessee-forgot-his-password-again Sep 11, 2023
7d2f863
Fix w_class thing
genessee-forgot-his-password-again Sep 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions mods/persistence/_persistence.dme
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
#include "controllers\subsystems\processing\specifications.dm"
#include "datums\extensions\extensions.dm"
#include "datums\extensions\holster.dm"
#include "datums\inventory_slots\_inventory_slot.dm"
#include "datums\extensions\label.dm"
#include "datums\extensions\lockable.dm"
#include "datums\extensions\assembly\assembly.dm"
#include "datums\extensions\eye\area_control.dm"
#include "datums\inventory_slots\_inventory_slot.dm"
#include "datums\mind\mind.dm"
#include "datums\music_tracks\blood_loss.dm"
#include "datums\music_tracks\juno.dm"
Expand Down Expand Up @@ -132,8 +132,9 @@
#include "modules\fabrication\_fabricator.dm"
#include "modules\fabrication\fabricator_build.dm"
#include "modules\fabrication\fabricator_intake.dm"
#include "modules\fabrication\designs\textile\space.dm"
#include "modules\fabrication\designs\protolathe\designs_ammunition.dm"
#include "modules\fabrication\designs\protolathe\designs_weapons.dm"
#include "modules\fabrication\designs\textile\space.dm"
#include "modules\hydroponics\grown.dm"
#include "modules\hydroponics\grown_indedible.dm"
#include "modules\hydroponics\seed_machines.dm"
Expand Down Expand Up @@ -222,20 +223,31 @@
#include "modules\power\fuel_assembly\fuel_assembly.dm"
#include "modules\power\fusion\fuel_injector.dm"
#include "modules\projectiles\ammunition.dm"
#include "modules\projectiles\overrides.dm"
#include "modules\projectiles\ammunition\5.56\bullets.dm"
#include "modules\projectiles\ammunition\5.56\magazines.dm"
#include "modules\projectiles\ammunition\12g\bullets.dm"
#include "modules\projectiles\ammunition\12g\magazines.dm"
#include "modules\projectiles\ammunition\22_LR\bullets.dm"
#include "modules\projectiles\ammunition\22_LR\magazines.dm"
#include "modules\projectiles\ammunition\45\bullets.dm"
#include "modules\projectiles\ammunition\45\magazines.dm"
#include "modules\projectiles\guns\projectile.dm"
#include "modules\projectiles\guns\energy\tier0\lasrifle.dm"
#include "modules\projectiles\guns\energy\tier1\laspistol.dm"
#include "modules\projectiles\guns\energy\tier1\lasrifle.dm"
#include "modules\projectiles\guns\projectile\tier0\boltaction.dm"
#include "modules\projectiles\guns\projectile\tier0\pistol.dm"
#include "modules\projectiles\guns\projectile\tier0\revolver.dm"
#include "modules\projectiles\guns\projectile\tier0\shotgun.dm"
#include "modules\projectiles\guns\projectile\tier1\boltaction.dm"
#include "modules\projectiles\guns\projectile\tier1\pistol.dm"
#include "modules\projectiles\guns\projectile\tier1\pistol_gold.dm"
#include "modules\projectiles\guns\projectile\tier1\pistol_pocket.dm"
#include "modules\projectiles\guns\projectile\tier1\revolver.dm"
#include "modules\projectiles\guns\projectile\tier1\shotgun_db.dm"
#include "modules\projectiles\guns\projectile\tier1\shotgun_db_sawn.dm"
#include "modules\projectiles\guns\projectile\tier1\shotgun_pump.dm"
#include "modules\projectiles\overrides.dm"
#include "modules\reagents\Chemistry-Holder.dm"
#include "modules\reagents\chems\chems.dm"
#include "modules\reagents\chems\recipes.dm"
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added mods/persistence/icons/obj/ammunition/22lr/tier0.dmi
Binary file not shown.
Binary file added mods/persistence/icons/obj/ammunition/22lr/tier1.dmi
Binary file not shown.
Binary file added mods/persistence/icons/obj/ammunition/45/tier0.dmi
Binary file not shown.
Binary file added mods/persistence/icons/obj/ammunition/45/tier1.dmi
Binary file not shown.
Binary file added mods/persistence/icons/obj/ammunition/5.56/tier0.dmi
Binary file not shown.
Binary file added mods/persistence/icons/obj/ammunition/5.56/tier1.dmi
Binary file not shown.
Binary file not shown.
Binary file added mods/persistence/icons/obj/guns/tier0/pistol.dmi
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/datum/fabricator_recipe/protolathe/ammunition/fivefiftysix/magazine/tier0
path = /obj/item/ammo_magazine/fivefiftysix/handmade

/datum/fabricator_recipe/protolathe/ammunition/fivefiftysix/box/tier0
path = /obj/item/ammo_magazine/box/fivefiftysix/handmade

/datum/fabricator_recipe/protolathe/ammunition/fivefiftysix/magazine/tier1
path = /obj/item/ammo_magazine/fivefiftysix/simple

/datum/fabricator_recipe/protolathe/ammunition/fivefiftysix/box/tier1
path = /obj/item/ammo_magazine/box/fivefiftysix/simple

/datum/fabricator_recipe/protolathe/ammunition/twentytwolr/magazine/tier0
path = /obj/item/ammo_magazine/twentytwolr/handmade

/datum/fabricator_recipe/protolathe/ammunition/twentytwolr/box/tier0
path = /obj/item/ammo_magazine/box/twentytwolr/handmade

/datum/fabricator_recipe/protolathe/ammunition/twentytwolr/magazine/tier1
path = /obj/item/ammo_magazine/twentytwolr/simple

/datum/fabricator_recipe/protolathe/ammunition/twentytwolr/box/tier1
path = /obj/item/ammo_magazine/box/twentytwolr/simple

/datum/fabricator_recipe/protolathe/ammunition/fortyfive/magazine/tier0
path = /obj/item/ammo_magazine/fortyfive/handmade

/datum/fabricator_recipe/protolathe/ammunition/fortyfive/box/tier0
path = /obj/item/ammo_magazine/box/fortyfive/handmade

/datum/fabricator_recipe/protolathe/ammunition/fortyfive/magazine/tier1
path = /obj/item/ammo_magazine/fortyfive/simple

/datum/fabricator_recipe/protolathe/ammunition/fortyfive/box/tier1
path = /obj/item/ammo_magazine/box/fortyfive/simple
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
/datum/fabricator_recipe/protolathe/weapon/tier0/revolver
path = /obj/item/gun/projectile/revolver/handmade/empty

/datum/fabricator_recipe/protolathe/weapon/tier0/pistol
path = /obj/item/gun/projectile/pistol/handmade/empty

/datum/fabricator_recipe/protolathe/weapon/tier0/shotgun
path = /obj/item/gun/projectile/shotgun/handmade/empty

Expand All @@ -13,6 +16,9 @@
/datum/fabricator_recipe/protolathe/weapon/tier1/bolt_action
path = /obj/item/gun/projectile/bolt_action/simple/empty

/datum/fabricator_recipe/protolathe/weapon/tier1/pistol_pocket
path = /obj/item/gun/projectile/pistol_pocket/simple/empty

/datum/fabricator_recipe/protolathe/weapon/tier1/pistol
path = /obj/item/gun/projectile/pistol/simple/empty

Expand Down
82 changes: 82 additions & 0 deletions mods/persistence/modules/projectiles/ammunition/12g/bullets.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#define CALIBER_12G "12g"

/obj/item/ammo_casing/twelvegauge
name = "generic 12g shell"
desc = "An unsettlingly generic 12g shell."
icon = 'mods/persistence/icons/obj/ammunition/12g/tier1_slug.dmi'
caliber = CALIBER_12G
projectile_type = /obj/item/projectile/bullet/twelvegauge

/obj/item/ammo_casing/twelvegauge/slug
name = "generic 12g slug shell"
desc = "An unsettlingly generic 12g slug shell."
icon = 'mods/persistence/icons/obj/ammunition/12g/tier1_slug.dmi'
caliber = CALIBER_12G
projectile_type = /obj/item/projectile/bullet/twelvegauge

/obj/item/projectile/bullet/twelvegauge
fire_sound = 'sound/weapons/gunshot/shotgun.ogg'
damage = 40
distance_falloff = 3

/obj/item/ammo_casing/twelvegauge/buckshot
name = "generic 12g buckshot shell"
desc = "An unsettlingly generic 12g buckshot shell."
icon = 'mods/persistence/icons/obj/ammunition/12g/tier1_buckshot.dmi'
caliber = CALIBER_12G
projectile_type = /obj/item/projectile/bullet/pellet/twelvegauge

/obj/item/projectile/bullet/pellet/twelvegauge
fire_sound = 'sound/weapons/gunshot/shotgun.ogg'
damage = 10
pellets = 6
range_step = 1
spread_step = 10

/obj/item/ammo_casing/twelvegauge/slug/handmade
name = "makeshift 12g slug shell"
desc = "12g slug shell of dubious origin. Sports decent armor penetration capabilities and high damage, but suffers from poor range."
icon = 'mods/persistence/icons/obj/ammunition/12g/tier0_slug.dmi'
projectile_type = /obj/item/projectile/bullet/twelvegauge/handmade

/obj/item/projectile/bullet/twelvegauge/handmade
damage = 40
distance_falloff = 5
penetration_modifier = 1.1

/obj/item/ammo_casing/twelvegauge/buckshot/handmade
name = "makeshift 12g buckshot shell"
desc = "12g buckshot shell of dubious origin. Sports high damage, but suffers from poor armor penetration and very poor range."
icon = 'mods/persistence/icons/obj/ammunition/12g/tier0_buckshot.dmi'
projectile_type = /obj/item/projectile/bullet/pellet/twelvegauge/handmade

/obj/item/projectile/bullet/pellet/twelvegauge/handmade
damage = 10
pellets = 6
range_step = 1
spread_step = 10
penetration_modifier = 1.5

/obj/item/ammo_casing/twelvegauge/slug/simple
name = "standard 12g slug shell"
desc = "12g slug shell of ancient design. Sports decent armor penetration capabilities and high damage, but suffers from poor range."
icon = 'mods/persistence/icons/obj/ammunition/12g/tier1_slug.dmi'
projectile_type = /obj/item/projectile/bullet/twelvegauge/simple

/obj/item/projectile/bullet/twelvegauge/simple
damage = 60
distance_falloff = 5
penetration_modifier = 0.9

/obj/item/ammo_casing/twelvegauge/buckshot/simple
name = "standard 12g buckshot shell"
desc = "12g buckshot shell of ancient design. Sports high damage, but suffers from poor armor penetration and very poor range."
icon = 'mods/persistence/icons/obj/ammunition/12g/tier1_buckshot.dmi'
projectile_type = /obj/item/projectile/bullet/pellet/twelvegauge/simple

/obj/item/projectile/bullet/pellet/twelvegauge/simple
damage = 15
pellets = 6
range_step = 1
spread_step = 10
penetration_modifier = 1.3
67 changes: 67 additions & 0 deletions mods/persistence/modules/projectiles/ammunition/12g/magazines.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/obj/item/ammo_magazine/box/twelvegauge
name = "packet of generic 12g shells"
desc = "A packet of unsettlingly generic 12g shells."
icon_state = "box_12g1_slug"
icon = 'mods/persistence/icons/obj/ammunition/magazines.dmi'
material = /decl/material/solid/metal/steel
caliber = CALIBER_12G
ammo_type = /obj/item/ammo_casing/twelvegauge
max_ammo = 16

/obj/item/ammo_magazine/box/twelvegauge/slug
name = "packet of generic 12g slug shells"
desc = "A packet of unsettlingly generic 12g slug shells."
icon_state = "box_12g1_slug"
ammo_type = /obj/item/ammo_casing/twelvegauge/slug

/obj/item/ammo_magazine/box/twelvegauge/buckshot
name = "packet of generic 12g buckshot shells"
desc = "A packet of unsettlingly generic 12g buckshot shells."
icon_state = "box_12g1_buckshot"
ammo_type = /obj/item/ammo_casing/twelvegauge/buckshot

/obj/item/ammo_magazine/box/twelvegauge/slug/handmade
name = "packet of makeshift 12g slug shells"
desc = "Container of dubious origin intended for holding loose 12g slug shells."
icon_state = "box_12g0_slug"
origin_tech = "{'combat':1,'materials':1}"
material = /decl/material/solid/metal/steel
matter = list(
/decl/material/solid/plastic = MATTER_AMOUNT_TRACE
)
ammo_type = /obj/item/ammo_casing/twelvegauge/slug/handmade

/obj/item/ammo_magazine/box/twelvegauge/buckshot/handmade
name = "packet of makeshift 12g buckshot shells"
desc = "Container of dubious origin intended for holding loose 12g buckshot shells."
icon_state = "box_12g0_buckshot"
origin_tech = "{'combat':1,'materials':1}"
material = /decl/material/solid/metal/steel
matter = list(
/decl/material/solid/plastic = MATTER_AMOUNT_TRACE
)
ammo_type = /obj/item/ammo_casing/twelvegauge/buckshot/handmade

/obj/item/ammo_magazine/box/twelvegauge/slug/simple
name = "packet of standard 12g slug shells"
desc = "Container of ancient design intended for holding loose 12g slug shells."
icon_state = "box_12g1_slug"
origin_tech = "{'combat':2,'materials':2}"
material = /decl/material/solid/metal/steel
matter = list(
/decl/material/solid/plastic = MATTER_AMOUNT_REINFORCEMENT,
/decl/material/solid/cardboard = MATTER_AMOUNT_TRACE
)
ammo_type = /obj/item/ammo_casing/twelvegauge/slug/simple

/obj/item/ammo_magazine/box/twelvegauge/buckshot/simple
name = "packet of standard 12g buckshot shells"
desc = "Container of ancient design intended for holding loose 12g buckshot shells."
icon_state = "box_12g1_buckshot"
origin_tech = "{'combat':2,'materials':2}"
material = /decl/material/solid/metal/steel
matter = list(
/decl/material/solid/plastic = MATTER_AMOUNT_REINFORCEMENT,
/decl/material/solid/cardboard = MATTER_AMOUNT_TRACE
)
ammo_type = /obj/item/ammo_casing/twelvegauge/buckshot/simple
35 changes: 35 additions & 0 deletions mods/persistence/modules/projectiles/ammunition/22_LR/bullets.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#define CALIBER_22LR ".22LR"

/obj/item/ammo_casing/twentytwolr
name = "generic .22LR round"
desc = "An unsettlingly generic .22LR round."
icon = 'mods/persistence/icons/obj/ammunition/22lr/tier1.dmi'
caliber = CALIBER_22LR
projectile_type = /obj/item/projectile/bullet/twentytwolr

/obj/item/projectile/bullet/twentytwolr
fire_sound = 'sound/weapons/gunshot/gunshot_pistol.ogg'
damage = 10
distance_falloff = 1

/obj/item/ammo_casing/twentytwolr/handmade
name = "makeshift .22LR round"
desc = ".22 Long Rifle round of dubious origin. Sports poor range and very poor armor penetration due to shoddy construction."
icon = 'mods/persistence/icons/obj/ammunition/22lr/tier0.dmi'
projectile_type = /obj/item/projectile/bullet/twentytwolr/handmade

/obj/item/projectile/bullet/twentytwolr/handmade
damage = 15
distance_falloff = 6
penetration_modifier = 1.5

/obj/item/ammo_casing/twentytwolr/simple
name = "standard .22LR round"
desc = ".22 Long Rifle round of ancient design. Sports unimpressive range and poor armor penetration due to low velocity."
icon = 'mods/persistence/icons/obj/ammunition/22lr/tier1.dmi'
projectile_type = /obj/item/projectile/bullet/twentytwolr/simple

/obj/item/projectile/bullet/twentytwolr/simple
damage = 25
distance_falloff = 4
penetration_modifier = 1.2
66 changes: 66 additions & 0 deletions mods/persistence/modules/projectiles/ammunition/22_LR/magazines.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/obj/item/ammo_magazine/twentytwolr
name = "generic .22LR magazine"
desc = "An unsettlingly generic .22LR magazine."
icon = 'mods/persistence/icons/obj/ammunition/magazines.dmi'
icon_state = "22lr1"
mag_type = MAGAZINE
caliber = CALIBER_22LR
material = /decl/material/solid/metal/steel
ammo_type = /obj/item/ammo_casing/twentytwolr
initial_ammo = 0
max_ammo = 0
multiple_sprites = 1

/obj/item/ammo_magazine/box/twentytwolr
name = "packet of generic .22LR rounds"
desc = "A packet of unsettlingly generic .22LR rounds."
icon_state = "box_22lr1"
icon = 'mods/persistence/icons/obj/ammunition/magazines.dmi'
material = /decl/material/solid/metal/steel
caliber = CALIBER_22LR
ammo_type = /obj/item/ammo_casing/twentytwolr
max_ammo = 30

/obj/item/ammo_magazine/twentytwolr/handmade
name = "makeshift .22LR magazine"
desc = ".22LR magazine of dubious origin. Suffers from reduced capacity due to flimsy materials and shoddy craftsmanship."
icon_state = "22lr0"
origin_tech = "{'combat':1}"
material = /decl/material/solid/plastic
ammo_type = /obj/item/ammo_casing/twentytwolr/handmade
max_ammo = 5

/obj/item/ammo_magazine/box/twentytwolr/handmade
name = "packet of makeshift .22LR rounds"
desc = "Container of dubious origin intended for holding loose .22LR rounds."
icon_state = "box_22lr0"
origin_tech = "{'combat':1,'materials':1}"
material = /decl/material/solid/metal/steel
matter = list(
/decl/material/solid/plastic = MATTER_AMOUNT_TRACE
)
ammo_type = /obj/item/ammo_casing/twentytwolr/handmade

/obj/item/ammo_magazine/twentytwolr/simple
name = "standard .22LR magazine"
desc = ".22LR magazine of ancient design. Servicable capacity, but outpaced by more modern designs."
icon_state = "22lr1"
origin_tech = "{'combat':2}"
material = /decl/material/solid/metal/steel
matter = list(
/decl/material/solid/plastic = MATTER_AMOUNT_REINFORCEMENT
)
ammo_type = /obj/item/ammo_casing/twentytwolr/simple
max_ammo = 12

/obj/item/ammo_magazine/box/twentytwolr/simple
name = "packet of standard .22LR rounds"
desc = "Container of ancient design intended for holding loose .22LR rounds."
icon_state = "box_22lr1"
origin_tech = "{'combat':2,'materials':2}"
material = /decl/material/solid/metal/steel
matter = list(
/decl/material/solid/plastic = MATTER_AMOUNT_REINFORCEMENT,
/decl/material/solid/cardboard = MATTER_AMOUNT_TRACE
)
ammo_type = /obj/item/ammo_casing/twentytwolr/simple
Loading