Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
ppercameraads_opt.c
Go to the documentation of this file.
1class PPERequester_CameraADS extends PPERequester_GameplayBase
2{
3 void SetValuesOptics(out array<float> mask_array, out array<float> lens_array, float gauss = 0.0)
4 {
5 //mask
6 g_Game.ResetPPMask();
7 if (mask_array.Count() != 4)
8 {
9 mask_array = {0.0,0.0,0.0,0.0};
10 }
11 g_Game.AddPPMask(mask_array[0], mask_array[1], mask_array[2], mask_array[3]);
12
13 //lens
14 if (lens_array.Count() != 4)
15 {
16 lens_array = {0.0,0.0,0.0,0.0};
17 }
22
23 //DOF - no DOF in optics
25
26 //blur
28 }
29
52
53 override protected void OnStop(Param par = null)
54 {
55 super.OnStop(par);
56
57 if ( !g_Game )
58 return;
59
60 g_Game.ResetPPMask();
61 //material parameter values reset by default on stop
62 }
63}
DOF postprocess, does not directly use materials.
Definition ppedof.c:6
static const int L_5_ADS
Definition ppedof.c:20
static const int PARAM_FOCUS_DIST
Definition ppedof.c:9
static const int PARAM_ENABLE
Definition ppedof.c:8
static const int PARAM_FOCUS_LEN
Definition ppedof.c:10
static const int L_4_ADS
Definition ppedof.c:19
static const int L_2_ADS
Definition ppedof.c:17
static const int PARAM_FOCUS_DEPTH_OFFSET
Definition ppedof.c:13
static const int L_0_ADS
Definition ppedof.c:15
static const int PARAM_FOCUS_LEN_NEAR
Definition ppedof.c:11
static const int L_1_ADS
Definition ppedof.c:16
static const int L_3_ADS
Definition ppedof.c:18
static const int PARAM_BLUR
Definition ppedof.c:12
GaussFilter - PostProcessEffectType.GaussFilter.
static const int L_0_ADS
static const int PARAM_INTENSITY
Glow - PostProcessEffectType.Glow.
Definition ppeglow.c:8
static const int L_27_ADS
Definition ppeglow.c:69
static const int L_28_ADS
Definition ppeglow.c:71
static const int L_30_ADS
Definition ppeglow.c:75
static const int L_29_ADS
Definition ppeglow.c:73
static const int PARAM_LENSDISTORT
Definition ppeglow.c:36
static const int PARAM_MAXCHROMABBERATION
Definition ppeglow.c:37
static const int PARAM_LENSCENTERX
Definition ppeglow.c:38
static const int PARAM_LENSCENTERY
Definition ppeglow.c:39
base, not to be used directly, would lead to layering collisions!
void OnStop(Param par=null)
void SetValuesOptics(out array< float > mask_array, out array< float > lens_array, float gauss=0.0)
void SetValuesIronsights(out array< float > DOF_array)
Base Param Class with no parameters.
Definition param.c:12
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
DayZGame g_Game
Definition dayzgame.c:3942
PostProcessEffectType
Post-process effect type.
Definition enworld.c:72
PPOperators
PP operators, specify operation between subsequent layers.
PPEExceptions
/brief IDs of custom PPE classes /note Currently used for various native exceptions that used to be h...
void SetTargetValueFloat(int mat_id, int param_idx, bool relative, float val, int priority_layer, int operator=PPOperators.ADD_RELATIVE)
void SetTargetValueBoolDefault(int mat_id, int param_idx)
void SetTargetValueFloatDefault(int mat_id, int param_idx)
void SetTargetValueBool(int mat_id, int param_idx, bool val, int priority_layer, int operator=PPOperators.SET)