DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
PPEExposureNative.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_INTENSITY = 0;
9
10 static const int L_0_NVG_OPTIC = 100;
11 static const int L_0_NVG_GOGGLES = 200;
12 static const int L_0_NVG_OFF = 300;
13 static const int L_0_FLASHBANG = 400;
14 static const int L_0_BURLAP = 500;
15 static const int L_0_DEATH = 1000;
16
18 {
19 return PPEExceptions.EXPOSURE;
20 }
21
23 {
24 RegisterParameterScalarFloat(PARAM_INTENSITY,"Intensity",0.0,-100.0,100.0); //no real range, it seems. -100..100 used
25 }
26
28 override void SetFinalParameterValue(int parameter_idx)
29 {
30 Param values = GetParameterCommandData(parameter_idx).GetCurrentValues();
31 float value_var_float = Param1<float>.Cast(values).param1;
32
33 g_Game.SetEVValue(value_var_float);
34 //DbgPrnt("PPEDebug | SetFinalParameterValue | PPEExposureNative | float val: " + value_var_float);
35 }
36}
DayZGame g_Game
Определения DayZGame.c:3868
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
void PPEClassBase(string mat_path_override="")
Определения PPEMatClassesBase.c:14
static const int L_0_NVG_GOGGLES
Определения PPEExposureNative.c:11
override void SetFinalParameterValue(int parameter_idx)
Overriden to handle the specific exception.
Определения PPEExposureNative.c:28
static const int PARAM_INTENSITY
Определения PPEExposureNative.c:8
static const int L_0_NVG_OFF
Определения PPEExposureNative.c:12
override void RegisterMaterialParameters()
Определения PPEExposureNative.c:22
override int GetPostProcessEffectID()
Определения PPEExposureNative.c:17
static const int L_0_FLASHBANG
Определения PPEExposureNative.c:13
static const int L_0_NVG_OPTIC
Определения PPEExposureNative.c:10
static const int L_0_BURLAP
Определения PPEExposureNative.c:14
static const int L_0_DEATH
Определения PPEExposureNative.c:15
EV postprocess, does not directly use materials.
Определения PPEExposureNative.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