DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
PPELightIntensityParamsNative.c
См. документацию.
1//---------------------------------------------------------
2//Native exceptions - legacy methods for direct access to specific postprocesses. Each one is evaluated and handled separately, this just connects them to the system.
3
6{
7 //g_Game.SetEVValue
8 static const int PARAM_LIGHT_MULT = 0;
9 static const int PARAM_NOISE_MULT = 1;
10
11 static const int L_0_SANDSTORM = 50;
12 static const int L_0_NVG = 100;
13 static const int L_0_TOXIC_TINT = 200;
14 static const int L_1_NVG = 100;
15 static const int L_1_TOXIC_TINT = 200;
16
18 {
19 return PPEExceptions.NVLIGHTPARAMS;
20 }
21
23 {
24 RegisterParameterScalarFloat(PARAM_LIGHT_MULT,"lightIntensityMul",1.0,0.0,50.0); //some reasonable values
25 RegisterParameterScalarFloat(PARAM_NOISE_MULT,"noiseIntensity",0.0,0.0,50.0); //some reasonable values
26 }
27
28 override void ApplyValueChanges()
29 {
30 if (m_UpdatedParameters.Count() > 0)
31 {
32 SetFinalParameterValue(-1); //unique handling
33 }
34
35 m_UpdatedParameters.Clear();
36 }
37
39 override void SetFinalParameterValue(int parameter_idx)
40 {
41 array<float> array_values = new array<float>;
42
43 for (int i = 0; i < PARAM_NOISE_MULT + 1; i++)
44 {
46 float value_var_float = Param1<float>.Cast(values).param1;
47 array_values.Insert(value_var_float);
48 }
49
50 g_Game.NightVissionLightParams(array_values.Get(PARAM_LIGHT_MULT),array_values.Get(PARAM_NOISE_MULT));
51
52 //DbgPrnt("PPEDebug | SetFinalParameterValue | PPELightIntensityParamsNative | float val: " + value_var_float);
53 }
54}
DayZGame g_Game
Определения DayZGame.c:4074
PPEExceptions
Определения PPEConstants.c:43
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 ...
Определения PPEMatClassesBase.c:77
PPEMatClassParameterCommandData GetParameterCommandData(int parameter_idx)
Some PP effects are handled as hard-coded exceptions, outside of material system. Default == PPEExcep...
Определения PPEMatClassesBase.c:350
ref array< int > m_UpdatedParameters
Определения PPEMatClassesBase.c:10
void PPEClassBase(string mat_path_override="")
Определения PPEMatClassesBase.c:14
override void ApplyValueChanges()
Определения PPELightIntensityParamsNative.c:28
override int GetPostProcessEffectID()
Определения PPELightIntensityParamsNative.c:17
static const int L_1_TOXIC_TINT
Определения PPELightIntensityParamsNative.c:15
static const int L_0_SANDSTORM
Определения PPELightIntensityParamsNative.c:11
static const int PARAM_NOISE_MULT
Определения PPELightIntensityParamsNative.c:9
override void RegisterMaterialParameters()
Определения PPELightIntensityParamsNative.c:22
static const int PARAM_LIGHT_MULT
Определения PPELightIntensityParamsNative.c:8
static const int L_0_TOXIC_TINT
Определения PPELightIntensityParamsNative.c:13
override void SetFinalParameterValue(int parameter_idx)
Overriden to handle the specific exception.
Определения PPELightIntensityParamsNative.c:39
g_Game.NightVissionLightParams, does not directly use materials. Controls light multiplication and fi...
Определения PPELightIntensityParamsNative.c:6
Param GetCurrentValues()
Careful, only actual values, WITHOUT string.
T1 param1
Определения param.c:34
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Определения param.c:12
Result for an object found in CGame.IsBoxCollidingGeometryProxy.