См. определение в файле 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);
520 float value =
g_Game.ConfigGetFloat(
string.Format(
"%1 %2 chance", basePath, agentName));
522 }
523 }
eBleedingSourceType GetType()
ref map< eAgents, float > m_BloodInfectionChanceCached
proto int ToLower()
Changes string to lowercase. Returns length.
Перекрестные ссылки EnumTools::EnumToString(), g_Game, GetType(), m_BloodInfectionChanceCached и string::ToLower().