Skip to content

Commit

Permalink
The sound of shells dropping from a gun is no longer louder than the …
Browse files Browse the repository at this point in the history
…gunitself. Reloading modified (ParadiseSS13#22800)

* please have mercy

* actually you probably hear bigger guns reload maybe.

* extra true, removes mag sound if silenced

* Update code/modules/projectiles/guns/projectile_gun.dm

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>

---------

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
  • Loading branch information
2 people authored and BR54FF committed Oct 23, 2023
1 parent b6853a3 commit d1d4127
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions code/modules/projectiles/guns/projectile_gun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
if(eject_casing && !QDELETED(ammo_chambered))
ammo_chambered.forceMove(get_turf(src)) //Eject casing onto ground.
ammo_chambered.SpinAnimation(10, 1) //next gen special effects
playsound(src, chambered.casing_drop_sound, 100, 1)
playsound(src, chambered.casing_drop_sound, 60, TRUE, ignore_walls = FALSE, extrarange = SILENCED_SOUND_EXTRARANGE, falloff_distance = 0)
if(empty_chamber)
chambered = null
chamber_round()
Expand All @@ -82,7 +82,10 @@
user.remove_from_mob(AM)
magazine = AM
magazine.forceMove(src)
playsound(src, magin_sound, 50, 1)
if(w_class >= WEIGHT_CLASS_NORMAL && !suppressed)
playsound(src, magin_sound, 50, TRUE)
else
playsound(src, magin_sound, 50, TRUE, ignore_walls = FALSE, extrarange = SILENCED_SOUND_EXTRARANGE, falloff_distance = 0)
chamber_round()
AM.update_icon()
update_icon()
Expand Down

0 comments on commit d1d4127

Please sign in to comment.