DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
PPERUnconEffects.c
См. документацию.
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 float m_FadeInStartIntensity;
8 protected float m_FadeInTargetIntensity;
9 protected bool m_Stopping;
10 protected bool m_FadeIn;
11 protected bool m_StopNext;
12 protected float m_FadeOutTimeTarget;
13 protected float m_FadingTimeElapsed;
14 protected float m_FadingProgress;
15
16 override protected void OnStart(Param par = null)
17 {
18 super.OnStart();
19
20 m_Intensity = Param1<float>.Cast(par).param1;
21 m_Stopping = false;
22 m_StopNext = false;
23 m_FadeIn = false;
26 }
27
28 override protected void OnStop(Param par = null)
29 {
30 super.OnStop(par);
31
32 m_FadingProgress = 0.0;
33 m_Stopping = false;
34 m_StopNext = false;
35 }
36
37 override protected void OnUpdate(float delta)
38 {
39 if (m_StopNext)
40 {
41 if (m_IsRunning)
42 Stop();
43 return;
44 }
45
47 ProcessFading(delta);
48 else if (m_IsRunning && m_FadeIn)
49 ProcessFadeIn(delta);
50
51 super.OnUpdate(delta);
52
55 }
56
57 void FadeOutEffect(float targetTime = FADING_TIME_DEFAULT)
58 {
59 m_FadeIn = false;
60 m_Stopping = true;
61
63 m_FadeOutTimeTarget = Math.Max(0.01, targetTime);
65
66 if (m_IsRunning)
68 }
69
82
83 void FadeInEffect(float intensity, float targetTime = FADING_TIME_DEFAULT)
84 {
85 m_FadeIn = true;
86 m_Stopping = false;
87
89 m_FadeInTargetIntensity = Math.Clamp(intensity, 0.0, 2.0);
90
91 m_FadeOutTimeTarget = Math.Max(0.01, targetTime);
93
94 if (m_IsRunning)
96 }
97
108}
PPOperators
PP operators, specify operation between subsequent layers.
Определения PPEConstants.c:53
bool m_IsRunning
Определения PPERequestPlatformsBase.c:437
void SetTargetValueFloat(int mat_id, int param_idx, bool relative, float val, int priority_layer, int operator=PPOperators.ADD_RELATIVE)
Определения PPERequestPlatformsBase.c:588
void SetTargetValueColor(int mat_id, int param_idx, array< float > val, int priority_layer, int operator=PPOperators.ADD_RELATIVE)
Определения PPERequestPlatformsBase.c:630
void SetRequesterUpdating(bool state)
Has to be set for the requester to be handled.
Определения PPERequestPlatformsBase.c:456
static float EaseInOutQuad(float t)
Определения Easing.c:29
Input value between 0 and 1, returns value adjusted by easing, no automatic clamping of input(do your...
Определения Easing.c:3
Определения EnMath.c:7
static const int L_25_UNCON
Определения PPEGlow.c:63
static const int PARAM_VIGNETTECOLOR
Определения PPEGlow.c:35
static const int L_26_UNCON
Определения PPEGlow.c:69
static const int PARAM_VIGNETTE
Определения PPEGlow.c:34
Glow - PostProcessEffectType.Glow.
Определения PPEGlow.c:8
void FadeOutEffect(float targetTime=FADING_TIME_DEFAULT)
Определения PPERUnconEffects.c:57
void OnStart(Param par=null)
Определения PPERUnconEffects.c:16
void ProcessFadeIn(float delta)
Определения PPERUnconEffects.c:98
bool m_Stopping
Определения PPERHMPGhosts.c:9
float m_FadeoutStartIntensity
Определения PPERUnconEffects.c:6
float m_FadeInStartIntensity
Определения PPERUnconEffects.c:7
void OnUpdate(float delta)
Определения PPERUnconEffects.c:37
void ProcessFading(float delta)
Определения PPERHMPGhosts.c:123
const float FADING_TIME_DEFAULT
Определения PPERUnconEffects.c:3
void FadeInEffect(float intensity, float targetTime=FADING_TIME_DEFAULT)
Определения PPERUnconEffects.c:83
bool m_StopNext
Определения PPERHMPGhosts.c:10
float m_FadingTimeElapsed
Определения PPERHMPGhosts.c:12
float m_FadeInTargetIntensity
Определения PPERUnconEffects.c:8
float m_FadingProgress
Определения PPERHMPGhosts.c:13
float m_FadeOutTimeTarget
Определения PPERHMPGhosts.c:11
void OnStop(Param par=null)
Определения PPERUnconEffects.c:28
base, not to be used directly, would lead to layering collisions!
Определения PPERBloodLoss.c:2
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Определения param.c:12
PostProcessEffectType
Post-process effect type.
Определения EnWorld.c:72
static proto float Max(float x, float y)
Returns bigger of two given values.
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
static proto float Round(float f)
Returns mathematical round of value.
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
void Stop()
Stops all elements this effect consists of.
Определения Effect.c:183