Skip to content

Commit

Permalink
fix: more sounds for the fake gun sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
derkalle4 committed Nov 19, 2024
1 parent aa0bda3 commit 9ae0dcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RollTheDice+DicePlayerMakeFakeGunSoundss.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public partial class RollTheDice : BasePlugin
("Bizon", "Weapon_bizon.Single", 10, 1.5f),
("P90", "Weapon_P90.Single", 15, 1.1f),
("G3SG1", "Weapon_G3SG1.Single", 11, 1.1f),
("Negev", "Weapon_Negev.Single", 50, 0.7f),
("Negev", "Weapon_Negev.Single", 35, 0.7f),
("Nova", "Weapon_Nova.Single", 3, 2.5f),
("AUG", "Weapon_AUG.Single", 30, 1.1f),
("M4A1", "Weapon_M4A1.Single", 25, 0.9f)
Expand Down Expand Up @@ -68,7 +68,7 @@ private void EventDicePlayerMakeFakeGunSoundsOnTick()
.Replace("{playerName}", player.PlayerName)
.Replace("{weapon}", weaponName));
// reset timer
_playersWithFakeGunSounds[player] = (int)Server.CurrentTime + _random.Next(playTotal * (int)soundLength + 5, (playTotal * (int)soundLength) + 10);
_playersWithFakeGunSounds[player] = (int)Server.CurrentTime + _random.Next(playTotal * (int)soundLength + 2, (playTotal * (int)soundLength));
}
catch (Exception e)
{
Expand Down

0 comments on commit 9ae0dcf

Please sign in to comment.