-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the issue that SFX variants are not global (#5335)
* Fix the issue that SFX variants are not global what means that different players can get different pressure Cookoff sounds to prevent that i split up the sounds in 3 types and used a Weighted select to have the befor used values back * add todo for 1.74 * inherit in CfgSFX from 1 class
- Loading branch information
1 parent
5cf7569
commit 2aa0072
Showing
3 changed files
with
23 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
|
||
class CfgSFX { | ||
class GVAR(CookOff) { | ||
name = QGVAR(cookoff); | ||
// Index 4 is percentage chance to play, in theory high pressure is way more likely | ||
variant0[] = {PATHTOF(sounds\cookoff_low_pressure.ogg),6,1,400,0.1,0,0,0}; | ||
variant1[] = {PATHTOF(sounds\cookoff_mid_pressure.ogg),6,1,400,0.25,0,0,0}; | ||
variant2[] = {PATHTOF(sounds\cookoff_high_pressure.ogg),6,1,400,0.65,0,0,0}; | ||
sounds[] = {"variant0","variant1","variant2"}; | ||
class GVAR(CookOff_low) { | ||
name = QGVAR(cookoff_low); | ||
sound[] = {QPATHTOF(sounds\cookoff_low_pressure.ogg),6,1,400,1,0,0,0}; | ||
sounds[] = {"sound"}; | ||
titles[] = {}; | ||
empty[] = {"",0,0,0,0,0,0,0}; | ||
}; | ||
class GVAR(CookOff_mid): GVAR(CookOff_low) { | ||
name = QGVAR(cookoff_mid); | ||
sound[] = {QPATHTOF(sounds\cookoff_mid_pressure.ogg),6,1,400,1,0,0,0}; | ||
}; | ||
class GVAR(CookOff_high): GVAR(CookOff_low) { | ||
name = QGVAR(cookoff_high); | ||
sound[] = {QPATHTOF(sounds\cookoff_high_pressure.ogg),6,1,400,1,0,0,0}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters