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

◆ GetTypeMaxGlobalHealth()

static float GetTypeMaxGlobalHealth ( string class_name,
string health_type = "Health" )
staticprotected

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

704 {
705 float max_health;
706 string cfg_path;
707
708 if ( g_Game.ConfigIsExisting(CFG_VEHICLESPATH+" "+class_name) )
709 {
710 cfg_path = CFG_VEHICLESPATH;
711 }
712 else if ( g_Game.ConfigIsExisting(CFG_WEAPONSPATH+" "+class_name) )
713 {
714 cfg_path = CFG_WEAPONSPATH;
715 }
716 else if ( g_Game.ConfigIsExisting(CFG_MAGAZINESPATH+" "+class_name) )
717 {
718 cfg_path = CFG_MAGAZINESPATH;
719 }
720 cfg_path = cfg_path + " "+class_name+" DamageSystem GlobalHealth " + health_type + " hitpoints";
721 max_health = g_Game.ConfigGetFloat(cfg_path);
722
723 return max_health;
724 }
DayZGame g_Game
Определения DayZGame.c:4074
class OptionSelectorMultistate extends OptionSelector class_name
const string CFG_VEHICLESPATH
Определения 3_Game/DayZ/constants.c:228
const string CFG_WEAPONSPATH
Определения 3_Game/DayZ/constants.c:229
const string CFG_MAGAZINESPATH
Определения 3_Game/DayZ/constants.c:230

Перекрестные ссылки CFG_MAGAZINESPATH, CFG_VEHICLESPATH, CFG_WEAPONSPATH, class_name и g_Game.