Skip to content

Commit

Permalink
Sound Update
Browse files Browse the repository at this point in the history
  • Loading branch information
YourPalHolidays committed Jul 23, 2024
1 parent 7ea2288 commit 61fb6e5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
Binary file added code/modules/halo/sounds/shotgun_fire.ogg
Binary file not shown.
Binary file added code/modules/halo/sounds/shotgun_pump.ogg
Binary file not shown.
Binary file added code/modules/halo/sounds/shotgun_reload.ogg
Binary file not shown.
15 changes: 13 additions & 2 deletions code/modules/halo/weapons/shotguns.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
icon = 'code/modules/halo/weapons/icons/Weapon Sprites.dmi'
icon_state = "m90"
item_state = "m90"
fire_sound = 'code/modules/halo/sounds/Shotgun_Fire_New.wav'
reload_sound = 'code/modules/halo/sounds/Shotgun_Reload_New.wav'
fire_sound = 'code/modules/halo/sounds/shotgun_fire.ogg'
reload_sound = 'code/modules/halo/sounds/shotgun_reload.ogg'
ammo_type = /obj/item/ammo_casing/shotgun/pellet/high_power
caliber = "shotgunhighpower"
max_shells = 8
Expand All @@ -29,6 +29,17 @@
slot_s_store_str = 'code/modules/halo/weapons/icons/Armor_Weapons.dmi',
)

/obj/item/weapon/gun/projectile/shotgun/pump/m90_ts/pump(mob/M as mob)
playsound(M, 'code/modules/halo/sounds/shotgun_pump.ogg', 60, 1)

if(chambered)//We have a shell in the chamber
chambered.eject(get_turf(src), angle2dir(dir2angle(loc.dir)+ejection_angle))//Eject casing
chambered = null

if(loaded.len)
var/obj/item/ammo_casing/AC = loaded[1] //load next casing.
loaded -= AC //Remove casing from loaded list.
chambered = AC

/obj/item/weapon/gun/projectile/shotgun/pump/m90_ts/verb/toggle_light()
set category = "Object"
Expand Down

0 comments on commit 61fb6e5

Please sign in to comment.