Etherealist0327
Refugee
This is my first mod that I'm attempting to create from scratch. I have modified other user's mods before, but this is the first.
Quick rundown from my research:
Stealth Values in sounds.xml:
- ID: I just made that one up so it would be easier to use search&massReplace
- (deprecated)volume: volume of the sound which can trigger AI wake
- range: the cumulative range value that goes into the player's stealth meter
- clamp: sound does not add to the stealth bar if the stealth bar is above that value.
- time: game time seconds until noise is removed
- muffled_when_crouched: scales noise range when entity is crouched
- heat_map_strength: how much to add to heat map (once 100 is hit, horde scout is spawned)
- heat_map_time: how long the heat_map_strength will be included in the total heat_map_strength (in game time divided by 10 - for legacy reasons)
Stealth Buckets for ID:
1 - minor sounds, earth/cloth hit
2 - loud steps, trash, hitting stone/wood, silenced mp5
3 - hit glass/metal
4 - auger loop, death screams
5 - gunshot loud explosions
Current game value for sniper_rifle_s_fire (assuming this was for silenced weapon fire):
<Noise ID = "5" range="20" volume="60" time="2" heat_map_strength="0.3" heat_map_time="120"/>
Now I've been beating my head against the wall for the syntax, but everything i do does not seem to actually modify the stealth meter in game. Everything compiles correctly when i load it though.
The one that I expect to work:
<set xpath="/sounds/SoundDataNode[@name=sniperrifle_s_fire]/@range">7</set>
Logic (In sounds.xml, under data node named sniperrifle_s_fire, set range value to be 7) Reason for not specifying Noise is because there are no other ranged variables listed in datanode, so modifying multiples doesnt matter at this point.
My file actually modifies volume, sets heatmap stuff to 0 and other stuff as well to make sure i tested each variable, but nothing seems to actually work. The only thing I can think of is that the base game XML is not referencing the silenced DataNodes anymore.
If you can help that'd be awesome.
Thanks!
Quick rundown from my research:
Stealth Values in sounds.xml:
- ID: I just made that one up so it would be easier to use search&massReplace
- (deprecated)volume: volume of the sound which can trigger AI wake
- range: the cumulative range value that goes into the player's stealth meter
- clamp: sound does not add to the stealth bar if the stealth bar is above that value.
- time: game time seconds until noise is removed
- muffled_when_crouched: scales noise range when entity is crouched
- heat_map_strength: how much to add to heat map (once 100 is hit, horde scout is spawned)
- heat_map_time: how long the heat_map_strength will be included in the total heat_map_strength (in game time divided by 10 - for legacy reasons)
Stealth Buckets for ID:
1 - minor sounds, earth/cloth hit
2 - loud steps, trash, hitting stone/wood, silenced mp5
3 - hit glass/metal
4 - auger loop, death screams
5 - gunshot loud explosions
Current game value for sniper_rifle_s_fire (assuming this was for silenced weapon fire):
<Noise ID = "5" range="20" volume="60" time="2" heat_map_strength="0.3" heat_map_time="120"/>
Now I've been beating my head against the wall for the syntax, but everything i do does not seem to actually modify the stealth meter in game. Everything compiles correctly when i load it though.
The one that I expect to work:
<set xpath="/sounds/SoundDataNode[@name=sniperrifle_s_fire]/@range">7</set>
Logic (In sounds.xml, under data node named sniperrifle_s_fire, set range value to be 7) Reason for not specifying Noise is because there are no other ranged variables listed in datanode, so modifying multiples doesnt matter at this point.
My file actually modifies volume, sets heatmap stuff to 0 and other stuff as well to make sure i tested each variable, but nothing seems to actually work. The only thing I can think of is that the base game XML is not referencing the silenced DataNodes anymore.
If you can help that'd be awesome.
Thanks!