Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
pperunconeffects.c
Go to the documentation of this file.
1class PPERequester_UnconEffects extends PPERequester_GameplayBase
2{
3 protected const float FADING_TIME_DEFAULT = 3.0;
4
5 protected float m_Intensity;
6 protected float m_FadeoutStartIntensity;
7 protected bool m_Stopping;
8 protected bool m_StopNext;
9 protected float m_FadeOutTimeTarget;
10 protected float m_FadingTimeElapsed;
11 protected float m_FadingProgress;
12
13 override protected void OnStart(Param par = null)
14 {
15 super.OnStart();
16
17 m_Intensity = Param1<float>.Cast(par).param1;
18 m_Stopping = false;
19 m_StopNext = false;
22 }
23
24 override protected void OnStop(Param par = null)
25 {
26 super.OnStop(par);
27
28 m_FadingProgress = 0.0;
29 m_Stopping = false;
30 m_StopNext = false;
31 }
32
33 override protected void OnUpdate(float delta)
34 {
35 if (m_StopNext)
36 {
37 if (m_IsRunning)
38 Stop();
39 return;
40 }
41
43 ProcessFading(delta);
44
45 super.OnUpdate(delta);
46
49 }
50
51 void FadeOutEffect(float targetTime = FADING_TIME_DEFAULT)
52 {
53 m_Stopping = true;
55 m_FadeOutTimeTarget = targetTime;
57
58 if (m_IsRunning)
60 }
61
72}
Input value between 0 and 1, returns value adjusted by easing, no automatic clamping of input(do your...
Definition easing.c:3
static float EaseInOutQuad(float t)
Definition easing.c:29
Definition enmath.c:7
Glow - PostProcessEffectType.Glow.
Definition ppeglow.c:8
static const int L_25_UNCON
Definition ppeglow.c:60
static const int PARAM_VIGNETTE
Definition ppeglow.c:34
static const int PARAM_VIGNETTECOLOR
Definition ppeglow.c:35
static const int L_26_UNCON
Definition ppeglow.c:66
base, not to be used directly, would lead to layering collisions!
void OnStop(Param par=null)
void OnStart(Param par=null)
void ProcessFading(float delta)
void FadeOutEffect(float targetTime=FADING_TIME_DEFAULT)
Base Param Class with no parameters.
Definition param.c:12
PostProcessEffectType
Post-process effect type.
Definition enworld.c:72
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
void Stop()
Stops all elements this effect consists of.
Definition effect.c:183
PPOperators
PP operators, specify operation between subsequent layers.
bool m_IsRunning
void SetTargetValueFloat(int mat_id, int param_idx, bool relative, float val, int priority_layer, int operator=PPOperators.ADD_RELATIVE)
void SetRequesterUpdating(bool state)
Has to be set for the requester to be handled.
void SetTargetValueColor(int mat_id, int param_idx, array< float > val, int priority_layer, int operator=PPOperators.ADD_RELATIVE)