Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
ppeeyeaccomodationnative.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
5
class
PPEEyeAccomodationNative
:
PPEClassBase
6
{
7
//g_Game.GetWorld().SetEyeAccom
8
static
const
int
PARAM_INTENSITY
= 0;
9
10
static
const
int
L_0_UNDERGROUND
= 100;
11
static
const
int
L_0_NVG_GENERIC
= 300;
12
/*static const int L_0_NVG_OPTIC = 400;
13
static const int L_0_NVG_GOGGLES = 401;
14
static const int L_0_NVG_OFF = 402;*/
15
static
const
int
L_0_BURLAP
= 500;
16
17
override
int
GetPostProcessEffectID
()
18
{
19
return
PPEExceptions
.EYEACCOM;
20
}
21
22
override
void
RegisterMaterialParameters
()
23
{
24
RegisterParameterScalarFloat
(
PARAM_INTENSITY
,
"Intensity"
,1.0,0.0,1000.0);
//no known max. 1000 used as max
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
.GetWorld().SetEyeAccom(value_var_float);
34
//DbgPrnt("PPEDebug | SetFinalParameterValue | PPEEyeAccomodationNative | float val: " + value_var_float);
35
}
36
}
PPEClassBase::RegisterParameterScalarFloat
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 ...
Definition
ppematclassesbase.c:77
PPEClassBase::PPEClassBase
void PPEClassBase(string mat_path_override="")
Definition
ppematclassesbase.c:14
PPEClassBase::GetParameterCommandData
PPEMatClassParameterCommandData GetParameterCommandData(int parameter_idx)
Some PP effects are handled as hard-coded exceptions, outside of material system. Default == PPEExcep...
Definition
ppematclassesbase.c:350
PPEEyeAccomodationNative
Eye Accomodation postprocess, does not directly use materials.
Definition
ppeeyeaccomodationnative.c:6
PPEEyeAccomodationNative::RegisterMaterialParameters
override void RegisterMaterialParameters()
Definition
ppeeyeaccomodationnative.c:22
PPEEyeAccomodationNative::GetPostProcessEffectID
override int GetPostProcessEffectID()
Definition
ppeeyeaccomodationnative.c:17
PPEEyeAccomodationNative::L_0_NVG_GENERIC
static const int L_0_NVG_GENERIC
Definition
ppeeyeaccomodationnative.c:11
PPEEyeAccomodationNative::PARAM_INTENSITY
static const int PARAM_INTENSITY
Definition
ppeeyeaccomodationnative.c:8
PPEEyeAccomodationNative::L_0_UNDERGROUND
static const int L_0_UNDERGROUND
Definition
ppeeyeaccomodationnative.c:10
PPEEyeAccomodationNative::SetFinalParameterValue
override void SetFinalParameterValue(int parameter_idx)
Overriden to handle the specific exception.
Definition
ppeeyeaccomodationnative.c:28
PPEEyeAccomodationNative::L_0_BURLAP
static const int L_0_BURLAP
Definition
ppeeyeaccomodationnative.c:15
PPEMatClassParameterCommandData::GetCurrentValues
Param GetCurrentValues()
Careful, only actual values, WITHOUT string.
Definition
ppematclassparametercommanddata.c:122
Param
Base Param Class with no parameters.
Definition
param.c:12
Param::param1
T1 param1
Definition
param.c:34
g_Game
DayZGame g_Game
Definition
dayzgame.c:3942
PPEExceptions
PPEExceptions
/brief IDs of custom PPE classes /note Currently used for various native exceptions that used to be h...
Definition
ppeconstants.c:43
Games
Dayz
scripts
3_game
ppemanager
materials
matclasses
exceptions
ppeeyeaccomodationnative.c
Generated by
1.17.0