12 const float BLUR_STRENGTH_MIN = 0.15;
13 const float BLUR_STRENGTH_MAX = 0.25;
15 const int BLUR_DURATION_TIME_MIN = 1.5;
16 const int BLUR_DURATION_TIME_MAX = 2.5;
18 const int MIN_TIME_BETWEEN_EFFECTS = 25.0;
19 const int MAX_TIME_BETWEEN_EFFECTS = 35.0;
27 m_DestroyOnAnimFinish =
true;
29 m_SyncToClient =
true;
31 if (!
GetGame().IsDedicatedServer())
45 if (m_EffectStartTime <= 0)
49 m_BlurStrength =
Math.
RandomFloat(BLUR_STRENGTH_MIN, BLUR_STRENGTH_MAX);
53 if (m_EffectStartTime > 0 &&
m_Time > m_EffectStartTime)
55 m_EffectTime +=
deltatime / m_BlurDuration;
62 if (m_EffectTime >= 1)
65 m_EffectStartTime = -1;
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
PPERUndergroundAcco m_Requester
Super root of all classes in Enforce script.
static void SymptomLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
static bool IsSymptomLogEnable()
override void OnGetActivatedClient(PlayerBase player)
override void OnGetActivatedServer(PlayerBase player)
gets called once on an Symptom which is being activated
override void OnGetDeactivatedServer(PlayerBase player)
override void OnUpdateClient(PlayerBase player, float deltatime)
PPERequester_FeverEffects m_Requester
override void OnUpdateServer(PlayerBase player, float deltatime)
gets called every frame
override void OnGetDeactivatedClient(PlayerBase player)
only gets called once on an active Symptom that is being deactivated
proto native CGame GetGame()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].
static proto float Sin(float angle)
Returns sinus of angle in radians.