8 static const int PARAM_LIGHT_MULT = 0;
9 static const int PARAM_NOISE_MULT = 1;
11 static const int L_0_NVG = 100;
12 static const int L_0_TOXIC_TINT = 200;
13 static const int L_1_NVG = 100;
14 static const int L_1_TOXIC_TINT = 200;
16 override int GetPostProcessEffectID()
21 override void RegisterMaterialParameters()
23 RegisterParameterScalarFloat(PARAM_LIGHT_MULT,
"lightIntensityMul",1.0,0.0,50.0);
24 RegisterParameterScalarFloat(PARAM_NOISE_MULT,
"noiseIntensity",0.0,0.0,50.0);
27 override void ApplyValueChanges()
29 if (m_UpdatedParameters.Count() > 0)
31 SetFinalParameterValue(-1);
34 m_UpdatedParameters.Clear();
38 override void SetFinalParameterValue(
int parameter_idx)
42 for (
int i = 0; i < PARAM_NOISE_MULT + 1; i++)
44 Param values = GetParameterCommandData(i).GetCurrentValues();
45 float value_var_float = Param1<float>.Cast(values).param1;
46 array_values.Insert(value_var_float);
49 g_Game.NightVissionLightParams(array_values.Get(PARAM_LIGHT_MULT),array_values.Get(PARAM_NOISE_MULT));