Skip to content

Commit

Permalink
non-military ammo nerf (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndroBetel authored Dec 7, 2024
1 parent 7015fe4 commit 339bfb2
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 74 deletions.
6 changes: 3 additions & 3 deletions code/datums/ammo/bullet/pistol.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
accuracy = HIT_ACCURACY_TIER_3
accuracy_var_low = PROJECTILE_VARIANCE_TIER_6
damage = 40
penetration= ARMOR_PENETRATION_TIER_2
penetration= -ARMOR_PENETRATION_TIER_2
shrapnel_chance = SHRAPNEL_CHANCE_TIER_2

/datum/ammo/bullet/pistol/tiny
Expand All @@ -30,7 +30,7 @@
name = "hollowpoint pistol bullet"

damage = 55 //hollowpoint is strong
penetration = 0 //hollowpoint can't pierce armor!
penetration = -ARMOR_PENETRATION_TIER_5 //hollowpoint can't pierce armor!
shrapnel_chance = SHRAPNEL_CHANCE_TIER_3 //hollowpoint causes shrapnel

// Used by M4A3 AP and mod88
Expand All @@ -39,7 +39,7 @@

damage = 25
accuracy = HIT_ACCURACY_TIER_2
penetration= ARMOR_PENETRATION_TIER_8
penetration= ARMOR_PENETRATION_TIER_2
shrapnel_chance = SHRAPNEL_CHANCE_TIER_2

/datum/ammo/bullet/pistol/ap/penetrating
Expand Down
4 changes: 2 additions & 2 deletions code/datums/ammo/bullet/revolver.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
headshot_state = HEADSHOT_OVERLAY_MEDIUM

damage = 70
penetration = ARMOR_PENETRATION_TIER_3
penetration = -ARMOR_PENETRATION_TIER_2
accuracy = HIT_ACCURACY_TIER_2

/datum/ammo/bullet/revolver/on_hit_mob(mob/entity, obj/projectile/bullet)
Expand All @@ -24,7 +24,7 @@
shrapnel_chance = 0
damage_falloff = 0
accurate_range = 12
penetration = ARMOR_PENETRATION_TIER_7
penetration = ARMOR_PENETRATION_TIER_4

/datum/ammo/bullet/revolver/heavy
name = "heavy revolver bullet"
Expand Down
16 changes: 14 additions & 2 deletions code/datums/ammo/bullet/rifle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,18 @@
// Misc

/datum/ammo/bullet/rifle/mar40
name = "7.62x39mm rifle bullet"
name = "8.8x29 rifle bullet"
damage = 45
penetration = ARMOR_PENETRATION_TIER_2

/datum/ammo/bullet/rifle/m16
name = "5.56x45 rifle bullet"
damage = 35

/datum/ammo/bullet/rifle/m16/ap
name = "armor-piercing 5.56x45 rifle bullet"
damage = 30
penetration = ARMOR_PENETRATION_TIER_5

/datum/ammo/bullet/rifle/ar10
name = "7.62x51 rifle bullet"
damage = 55
8 changes: 4 additions & 4 deletions code/datums/ammo/bullet/smg.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
damage = 34
accurate_range = 4
effective_range_max = 4
penetration = ARMOR_PENETRATION_TIER_1
penetration = -ARMOR_PENETRATION_TIER_2
shell_speed = AMMO_SPEED_TIER_6
damage_falloff = DAMAGE_FALLOFF_TIER_5
scatter = SCATTER_AMOUNT_TIER_6
Expand Down Expand Up @@ -64,7 +64,7 @@
icon_state = "nail-projectile"

damage = 25
penetration = ARMOR_PENETRATION_TIER_5
penetration = -ARMOR_PENETRATION_TIER_5
damage_falloff = DAMAGE_FALLOFF_TIER_6
accurate_range = 5
shell_speed = AMMO_SPEED_TIER_4
Expand Down Expand Up @@ -133,7 +133,7 @@
damage = 26
accurate_range = 7
effective_range_max = 7
penetration = ARMOR_PENETRATION_TIER_2
penetration = -ARMOR_PENETRATION_TIER_2
damage_falloff = DAMAGE_FALLOFF_TIER_7
scatter = SCATTER_AMOUNT_TIER_5

Expand All @@ -142,6 +142,6 @@
damage = 35
accurate_range = 7
effective_range_max = 10
penetration = ARMOR_PENETRATION_TIER_4
penetration = -ARMOR_PENETRATION_TIER_4
damage_falloff = DAMAGE_FALLOFF_TIER_6
scatter = SCATTER_AMOUNT_TIER_6
4 changes: 2 additions & 2 deletions code/datums/ammo/bullet/sniper.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
max_range = 32
scatter = 0
damage = 70
penetration= ARMOR_PENETRATION_TIER_10
penetration= ARMOR_PENETRATION_TIER_5
shell_speed = AMMO_SPEED_TIER_6
damage_falloff = 0

Expand Down Expand Up @@ -88,7 +88,7 @@
/datum/ammo/bullet/sniper/crude
name = "crude sniper bullet"
damage = 42
penetration = ARMOR_PENETRATION_TIER_6
penetration = -ARMOR_PENETRATION_TIER_2

/datum/ammo/bullet/sniper/crude/on_hit_mob(mob/M, obj/projectile/P)
. = ..()
Expand Down
1 change: 0 additions & 1 deletion code/datums/ammo/bullet/special_ammo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@
accuracy_var_high = PROJECTILE_VARIANCE_TIER_6
accurate_range = 12
damage = 45 //7.62x51 is scary
penetration= ARMOR_PENETRATION_TIER_6
shrapnel_chance = SHRAPNEL_CHANCE_TIER_2

/datum/ammo/bullet/pkp
Expand Down
54 changes: 6 additions & 48 deletions code/modules/projectiles/guns/rifles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@

/obj/item/weapon/gun/rifle/mar40
name = "\improper MAR-40 battle rifle"
desc = "A cheap, reliable assault rifle chambered in 7.62x39mm. Commonly found in the hands of criminals or mercenaries, or in the hands of the UPP or CLF."
desc = "A cheap, reliable assault rifle chambered in 8.8x29mm. Commonly found in the hands of criminals or mercenaries, or in the hands of the UPP or CLF."
icon = 'icons/obj/items/weapons/guns/guns_by_faction/colony.dmi'
icon_state = "mar40"
item_state = "mar40"
Expand Down Expand Up @@ -779,28 +779,6 @@
/obj/item/attachable/attached_gun/shotgun,
/obj/item/attachable/scope/slavic,
)
random_spawn_chance = 38
random_spawn_rail = list(
/obj/item/attachable/reddot,
/obj/item/attachable/reflex/,
/obj/item/attachable/scope/slavic,
/obj/item/attachable/magnetic_harness,
)
random_spawn_under = list(
/obj/item/attachable/gyro,
/obj/item/attachable/bipod,
/obj/item/attachable/attached_gun/flamer,
/obj/item/attachable/attached_gun/extinguisher,
/obj/item/attachable/attached_gun/shotgun,
/obj/item/attachable/burstfire_assembly,
)
random_spawn_muzzle = list(
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet/upp,
/obj/item/attachable/extended_barrel,
/obj/item/attachable/compensator,
)

