Files
Bubberstation/code/modules/projectiles/boxes_magazines/external/sniper.dm
ynot01 27650dac1d Prevents desert eagles from loading sniper rounds (and vice versa) (#75382)
## About The Pull Request

This splits CALIBER_50 into CALIBER_50BMG and CALIBER_50AE, setting the
sniper rifle to use the former and the deagle to use the latter.
## Why It's Good For The Game

Prevents each of these weapons from loading calibers that they are not
intended to.

Recorded from yogs:


![teS5bum](https://github.com/tgstation/tgstation/assets/28408322/856a8af0-2fd4-40a2-b473-0bea160028e4)
## Changelog
🆑
fix: Desert Eagles can no longer load .50 BMG sniper rifle rounds and
vice versa.
/🆑
2023-05-13 00:04:07 -07:00

43 lines
1.7 KiB
Plaintext

/obj/item/ammo_box/magazine/sniper_rounds
name = "anti-materiel sniper rounds (.50 BMG)"
icon_state = ".50mag"
base_icon_state = ".50mag"
ammo_type = /obj/item/ammo_casing/p50
max_ammo = 6
caliber = CALIBER_50BMG
/obj/item/ammo_box/magazine/sniper_rounds/update_icon_state()
. = ..()
icon_state = "[base_icon_state][ammo_count() ? "-ammo" : ""]"
/obj/item/ammo_box/magazine/sniper_rounds/surplus
name = "anti-materiel sniper rounds (.50 BMG Surplus)"
icon_state = "surplus"
base_icon_state = "surplus"
ammo_type = /obj/item/ammo_casing/p50/surplus
/obj/item/ammo_box/magazine/sniper_rounds/disruptor
name = "anti-materiel sniper rounds (.50 BMG Bzzt)"
desc = "Disruptor sniper rounds. A special blend of soporific chemicals \
and a electromagnetic payload to cause anything to come to a grinding halt."
base_icon_state = "disruptor"
ammo_type = /obj/item/ammo_casing/p50/disruptor
/obj/item/ammo_box/magazine/sniper_rounds/incendiary
name = "anti-materiel sniper rounds (.50 BMG incendiary)"
desc = "Incediary sniper rounds. Causes a massive combustion at the site of impact."
base_icon_state = "incendiary"
ammo_type = /obj/item/ammo_casing/p50/incendiary
/obj/item/ammo_box/magazine/sniper_rounds/penetrator
name = "anti-materiel sniper rounds (.50 BMG penetrator)"
desc = "An extremely powerful round capable of passing straight through cover and anyone unfortunate enough to be behind it."
base_icon_state = "penetrator"
ammo_type = /obj/item/ammo_casing/p50/penetrator
/obj/item/ammo_box/magazine/sniper_rounds/marksman
name = "anti-materiel sniper rounds (.50 BMG marksman)"
desc = "An extremely fast sniper round able to pretty much instantly shoot through something."
base_icon_state = "marksman"
ammo_type = /obj/item/ammo_casing/p50/marksman