Skip to content
Permalink
Browse files

change default weapon sound{Start,Hit*} volumes

  • Loading branch information...
rtri
rtri committed Sep 5, 2019
1 parent cad8923 commit 29a048930c5c1a2162502640c7469f107c978d85
Showing with 3 additions and 4 deletions.
  1. +3 −4 rts/Sim/Weapons/WeaponDef.cpp
@@ -1,5 +1,4 @@
/* This file is part of the Spring engine (GPL v2 or later), see LICENSE.html */

#include "WeaponDef.h"

#include "Game/TraceRay.h"
@@ -524,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 29a0489

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