Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
ppeexposurenative.c
Go to the documentation of this file.
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 
17  override int GetPostProcessEffectID()
18  {
19  return PPEExceptions.EXPOSURE;
20  }
21 
22  override void RegisterMaterialParameters()
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 }
PPEClassBase
Created once, on manager init. Script-side representation of C++ material class, separate handling.
Definition: ppematclassesbase.c:2
PPEExposureNative
EV postprocess, does not directly use materials.
Definition: ppeexposurenative.c:5
Param
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition: param.c:11
g_Game
DayZGame g_Game
Definition: dayzgame.c:3727
PPEExceptions
PPEExceptions
Definition: ppeconstants.c:41