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

◆ CacheSkinningBloodInfectionChance()

void Entity::CacheSkinningBloodInfectionChance ( eAgents type)
inlineprotected

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

514 {
515 string basePath = string.Format("cfgVehicles %1 Skinning BloodInfectionSettings", GetType());
516 if (g_Game.ConfigIsExisting(basePath))
517 {
518 string agentName = EnumTools.EnumToString(eAgents, type);
519 agentName.ToLower();
520 float value = g_Game.ConfigGetFloat(string.Format("%1 %2 chance", basePath, agentName));
521 m_BloodInfectionChanceCached.Set(type, value);
522 }
523 }
eBleedingSourceType GetType()
DayZGame g_Game
Определения DayZGame.c:3868
eAgents
Определения EAgents.c:3
ref map< eAgents, float > m_BloodInfectionChanceCached
Определения 3_Game/Entities/EntityAI.c:195
proto int ToLower()
Changes string to lowercase. Returns length.

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