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()
27 override void ApplyValueChanges()
31 SetFinalParameterValue(-1);
38 override void SetFinalParameterValue(
int parameter_idx)
42 for (
int i = 0; i < PARAM_NOISE_MULT + 1; i++)
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));
Created once, on manager init. Script-side representation of C++ material class, separate handling.
void RegisterParameterScalarFloat(int idx, string parameter_name, float default_value, float min, float max)
WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values ...
PPEMatClassParameterCommandData GetParameterCommandData(int parameter_idx)
Some PP effects are handled as hard-coded exceptions, outside of material system. Default == PPEExcep...
ref array< int > m_UpdatedParameters
g_Game.NightVissionLightParams, does not directly use materials. Controls light multiplication and fi...
Param GetCurrentValues()
Careful, only actual values, WITHOUT string.
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Result for an object found in CGame.IsBoxCollidingGeometryProxy.