Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
pperhealthhit.c
Go to the documentation of this file.
1 class PPERequester_HealthHitReaction extends PPERequester_GameplayBase
2 {
3  const float INTENSITY_MULT = 6.0;
4 
5  void SetHitIntensity(float intensity)
6  {
7  //color overlay
8  SetTargetValueFloat(PostProcessEffectType.Glow,PPEGlow.PARAM_OVERLAYFACTOR,true,0.05,PPEGlow.L_20_HIT,PPOperators.HIGHEST);
9  SetTargetValueColor(PostProcessEffectType.Glow,PPEGlow.PARAM_OVERLAYCOLOR,{intensity * INTENSITY_MULT, 0.0, 0.0, 1.0},PPEGlow.L_21_HIT,PPOperators.HIGHEST);
10  }
11 }
PostProcessEffectType
PostProcessEffectType
Post-process effect type.
Definition: enworld.c:71
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
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