flags_gun_features = GUN_AUTO_EJECTOR|GUN_CAN_POINTBLANK
start_automatic = TRUE

Expand All @@ -825,13 +803,13 @@
recoil = RECOIL_AMOUNT_TIER_5

/obj/item/weapon/gun/rifle/mar40/tactical
desc = "A cheap, reliable assault rifle chambered in 7.62x39mm. Commonly found in the hands of criminals or mercenaries, or in the hands of the UPP or CLF. This one has been equipped with an after-market ammo-counter."
desc = "A cheap, reliable assault rifle chambered in 8.8x29mm. Commonly found in the hands of criminals or mercenaries, or in the hands of the UPP or CLF. This one has been equipped with an after-market ammo-counter."
starting_attachment_types = list(/obj/item/attachable/angledgrip, /obj/item/attachable/suppressor, /obj/item/attachable/magnetic_harness)
flags_gun_features = GUN_AMMO_COUNTER|GUN_AUTO_EJECTOR|GUN_CAN_POINTBLANK

/obj/item/weapon/gun/rifle/mar40/carbine
name = "\improper MAR-30 battle carbine"
desc = "A cheap, reliable carbine chambered in 7.62x39mm. Commonly found in the hands of criminals or mercenaries."
desc = "A cheap, reliable carbine chambered in 8.8x29mm. Commonly found in the hands of criminals or mercenaries."
icon_state = "mar30"
item_state = "mar30"
fire_sound = 'sound/weapons/gun_mar40.ogg'
Expand Down Expand Up @@ -862,26 +840,6 @@
/obj/item/attachable/scope,
/obj/item/attachable/scope/mini,
)
random_spawn_chance = 35
random_spawn_rail = list(
/obj/item/attachable/reddot,
/obj/item/attachable/reflex/,
/obj/item/attachable/scope/mini,
/obj/item/attachable/magnetic_harness,
)
random_spawn_under = list(
/obj/item/attachable/angledgrip,
/obj/item/attachable/verticalgrip,
/obj/item/attachable/bipod,
/obj/item/attachable/attached_gun/extinguisher,
/obj/item/attachable/attached_gun/shotgun,
/obj/item/attachable/lasersight,
)
random_spawn_muzzle = list(
/obj/item/attachable/suppressor,
/obj/item/attachable/bayonet/upp,
/obj/item/attachable/extended_barrel,
)

