Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
ppershockhit.c
Go to the documentation of this file.
1 class PPERequester_ShockHitReaction extends PPERequester_GameplayBase
2 {
3  protected float m_Gauss;
4  protected float m_VignetteIntensity;
5  protected float m_OverlayFactor;
6  protected ref array<float> m_OverlayColor;
7 
8  override protected void OnStart(Param par = null)
9  {
10  super.OnStart();
11 
12  m_Gauss = Param3<float,float,float>.Cast(par).param1;
13  m_VignetteIntensity = Param3<float,float,float>.Cast(par).param2;
14  m_OverlayFactor = Param3<float,float,float>.Cast(par).param3;
15 
16  m_OverlayColor = {0.0, 0.0, 0.0, 1.0};
17  if (m_OverlayFactor > 0.0)
18  m_OverlayColor = {0.1, 0.1, 0.1, 1.0};
19 
20  //blur
21  SetTargetValueFloat(PostProcessEffectType.GaussFilter,PPEGaussFilter.PARAM_INTENSITY,true,m_Gauss,PPEGaussFilter.L_0_SHOCK,PPOperators.ADD_RELATIVE);
22  //vignette
23  SetTargetValueFloat(PostProcessEffectType.Glow,PPEGlow.PARAM_VIGNETTE,false,m_VignetteIntensity,PPEGlow.L_25_SHOCK,PPOperators.ADD);
24  //SetTargetValueColor(PostProcessEffectType.Glow,PPEGlow.PARAM_VIGNETTECOLOR,{0.25,0.25,0.25,0.0},PPEGlow.L_26_SHOCK,PPOperators.ADD_RELATIVE);
25  //color overlay
26  SetTargetValueFloat(PostProcessEffectType.Glow,PPEGlow.PARAM_OVERLAYFACTOR,true,m_OverlayFactor,PPEGlow.L_20_SHOCK,PPOperators.HIGHEST);
27  SetTargetValueColor(PostProcessEffectType.Glow,PPEGlow.PARAM_OVERLAYCOLOR,m_OverlayColor,PPEGlow.L_21_SHOCK,PPOperators.SET);
28  }
29 }
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
Param3< float, float, float >
PPEGaussFilter
GaussFilter - PostProcessEffectType.GaussFilter.
Definition: ppegaussfilter.c:2
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
array< float >
PPOperators
PPOperators
PP operators, specify operation between subsequent layers.
Definition: ppeconstants.c:51
OnStart
enum EAchievementError OnStart
Definition: pperglasses.c:2