Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
pperdeathdarkening.c
Go to the documentation of this file.
1 class PPERequester_DeathDarkening extends PPERequester_GameplayBase
2 {
3  protected float m_Value;
4 
5  override protected void OnStart(Param par = null)
6  {
7  super.OnStart();
8 
9  m_Value = Param1<float>.Cast(par).param1;
10  //Print("PPERequester_DeathDarkening | level: " + m_Value);
11  m_Value = Easing.EaseInCubic(m_Value);
12  m_Value = Math.Lerp(0,-10,m_Value);
13  //Print("PPERequester_DeathDarkening | value: " + value);
14 
15  SetTargetValueFloat(PPEExceptions.EXPOSURE,PPEExposureNative.PARAM_INTENSITY,false,m_Value,PPEExposureNative.L_0_DEATH,PPOperators.SET);
16  }
17 }
PPEExposureNative
EV postprocess, does not directly use materials.
Definition: ppeexposurenative.c:5
Param
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition: param.c:11
m_Value
string m_Value
Definition: enentity.c:5
Easing
Input value between 0 and 1, returns value adjusted by easing, no automatic clamping of input(do your...
Definition: easing.c:2
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
PPEExceptions
PPEExceptions
Definition: ppeconstants.c:41
PPOperators
PPOperators
PP operators, specify operation between subsequent layers.
Definition: ppeconstants.c:51
Math
Definition: enmath.c:6
OnStart
enum EAchievementError OnStart
Definition: pperglasses.c:2