/obj/item/weapon/gun/rifle/mar40/carbine/set_gun_config_values()
..()
Expand All @@ -892,13 +850,13 @@
recoil_unwielded = RECOIL_AMOUNT_TIER_3

/obj/item/weapon/gun/rifle/mar40/carbine/tactical
desc = "A cheap, reliable carbine chambered in 7.62x39mm. Commonly found in the hands of criminals or mercenaries. This one has been equipped with an after-market ammo-counter."
desc = "A cheap, reliable carbine chambered in 8.8x29mm. Commonly found in the hands of criminals or mercenaries. This one has been equipped with an after-market ammo-counter."
starting_attachment_types = list(/obj/item/attachable/verticalgrip, /obj/item/attachable/suppressor, /obj/item/attachable/magnetic_harness)
flags_gun_features = GUN_AMMO_COUNTER|GUN_AUTO_EJECTOR|GUN_CAN_POINTBLANK

/obj/item/weapon/gun/rifle/mar40/lmg
name = "\improper MAR-50 light machine gun"
desc = "A cheap, reliable LMG chambered in 7.62x39mm. Commonly found in the hands of slightly better funded criminals."
desc = "A cheap, reliable LMG chambered in 8.8x29mm. Commonly found in the hands of slightly better funded criminals."
icon_state = "mar50"
item_state = "mar50"
fire_sound = 'sound/weapons/gun_mar40.ogg'
Expand Down Expand Up @@ -944,7 +902,7 @@
recoil = RECOIL_AMOUNT_TIER_5

/obj/item/weapon/gun/rifle/mar40/lmg/tactical
desc = "A cheap, reliable LMG chambered in 7.62x39mm. Commonly found in the hands of slightly better funded criminals. This one has been equipped with an after-market ammo-counter."
desc = "A cheap, reliable LMG chambered in 8.8x29mm. Commonly found in the hands of slightly better funded criminals. This one has been equipped with an after-market ammo-counter."
starting_attachment_types = list(/obj/item/attachable/mar50barrel, /obj/item/attachable/bipod, /obj/item/attachable/magnetic_harness)
flags_gun_features = GUN_AMMO_COUNTER|GUN_CAN_POINTBLANK|GUN_WIELDED_FIRING_ONLY
//-------------------------------------------------------
Expand Down
23 changes: 11 additions & 12 deletions code/modules/projectiles/magazines/rifles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@
//MAR-40 AK CLONE //AK47 and FN FAL together as one.

