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

◆ CacheSkinningBloodInfectionChance()

void Entity::CacheSkinningBloodInfectionChance ( eAgents type)
inlineprotected

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

512 {
513 string basePath = string.Format("cfgVehicles %1 Skinning BloodInfectionSettings", GetType());
514 if (g_Game.ConfigIsExisting(basePath))
515 {
516 string agentName = EnumTools.EnumToString(eAgents, type);
517 agentName.ToLower();
518 float value = g_Game.ConfigGetFloat(string.Format("%1 %2 chance", basePath, agentName));
519 m_BloodInfectionChanceCached.Set(type, value);
520 }
521 }
eBleedingSourceType GetType()
DayZGame g_Game
Определения DayZGame.c:4074
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().