Skip to content
Permalink
Browse files

change default weapon sound{Start,Hit*} volumes

  • Loading branch information...
rtri
rtri committed Sep 5, 2019
1 parent 26d93c7 commit 76c241edcea26d9dc9a3581d5f9e5ed40ac13d46
Showing with 3 additions and 3 deletions.
  1. +3 −3 rts/Sim/Weapons/WeaponDef.cpp
@@ -523,14 +523,14 @@ void WeaponDef::LoadSound(
) {
switch (hashString(soundKey.c_str())) {
case hashString("soundStart"): {
CommonDefHandler::AddSoundSetData(soundData, wdTable.GetString(soundKey, ""), wdTable.GetFloat(soundKey + "Volume", -1.0f));
CommonDefHandler::AddSoundSetData(soundData, wdTable.GetString(soundKey, ""), wdTable.GetFloat(soundKey + "Volume", 1.0f));
} break;

case hashString("soundHitDry"): {
CommonDefHandler::AddSoundSetData(soundData, wdTable.GetString(soundKey, wdTable.GetString("soundHit", "")), wdTable.GetFloat(soundKey + "Volume", wdTable.GetFloat("soundHitVolume", -1.0f)));
CommonDefHandler::AddSoundSetData(soundData, wdTable.GetString(soundKey, wdTable.GetString("soundHit", "")), wdTable.GetFloat(soundKey + "Volume", wdTable.GetFloat("soundHitVolume", 1.0f)));
} break;
case hashString("soundHitWet"): {
CommonDefHandler::AddSoundSetData(soundData, wdTable.GetString(soundKey, wdTable.GetString("soundHit", "")), wdTable.GetFloat(soundKey + "Volume", wdTable.GetFloat("soundHitVolume", -1.0f)));
CommonDefHandler::AddSoundSetData(soundData, wdTable.GetString(soundKey, wdTable.GetString("soundHit", "")), wdTable.GetFloat(soundKey + "Volume", wdTable.GetFloat("soundHitVolume", 1.0f)));
} break;

default: {

0 comments on commit 76c241e

Please sign in to comment.
You can’t perform that action at this time.