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

◆ CacheSkinningBloodInfectionChance()

void Entity::CacheSkinningBloodInfectionChance ( eAgents type)
inlineprotected

См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 525

526 {
527 string basePath = string.Format("cfgVehicles %1 Skinning BloodInfectionSettings", GetType());
528 if (g_Game.ConfigIsExisting(basePath))
529 {
530 string agentName = EnumTools.EnumToString(eAgents, type);
531 agentName.ToLower();
532 float value = g_Game.ConfigGetFloat(string.Format("%1 %2 chance", basePath, agentName));
533 m_BloodInfectionChanceCached.Set(type, value);
534 }
535 }
eBleedingSourceType GetType()
DayZGame g_Game
Определения DayZGame.c:3942
eAgents
Определения EAgents.c:3
ref map< eAgents, float > m_BloodInfectionChanceCached
proto int ToLower()
Changes string to lowercase. Returns length.

Перекрестные ссылки EnumTools::EnumToString(), g_Game, GetType(), m_BloodInfectionChanceCached и string::ToLower().