mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-29 19:43:16 +00:00
* Gun sound updates Grenade Launcher sound source: https://freesound.org/people/LeMudCrab/sounds/163458/ * Actually, this is a better way to handle this. * Fixed accidental inconsistent indentation * Renames shotgun.ogg to Gunshot_shotgun.ogg Also actually changes the file names like I was supposed to last night. * *peers* Didn't I just fix this shit? * Actually fixes the missing files this time * Update audible_deception.dm * Changed tungsten core projectile sound by request * Actually no this line is stupid and makes me angry Simplifies dumb code that was badly copypasted. Also fixed missing D'eagle fire_sound * Smarter code Less copypasta, more runtimes prevented in case somebody decides to make a soundless gun whether done intentionally or not. * Update gun.dm
22 lines
954 B
Plaintext
22 lines
954 B
Plaintext
/obj/item/weapon/gun/projectile/garand
|
|
name = "\improper M1 Garand"
|
|
desc = "This is the vintage semi-automatic rifle that famously helped win the second World War. What the hell it's doing aboard a space station in the 26th century, you can only imagine. Uses 7.62mm rounds."
|
|
icon_state = "garand"
|
|
item_state = "boltaction"
|
|
w_class = ITEMSIZE_LARGE
|
|
caliber = "7.62mm"
|
|
origin_tech = list(TECH_COMBAT = 2, TECH_MATERIAL = 2)
|
|
slot_flags = SLOT_BACK
|
|
//fire_sound = 'sound/weapons/rifleshot.ogg'
|
|
load_method = MAGAZINE // ToDo: Make it so MAGAZINE, SPEEDLOADER and SINGLE_CASING can all be used on the same gun.
|
|
magazine_type = /obj/item/ammo_magazine/m762garand
|
|
allowed_magazines = list(/obj/item/ammo_magazine/m762garand)
|
|
auto_eject = 1
|
|
auto_eject_sound = 'sound/weapons/garand_ping.ogg'
|
|
|
|
/obj/item/weapon/gun/projectile/garand/update_icon()
|
|
if(ammo_magazine)
|
|
icon_state = initial(icon_state)
|
|
else
|
|
icon_state = "[initial(icon_state)]-e"
|