-
Notifications
You must be signed in to change notification settings - Fork 749
Cookoff - Improve ammo detonation sounds #5327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
e3c5f78
initital commit
jokoho48 298924e
use Define for SOS
jokoho48 0b4e0b8
fix some issues that got introduced in 1.70
jokoho48 575b0a3
Prepare config for sounds
jokoho48 b24e3f1
add New Sounds
jokoho48 2c52150
add LAxemann to Author
jokoho48 50b225d
add Object Pooling
jokoho48 607aa68
fix small mistake
jokoho48 6f734e6
change pool clearing timing
jokoho48 61c56c3
change pool wait time
jokoho48 e5863a9
fix Cookoff sound cleanup
jokoho48 294f22d
Merge branch 'master' into ImproveCookoffSounds
jokoho48 0acbf75
Merge branch 'master' into ImproveCookoffSounds
jokoho48 ff7e60b
change to Jonpas Method
jokoho48 abe1cc3
improve sound Volume over Distance (asked by Bux)
jokoho48 6effc54
Merge branch 'master' into ImproveCookoffSounds
jokoho48 3852d10
improve a calculation
jokoho48 37a00c2
Merge branch 'master' into ImproveCookoffSounds
jokoho48 93e3e67
Merge branch 'master' into ImproveCookoffSounds
johnb432 ff585a7
Merge branch 'master' into ImproveCookoffSounds
johnb432 771219e
Use playSound3D locally
johnb432 3fa025a
Merge branch 'master' into ImproveCookoffSounds
johnb432 bc044fd
Make sounds configurable by 3rd party mods
johnb432 4bc2016
Added comments, used macros
johnb432 baa749e
Update CfgSounds.hpp
johnb432 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| #define VOLUME 2 | ||
| #define PITCH 1 | ||
|
|
||
| #define SHOTSOUND(type,dist,N,maxDistance)\ | ||
| class GVAR(TRIPLES(type,dist,N)) {\ | ||
| sound[] = {QPATHTOF(sounds\type\DOUBLES(dist,N).wss), VOLUME, PITCH, maxDistance};\ | ||
| titles[] = {};\ | ||
| } | ||
|
|
||
| #define SHOTSOUNDCLASS(type,dist,maxDistance)\ | ||
| SHOTSOUND(type,dist,1,maxDistance);\ | ||
| SHOTSOUND(type,dist,2,maxDistance);\ | ||
| SHOTSOUND(type,dist,3,maxDistance) | ||
|
|
||
| #define SHOTSOUNDCLASSTYPE(type,maxDistance)\ | ||
| SHOTSOUNDCLASS(type,close,maxDistance);\ | ||
| SHOTSOUNDCLASS(type,mid,maxDistance);\ | ||
| SHOTSOUNDCLASS(type,far,maxDistance) | ||
|
|
||
| // Allows other mods to change sounds for cook-off | ||
| class CfgSounds { | ||
| // These macros set up the sounds for the various classes | ||
| SHOTSOUNDCLASSTYPE(shotbullet,1250); | ||
| SHOTSOUNDCLASSTYPE(shotrocket,1600); | ||
| SHOTSOUNDCLASSTYPE(shotshell,1300); | ||
|
|
||
| // Missiles use the same sounds as rockets | ||
| class GVAR(shotmissile_close_1): GVAR(shotrocket_close_1) {}; | ||
| class GVAR(shotmissile_close_2): GVAR(shotrocket_close_2) {}; | ||
| class GVAR(shotmissile_close_3): GVAR(shotrocket_close_3) {}; | ||
| class GVAR(shotmissile_mid_1): GVAR(shotrocket_mid_1) {}; | ||
| class GVAR(shotmissile_mid_2): GVAR(shotrocket_mid_2) {}; | ||
| class GVAR(shotmissile_mid_3): GVAR(shotrocket_mid_3) {}; | ||
| class GVAR(shotmissile_far_1): GVAR(shotrocket_far_1) {}; | ||
| class GVAR(shotmissile_far_2): GVAR(shotrocket_far_2) {}; | ||
| class GVAR(shotmissile_far_3): GVAR(shotrocket_far_3) {}; | ||
|
|
||
| // Submunitions have the same sound as bullets, but a higher maxDistance | ||
| class GVAR(shotsubmunitions_close_1): GVAR(shotbullet_close_1) { | ||
| sound[] = {QPATHTOF(sounds\shotbullet\close_1.wss), VOLUME, PITCH, 1600}; | ||
| }; | ||
| class GVAR(shotsubmunitions_close_2): GVAR(shotbullet_close_2) { | ||
| sound[] = {QPATHTOF(sounds\shotbullet\close_2.wss), VOLUME, PITCH, 1600}; | ||
| }; | ||
| class GVAR(shotsubmunitions_close_3): GVAR(shotbullet_close_3) { | ||
| sound[] = {QPATHTOF(sounds\shotbullet\close_3.wss), VOLUME, PITCH, 1600}; | ||
| }; | ||
| class GVAR(shotsubmunitions_mid_1): GVAR(shotbullet_far_1) { | ||
| sound[] = {QPATHTOF(sounds\shotbullet\mid_1.wss), VOLUME, PITCH, 1600}; | ||
| }; | ||
| class GVAR(shotsubmunitions_mid_2): GVAR(shotbullet_mid_2) { | ||
| sound[] = {QPATHTOF(sounds\shotbullet\mid_2.wss), VOLUME, PITCH, 1600}; | ||
| }; | ||
| class GVAR(shotsubmunitions_mid_3): GVAR(shotbullet_mid_3) { | ||
| sound[] = {QPATHTOF(sounds\shotbullet\mid_3.wss), VOLUME, PITCH, 1600}; | ||
| }; | ||
| class GVAR(shotsubmunitions_far_1): GVAR(shotbullet_far_1) { | ||
| sound[] = {QPATHTOF(sounds\shotbullet\far_1.wss), VOLUME, PITCH, 1600}; | ||
| }; | ||
| class GVAR(shotsubmunitions_far_2): GVAR(shotbullet_far_2) { | ||
| sound[] = {QPATHTOF(sounds\shotbullet\far_2.wss), VOLUME, PITCH, 1600}; | ||
| }; | ||
| class GVAR(shotsubmunitions_far_3): GVAR(shotbullet_far_3) { | ||
| sound[] = {QPATHTOF(sounds\shotbullet\far_3.wss), VOLUME, PITCH, 1600}; | ||
| }; | ||
| }; | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| forfiles /s /m *.wav /c "DeWSSDos -wss/0 -P -V -Y @path @FNAME.wss" |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.