5 player.GetModifiersManager().ActivateModifier(
eModifiers.MDF_SANDSTORM_EXPOSURE_STATIC);
10 player.GetModifiersManager().DeactivateModifier(
eModifiers.MDF_SANDSTORM_EXPOSURE_STATIC);
34 m_SquintSymptom = player.GetSymptomManager().QueueUpSecondarySymptomEx(SymptomIDs.SYMPTOM_SQUINT);
42 player.GetSymptomManager().RemoveSecondarySymptom(SymptomIDs.SYMPTOM_SQUINT);
47 if (player.IsUnconscious())
83class SandstormExposureDynamicMdfr : SandstormExposureMdfrBase
131 float protectionLevel = 0.0;
133 array<Entity> coverItems = player.GetCachedEquipment().GetEntitiesByCategory(query);
134 int coverItemsCount = coverItems.Count();
135 for (
int i = 0; i < coverItemsCount; ++i)
137 coverItem =
ItemBase.Cast(coverItems[i]);
139 if (protectionLevel > 0.0)
143 float coughIntensity =
Math.
Clamp(sandstormIntensity - protectionLevel, 0.0, 1.0);;
146 if (coughIntensity > 0.0)
157 if (rand <= coughIntensity)
158 player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_COUGH);
ECachedEquipmentItemCategory
ECachedEquipmentPlacement
bool m_TrackActivatedTime
overall time this modifier was active
void DisableDeactivateCheck()
bool ActivateCondition(PlayerBase player)
void DisableActivateCheck()
bool DeactivateCondition(PlayerBase player)
void OnTick(PlayerBase player, float deltaT)
bool m_AnalyticsStatsEnabled
float m_TickIntervalActive
float m_TickIntervalInactive
const int DEFAULT_TICK_TIME_INACTIVE
const int DEFAULT_TICK_TIME_ACTIVE_SHORT
PluginBase GetPlugin(typename plugin_type)
ScriptedSandstormController m_SandstormController
seconds
ref SymptomBase m_SquintSymptom
ref PluginTransmissionAgents m_AgentTransmision
const float COUGH_INTERVAL_MAX
seconds
float TransmitAgents(int type, PlayerBase player, float count)
const float EYES_IRRITATION_AGENTS_PER_SEC
void HandleCoughing(PlayerBase player, float sandstormIntensity, float deltaTime)
SandstormZoneSmall_TESTONLY SILICOSIS_AGENTS_PER_SEC
SandstormExposureStaticMdfr COUGH_INTERVAL_MIN
ECachedEquipmentItemCategory m_Category
ECachedEquipmentPlacement m_Placement
override bool DeactivateCondition(PlayerBase player)
override bool ActivateCondition(PlayerBase player)
override void OnTick(PlayerBase player, float deltaT)
override void OnPlayerEnterServer(PlayerBase player, EffectTrigger trigger)
override void OnPlayerExitServer(PlayerBase player, EffectTrigger trigger)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
const int DEF_DUST_PARTICLE_BREATH
const int AGT_AIRBOURNE_SOLID
static float RandomFloat01()
Returns a random float number between and min [inclusive] and max [inclusive].
static proto int Randomize(int seed)
Sets the seed for the random number generator.
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
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'.
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].