Skip to content

Commit

Permalink
Added OH58D ambient audio
Browse files Browse the repository at this point in the history
  • Loading branch information
ciribob committed May 5, 2024
1 parent 83357e5 commit c967934
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
Binary file added DCS-SR-Client/AudioEffects/Ambient/OH58D.wav
Binary file not shown.
3 changes: 3 additions & 0 deletions DCS-SR-Client/DCS-SR-Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,9 @@
<Content Include="AudioEffects\Ambient\Mosquito.wav">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="AudioEffects\Ambient\OH58D.wav">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="AudioEffects\Ambient\OH6A.wav">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
Expand Down
17 changes: 9 additions & 8 deletions Scripts/DCS-SRS/Scripts/DCS-SimpleRadioStandalone.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2488,14 +2488,15 @@ function SR.exportRadioOH58D(_data)

if SR.getAmbientVolumeEngine() > 10 then
-- engine on

local _door = SR.getButtonPosition(800)

if _door > 0.2 then
_data.ambient = {vol = 0.35, abType = 'oh58d' }
else
_data.ambient = {vol = 0.2, abType = 'oh58d' }
end
_data.ambient = {vol = 0.3, abType = 'oh58d' }
--
-- local _door = SR.getButtonPosition(800)
--
-- if _door > 0.2 then
-- _data.ambient = {vol = 0.35, abType = 'oh58d' }
-- else
-- _data.ambient = {vol = 0.2, abType = 'oh58d' }
-- end

else
-- engine off
Expand Down

0 comments on commit c967934

Please sign in to comment.