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

◆ GetTypeMaxGlobalHealth()

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

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

676 {
677 float max_health;
678 string cfg_path;
679
680 if ( GetGame().ConfigIsExisting(CFG_VEHICLESPATH+" "+class_name) )
681 {
682 cfg_path = CFG_VEHICLESPATH;
683 }
684 else if ( GetGame().ConfigIsExisting(CFG_WEAPONSPATH+" "+class_name) )
685 {
686 cfg_path = CFG_WEAPONSPATH;
687 }
688 else if ( GetGame().ConfigIsExisting(CFG_MAGAZINESPATH+" "+class_name) )
689 {
690 cfg_path = CFG_MAGAZINESPATH;
691 }
692 cfg_path = cfg_path + " "+class_name+" DamageSystem GlobalHealth " + health_type + " hitpoints";
693 max_health = GetGame().ConfigGetFloat(cfg_path);
694
695 return max_health;
696 }
class OptionSelectorMultistate extends OptionSelector class_name
proto native float ConfigGetFloat(string path)
Get float value 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, class_name, CGame::ConfigGetFloat() и GetGame().