Skip to content

Commit

Permalink
Grenades - Add 3 more sounds to flashbang detonations (acemod#9982)
Browse files Browse the repository at this point in the history
* Add 3 more sounds to flashbang detonations

* Update addons/grenades/functions/fnc_flashbangThrownFuze.sqf

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

---------

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
  • Loading branch information
2 people authored and blake8090 committed Aug 18, 2024
1 parent 1d8c277 commit 3326135
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/grenades/functions/fnc_flashbangThrownFuze.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ params ["_projectile"];
TRACE_1("params",_projectile);

if (alive _projectile) then {
playSound3D ["A3\Sounds_F\arsenal\explosives\grenades\Explosion_HE_grenade_01.wss", _projectile, false, getPosASL _projectile, 5, 1.2, 400];
private _soundFile = format ["A3\Sounds_F\arsenal\explosives\grenades\Explosion_HE_grenade_0%1.wss", floor (random 4) + 1];
playSound3D [_soundFile, _projectile, false, getPosASL _projectile, 5, 1.2, 400];

["ace_flashbangExploded", [getPosASL _projectile]] call CBA_fnc_globalEvent;
};

0 comments on commit 3326135

Please sign in to comment.