44 MiscGameplayFunctions.TeleportCheck(player, data.
SafePositions);
51 player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_COUGH);
68 if(!player.GetCanBeDestroyed())
81 player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_COUGH);
110 int count = player.GetBleedingSourceCount();
112 player.InsertAgent(
eAgents.CHEMICAL_POISON, agent_dose);
118 int free_bs_locations = 0;
119 set<int> list = player.GetBleedingManagerServer().GetBleedingSourcesLocations();
121 foreach(
int location: list)
123 float prot_level = PluginTransmissionAgents.GetProtectionLevelEx(
DEF_CHEMICAL, location, player,
true);
125 if(dice_throw > prot_level)
127 free_bs_locations = player.GetBleedingManagerServer().GetFreeBleedingSourceBitsByInvLocation(location) | free_bs_locations;
133 if ( num_of_free_bs > 0 )
137 player.GetBleedingManagerServer().AttemptAddBleedingSourceDirectly(random_bs_bit,
eBleedingSourceType.CONTAMINATED);
143 PluginTransmissionAgents plugin = PluginTransmissionAgents.Cast(
GetPlugin(PluginTransmissionAgents));
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
bool m_TrackActivatedTime
overall time this modifier was active
void DisableDeactivateCheck()
void DisableActivateCheck()
bool m_AnalyticsStatsEnabled
eModifierSyncIDs m_SyncID
float m_TickIntervalActive
float m_TickIntervalInactive
const int DEFAULT_TICK_TIME_ACTIVE_SHORT
const int DEFAULT_TICK_TIME_INACTIVE_LONG
PluginBase GetPlugin(typename plugin_type)
void ApplyAgentsToBleedingSources(PlayerBase player, float deltaT)
const int EVENT_1_INTERVAL_MIN
const float AGENT_DOSE_PER_BS_SEC
const int EVENT_2_INTERVAL_MAX
float TransmitAgents(PlayerBase player, float count)
const int EVENT_2_INTERVAL_MIN
void BleedingSourceCreateCheck(PlayerBase player)
override void OnTick(PlayerBase player, float deltaT)
override bool DeactivateCondition(PlayerBase player)
override bool ActivateCondition(PlayerBase player)
const float AGENTS_PER_SEC
const int EVENT_1_INTERVAL_MAX
override void OnDeactivate(PlayerBase player)
override void OnActivate(PlayerBase player)
static JsonDataContaminatedAreas GetData()
ref array< ref array< float > > SafePositions
const int AGT_AIRBOURNE_CHEMICAL
static float RandomFloat01()
Returns a random float number between and min [inclusive] and max [inclusive].
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
static proto int GetNthBitSet(int value, int n)
returns the the index of n-th bit set in a bit mask counting from the right, for instance,...
static proto float Pow(float v, float power)
Return power of v ^ power.
static proto int GetNumberOfSetBits(int i)
returns the number of bits set in a bitmask i
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].