Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
pperhealthhit.c
Go to the documentation of this file.
1class 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}
Glow - PostProcessEffectType.Glow.
Definition ppeglow.c:8
base, not to be used directly, would lead to layering collisions!
PostProcessEffectType
Post-process effect type.
Definition enworld.c:72
PPOperators
PP operators, specify operation between subsequent layers.
void SetTargetValueFloat(int mat_id, int param_idx, bool relative, float val, int priority_layer, int operator=PPOperators.ADD_RELATIVE)
void SetTargetValueColor(int mat_id, int param_idx, array< float > val, int priority_layer, int operator=PPOperators.ADD_RELATIVE)