iSneakyPewPew
Refugee
Making a mod so I can hear people talk to me in Discord while running the Auger, Chainsaw, or Nail gun.
Everything with the Nailgun works flawlessly:
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'nailgun_')]/LocalCrouchVolumeScale/@value">0.25</set>
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'nailgun_')]/CrouchNoiseScale/@value">0.25</set>
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'nailgun_')]/Noise/@muffled_when_crouched">0.25</set>
You can shoot the nailgun, crouch and shoot again and notice the difference in volume. This works with the reload as well, and as desired.
For the Auger or Chainsaw you need to switch weapons, THEN crouch, THEN switch back to them for the volume difference to occur, but it doesn't work for left click action (Auger_Fire_Start, chainsaw_fire_rev) and I'm not sure if I'm just missing something or this is a bug.
Auger:
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'auger_')]/LocalCrouchVolumeScale/@value">0.25</set>
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'Auger_')]/LocalCrouchVolumeScale/@value">0.25</set>
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'auger_')]/CrouchNoiseScale/@value">0.25</set>
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'Auger_')]/CrouchNoiseScale/@value">0.25</set>
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'auger_')]/Noise/@muffled_when_crouched">0.25</set>
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'Auger_')]/Noise/@muffled_when_crouched">0.25</set>
Chainsaw:
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'chainsaw_')]/LocalCrouchVolumeScale/@value">0.25</set>
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'chainsaw_')]/CrouchNoiseScale/@value">0.25</set>
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'chainsaw_')]/Noise/@muffled_when_crouched">0.25</set>
*I did notice that the name of these changed at some point as Auger_Fire_Start used to be auger_fire_start and something similar on the chainsaw happened according to a GitHub post from 2019. I'm wondering if someone forgot to do a thing when they changed the names. It may be a typo, but the sounds.xml in the Data\Config lists some of these things with "name=" in the comments, instead of what's being used "value=", so maybe there's something there.
Additionally, On the Auger and Chainsaw, I tried to build up each SoundDataNode Element to have the same variables by adding the Noise element to each that did not have it already, and adding muffled_when_crouched attribute to each Noise element that lacked it, in hopes that they were somehow related to LocalCrouchVolumeScale, but no luck.
Lastly, I tried adding the MaxVoices, MaxVoicesPerEntity values to the Auger and Chainsaw (yoinked values from the Nailgun), in hopes that might be it, but no luck there either.
If I messed anything up as far as terminology, I apologize, I've been learning XML for about 2 days now. I did my best.
Everything with the Nailgun works flawlessly:
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'nailgun_')]/LocalCrouchVolumeScale/@value">0.25</set>
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'nailgun_')]/CrouchNoiseScale/@value">0.25</set>
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'nailgun_')]/Noise/@muffled_when_crouched">0.25</set>
You can shoot the nailgun, crouch and shoot again and notice the difference in volume. This works with the reload as well, and as desired.
For the Auger or Chainsaw you need to switch weapons, THEN crouch, THEN switch back to them for the volume difference to occur, but it doesn't work for left click action (Auger_Fire_Start, chainsaw_fire_rev) and I'm not sure if I'm just missing something or this is a bug.
Auger:
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'auger_')]/LocalCrouchVolumeScale/@value">0.25</set>
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'Auger_')]/LocalCrouchVolumeScale/@value">0.25</set>
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'auger_')]/CrouchNoiseScale/@value">0.25</set>
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'Auger_')]/CrouchNoiseScale/@value">0.25</set>
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'auger_')]/Noise/@muffled_when_crouched">0.25</set>
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'Auger_')]/Noise/@muffled_when_crouched">0.25</set>
Chainsaw:
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'chainsaw_')]/LocalCrouchVolumeScale/@value">0.25</set>
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'chainsaw_')]/CrouchNoiseScale/@value">0.25</set>
<set xpath="/Sounds/SoundDataNode[starts-with(@name,'chainsaw_')]/Noise/@muffled_when_crouched">0.25</set>
*I did notice that the name of these changed at some point as Auger_Fire_Start used to be auger_fire_start and something similar on the chainsaw happened according to a GitHub post from 2019. I'm wondering if someone forgot to do a thing when they changed the names. It may be a typo, but the sounds.xml in the Data\Config lists some of these things with "name=" in the comments, instead of what's being used "value=", so maybe there's something there.
Additionally, On the Auger and Chainsaw, I tried to build up each SoundDataNode Element to have the same variables by adding the Noise element to each that did not have it already, and adding muffled_when_crouched attribute to each Noise element that lacked it, in hopes that they were somehow related to LocalCrouchVolumeScale, but no luck.
Lastly, I tried adding the MaxVoices, MaxVoicesPerEntity values to the Auger and Chainsaw (yoinked values from the Nailgun), in hopes that might be it, but no luck there either.
If I messed anything up as far as terminology, I apologize, I've been learning XML for about 2 days now. I did my best.
Last edited by a moderator: