3 const float ALPHA_MIN = 0;
4 const float ALPHA_MAX = 1;
8 PPERequester_HealthHitReaction m_Requester;
14 Class.CastTo(
m_Requester, PPERequesterBank.GetRequester(PPERequester_HealthHitReaction));
21 PPERequesterBank.GetRequester(PPERequester_HealthHitReaction).Stop();
24 void Update(
float deltatime)
34 float tmp_value =
Math.InverseLerp(m_BreakPoint, m_HitDuration,
m_TimeActive);
35 value = 1 - tmp_value;
38 value =
Math.Clamp(value,0,1);
39 float val =
Math.Lerp(ALPHA_MIN, ALPHA_MAX, value);
71 if (
Class.CastTo(
m_PPERequester, PPERequesterBank.GetRequester( PPERequesterBank.REQ_PAINBLUR ) ) )
85 float value = 1 -
Easing.EaseInQuart(time);
89 m_PPERequester.SetRadialBlur(strenght, strenght, 1 - value, 1 - value);