/obj/item/ammo_magazine/rifle/mar40
name = "\improper MAR magazine (7.62x39mm)"
desc = "A 7.62x39mm magazine for the MAR series of firearms."
caliber = "7.62x39mm"
name = "\improper MAR magazine (8.8x29mm)"
desc = "A 8.8x29mm magazine for the MAR series of firearms."
caliber = "8.8x29mm"
icon = 'icons/obj/items/weapons/guns/ammo_by_faction/colony.dmi'
icon_state = "mar40"
default_ammo = /datum/ammo/bullet/rifle/mar40
Expand All @@ -221,16 +221,16 @@
w_class = SIZE_MEDIUM

/obj/item/ammo_magazine/rifle/mar40/extended
name = "\improper MAR extended magazine (7.62x39mm)"
desc = "A 7.62x39mm MAR magazine, this one carries more rounds than the average magazine."
name = "\improper MAR extended magazine (8.8x29mm)"
desc = "A 8.8x29mm magazine, this one carries more rounds than the average magazine."
max_rounds = 60
bonus_overlay = "mar40_ex"
icon_state = "mar40_extended"

/obj/item/ammo_magazine/rifle/mar40/lmg
name = "\improper MAR drum magazine (7.62x39mm)"
desc = "A 7.62x39mm drum magazine for the MAR-50 LMG."
caliber = "7.62x39mm"
name = "\improper MAR drum magazine (8.8x29mm)"
desc = "A 8.8x29mm drum magazine for the MAR-50 LMG."
caliber = "8.8x29mm"
icon_state = "mar50"
max_rounds = 100
gun_type = /obj/item/weapon/gun/rifle/mar40/lmg
Expand All @@ -244,7 +244,7 @@
caliber = "5.56x45mm"
icon = 'icons/obj/items/weapons/guns/ammo_by_faction/colony.dmi'
icon_state = "m16"
default_ammo = /datum/ammo/bullet/rifle
default_ammo = /datum/ammo/bullet/rifle/m16
max_rounds = 20
gun_type = /obj/item/weapon/gun/rifle/m16
w_class = SIZE_MEDIUM
Expand All @@ -257,7 +257,6 @@
caliber = "5.56x45mm"
icon = 'icons/obj/items/weapons/guns/ammo_by_faction/colony.dmi'
icon_state = "m16"
default_ammo = /datum/ammo/bullet/rifle
max_rounds = 30
gun_type = /obj/item/weapon/gun/rifle/m16
w_class = SIZE_MEDIUM
Expand All @@ -268,7 +267,7 @@
name = "\improper M16 AP magazine"
desc = "An AP 5.56x45mm magazine for the M16 assault rifle and its clones. Holds 20 rounds."
caliber = "5.56x45mm"
default_ammo = /datum/ammo/bullet/rifle/ap
default_ammo = /datum/ammo/bullet/rifle/m16/ap
max_rounds = 20
gun_type = /obj/item/weapon/gun/rifle/m16
w_class = SIZE_MEDIUM
Expand All @@ -283,7 +282,7 @@
caliber = "7.62x51mm"
icon = 'icons/obj/items/weapons/guns/ammo_by_faction/colony.dmi'
icon_state = "ar10"
default_ammo = /datum/ammo/bullet/rifle
default_ammo = /datum/ammo/bullet/rifle/ar10
max_rounds = 20
gun_type = /obj/item/weapon/gun/rifle/ar10
w_class = SIZE_MEDIUM
Expand Down

0 comments on commit 339bfb2

Please sign in to comment.