DayZ 1.28
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ AntibioticsAttack()

void PlayerAgentPool::AntibioticsAttack ( float attack_value)
inlineprotected

Antibiotics treatment agains agents which are not resistent to it (see agent attributes)

Аргументы
attack_valueStrength of the anitibiotics attack

См. определение в файле PlayerAgentPool.c строка 323

324 {
325 for (int i = 0; i < m_VirusPool.Count(); ++i)
326 {
327 int agentId = m_VirusPool.GetKey(i);
328 float resistance = 1 - m_PluginTransmissionAgents.GetAgentAntiboticsResistanceEx(agentId, m_Player);
329 float delta = attack_value * resistance;
330 float actualAgentCount = m_VirusPool.Get(agentId);
331 float newAgentCount = actualAgentCount - delta;
332 SetAgentCount(agentId, newAgentCount);
333 }
334 }
PluginTransmissionAgents m_PluginTransmissionAgents
Определения PlayerAgentPool.c:21
PlayerBase m_Player
Определения PlayerAgentPool.c:15
ref map< int, float > m_VirusPool
Определения PlayerAgentPool.c:17
void SetAgentCount(int agent_id, float count)
Directly set the count of agents for give id in pool.
Определения PlayerAgentPool.c:297

Перекрестные ссылки m_Player, m_PluginTransmissionAgents, m_VirusPool и SetAgentCount().

Используется в DrugsAttack().