Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
pperglasses.c
Go to the documentation of this file.
1 //glasses and helmets
3 class PPERequester_GenericBlackGlassesBase extends PPERequester_GameplayBase
4 {
5  override protected void OnStart(Param par = null)
6  {
7  super.OnStart();
8 
9  SetTargetValueFloat(PostProcessEffectType.GodRays,PPEGodRays.PARAM_INTENSITY,true,0,PPEGodRays.L_0_GLASSES,PPOperators.LOWEST);
10  SetTargetValueColor(PostProcessEffectType.Glow,PPEGlow.PARAM_COLORIZATIONCOLOR,{0.4,0.4,0.4,0.0},PPEGlow.L_23_GLASSES,PPOperators.SUBSTRACT);
11  }
12 }
13 
14 class PPERequester_GlassesSportBlack extends PPERequester_GenericBlackGlassesBase{}
15 class PPERequester_GlassesDesignerBlack extends PPERequester_GenericBlackGlassesBase{}
16 class PPERequester_MotoHelmetBlack extends PPERequester_GenericBlackGlassesBase{}
17 
18 class PPERequester_GlassesSportBlue extends PPERequester_GameplayBase
19 {
20  override protected void OnStart(Param par = null)
21  {
22  super.OnStart();
23 
24  SetTargetValueFloat(PostProcessEffectType.GodRays,PPEGodRays.PARAM_INTENSITY,true,0,PPEGodRays.L_0_GLASSES,PPOperators.LOWEST);
25  SetTargetValueColor(PostProcessEffectType.Glow,PPEGlow.PARAM_COLORIZATIONCOLOR,{0.3,0.3,0.0,0.0},PPEGlow.L_23_GLASSES,PPOperators.SUBSTRACT);
26  }
27 }
28 
29 class PPERequester_GlassesSportGreen extends PPERequester_GameplayBase
30 {
31  override protected void OnStart(Param par = null)
32  {
33  super.OnStart();
34 
35  SetTargetValueFloat(PostProcessEffectType.GodRays,PPEGodRays.PARAM_INTENSITY,true,0,PPEGodRays.L_0_GLASSES,PPOperators.LOWEST);
36  SetTargetValueColor(PostProcessEffectType.Glow,PPEGlow.PARAM_COLORIZATIONCOLOR,{0.2,0.0,0.2,0.0},PPEGlow.L_23_GLASSES,PPOperators.SUBSTRACT);
37  }
38 }
39 
40 class PPERequester_GlassesSportOrange extends PPERequester_GameplayBase
41 {
42  override protected void OnStart(Param par = null)
43  {
44  super.OnStart();
45 
46  SetTargetValueFloat(PostProcessEffectType.GodRays,PPEGodRays.PARAM_INTENSITY,true,0,PPEGodRays.L_0_GLASSES,PPOperators.LOWEST);
47  SetTargetValueColor(PostProcessEffectType.Glow,PPEGlow.PARAM_COLORIZATIONCOLOR,{0.0,0.3,0.5,0.0},PPEGlow.L_23_GLASSES,PPOperators.SUBSTRACT);
48  }
49 }
50 
51 class PPERequester_GlassesAviator extends PPERequester_GameplayBase
52 {
53  override protected void OnStart(Param par = null)
54  {
55  super.OnStart();
56 
57  SetTargetValueFloat(PostProcessEffectType.GodRays,PPEGodRays.PARAM_INTENSITY,true,0,PPEGodRays.L_0_GLASSES,PPOperators.LOWEST);
58  SetTargetValueColor(PostProcessEffectType.Glow,PPEGlow.PARAM_COLORIZATIONCOLOR,{0.3,0.3,0.1,0.0},PPEGlow.L_23_GLASSES,PPOperators.SUBSTRACT);
59  }
60 }
61 
62 class PPERequester_TacticalGoggles extends PPERequester_GameplayBase
63 {
64  override protected void OnStart(Param par = null)
65  {
66  super.OnStart();
67 
68  SetTargetValueFloat(PostProcessEffectType.GodRays,PPEGodRays.PARAM_INTENSITY,true,0,PPEGodRays.L_0_GLASSES,PPOperators.LOWEST);
69  }
70 }
71 
72 class PPERequester_WeldingMask extends PPERequester_GameplayBase
73 {
74  override protected void OnStart(Param par = null)
75  {
76  super.OnStart();
77 
78  SetTargetValueFloat(PostProcessEffectType.GodRays,PPEGodRays.PARAM_INTENSITY,true,0,PPEGodRays.L_0_GLASSES,PPOperators.LOWEST);
79  SetTargetValueColor(PostProcessEffectType.Glow,PPEGlow.PARAM_COLORIZATIONCOLOR,{0.7,0.7,0.7,0.0},PPEGlow.L_23_GLASSES,PPOperators.SUBSTRACT);
80  }
81 }
PostProcessEffectType
PostProcessEffectType
Post-process effect type.
Definition: enworld.c:71
Param
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition: param.c:11
SetTargetValueColor
protected void SetTargetValueColor(int mat_id, int param_idx, ref array< float > val, int priority_layer, int operator=PPOperators.ADD_RELATIVE)
Definition: pperequestplatformsbase.c:195
PPEGodRays
GodRays - PostProcessEffectType.GodRays.
Definition: ppegodrays.c:2
OnStart
class PPERequester_GenericBlackGlassesBase extends PPERequester_GameplayBase OnStart(Param par=null)
Definition: pperglasses.c:20
PPEGlow
Glow - PostProcessEffectType.Glow.
Definition: ppeglow.c:7
PPERequester_GameplayBase
base, not to be used directly, would lead to layering collisions!
Definition: pperbloodloss.c:1
SetTargetValueFloat
protected void SetTargetValueFloat(int mat_id, int param_idx, bool relative, float val, int priority_layer, int operator=PPOperators.ADD_RELATIVE)
Definition: pperequestplatformsbase.c:153
PPOperators
PPOperators
PP operators, specify operation between subsequent layers.
Definition: ppeconstants.c:51