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

◆ GetComponentNamesFromDamageZone()

static bool GetComponentNamesFromDamageZone ( notnull EntityAI entity,
string damageZone,
out array< string > componentNames )
static

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

105 {
106 string path;
107
108 if (entity.IsWeapon())
109 {
111 }
112 else if (entity.IsMagazine())
113 {
115 }
116 else
117 {
119 }
120
121 path = string.Format("%1 %2 DamageSystem DamageZones %3 componentNames", path, entity.GetType(), damageZone);
122 if (GetGame().ConfigIsExisting(path))
123 {
124 GetGame().ConfigGetTextArray(path,componentNames);
125 return true;
126 }
127
128 return false;
129 }
string path
Определения OptionSelectorMultistate.c:142
proto native void ConfigGetTextArray(string path, out TStringArray values)
Get array of strings from config on path.
proto native CGame GetGame()
const string CFG_VEHICLESPATH
Определения constants.c:220
const string CFG_WEAPONSPATH
Определения constants.c:221
const string CFG_MAGAZINESPATH
Определения constants.c:222

Перекрестные ссылки CFG_MAGAZINESPATH, CFG_VEHICLESPATH, CFG_WEAPONSPATH, CGame::ConfigGetTextArray(), GetGame() и path.