Page MenuHomeFeedback Tracker

Snow param in config does not take effect until forcing it with script command
New, NormalPublic

Description

When setting the snow parameter to true in the RainParticles class of the terrain config, vehicles and terrain still have default raining sounds.
The wiki suggest it should update the sound controller, but it doesn't. (see the class_RainParticles wiki links header/notes)
It only takes effect after i run this:

setRain rainParams

Here is video what i mean.
https://youtu.be/K002q6vGrHg?si=RhGo0z2Qc84dGxNb

https://community.bistudio.com/wiki/Arma_3:_CfgWorlds_Config_Reference#class_RainParticles
https://community.bistudio.com/wiki/Arma_3:_Sound:_SoundControllers
https://community.bistudio.com/wiki/setRain
https://community.bistudio.com/wiki/rainParams

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Sound
Steps To Reproduce
  • Use any map what has snow=1 in its RainParticles class or use these and open malden
class CfgPatches {
    class snowTest {
		author = "test";
		units[] = {};
		weapons[] = {};
		requiredVersion = 2.16;
		requiredAddons[] = {"A3_Data_F","A3_Map_Data","A3_Map_Malden"};
    };
};

class CfgWorlds {
    class CAWorld;
    class Malden: CAWorld {
        class RainParticles {
            // Parameters for the new particle rain
            // texture of the particle (r = alpha; g = normalX; b = normalY; a = color;)
            rainDropTexture="a3\data_f\snowflake4_ca.paa";
            // dropsInTexture - the number of drops that are present in the drop texture
            texDropCount=4;
            // minimum rain strength when the effect starts to be rendered
            minRainDensity = 0.01;
            // distance of the effect
            effectRadius=15;
            // coefficient of how much the wind influences water drops
            windCoef=25;
            // fall speed of the drops
            dropSpeed=2.5;
            // random part of the fall speed
            rndSpeed=0.5;
            // coefficient of how much the drop could randomly change direction
            rndDir=0.5;
            // width of the single drop
            dropWidth=0.07;
            // height of the single drop
            dropHeight=0.07;
            // color of the drop
            dropColor[]={1, 1, 1, 0.5};
            // luminescence of the drop facing to sun
            lumSunFront=0.0;
            // luminescence of the drop opposite to sun
            lumSunBack=0.2;
            // coefficient that tells us how much "refracted" light from the scene is added to the drop color
            refractCoef=0.5;
            // coefficient to tune color saturation of the refraction effect (0=BW, 1=original color)
            refractSaturation = 0.5;

            // SINCE Arma 3 v2.07.148385
            // rain is snow, will be used in "snow" env sound controller (optional, default is false)
            snow=1;
            // SINCE Arma 3 v2.07.148416
            // when true, the dropColor is preserved and not affected by eye accommodation (optional, default is false)
            dropColorStrong=0;	
        };
    };
};
  • Launch that map in editor and set overcast and rain to 1.
  • Put tank next to player unit and start the game.
  • You can hear raining sound on the vehicle.
  • Run this code
setRain rainParams
  • Raining sound disapears and everything seems to work as intended.

Note that before running that command

getAllEnvSoundControllers position player
returns: 
[["rain",1],["night",0],["windy",0.0647336],["daytime",0.500048],["distance",119.113],["meadows",0.773762],["trees",0.226238],["houses",0],["forest",0],["sea",0],["coast",0],["altitudeGround",0],["altitudeSea",0.00172424],["shooting",1],["deadBody",0],["fog",0],["yearTime",0.478082],["ambientTemp",19.092],["snow",0]]

after:
[["rain",0],["night",0],["windy",0.0647336],["daytime",0.500048],["distance",119.113],["meadows",0.773762],["trees",0.226238],["houses",0],["forest",0],["sea",0],["coast",0],["altitudeGround",0],["altitudeSea",0.00172424],["shooting",1],["deadBody",0],["fog",0],["yearTime",0.478082],["ambientTemp",19.092],["snow",1]]

it sets "rain" 1->0 and "snow" 0->1
https://community.bistudio.com/wiki/getAllEnvSoundControllers

rainParams command returns same values before and after running setRain.

["a3\data_f\snowflake4_ca.paa",4,0.01,15,25,2.5,0.5,0.5,0.07,0.07,[1,1,1,0.501961],0,0.2,0.5,0.5,true,false]

https://community.bistudio.com/wiki/rainParams

Test mission

Test config addon

Additional Information

also should the wiki entries be either 0 or 1, instead of false or true

snow=false;
dropColorStrong=false;
->
snow=0; 
dropColorStrong=0;

Event Timeline