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

◆ HasAnimation()

bool IEntity::HasAnimation ( string anim_name)
inlineprivate

Searches object's config for the given animation name. Returns true if it was found, or false if not.

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

423 {
424 string cfg_path_vehicles = "CfgVehicles " + GetType() + " ";
425 if ( g_Game.ConfigIsExisting (cfg_path_vehicles) && g_Game.ConfigIsExisting (cfg_path_vehicles + "AnimationSources " + anim_name) )
426 {
427 return true;
428 }
429
430 string cfg_path_weapons = "CfgWeapons " + GetType() + " ";
431 if ( g_Game.ConfigIsExisting (cfg_path_weapons) && g_Game.ConfigIsExisting (cfg_path_weapons + "AnimationSources " + anim_name) )
432 {
433 return true;
434 }
435
436 string cfg_path_magazines = "CfgMagazines " + GetType() + " ";
437 if ( g_Game.ConfigIsExisting (cfg_path_magazines) && g_Game.ConfigIsExisting (cfg_path_magazines + "AnimationSources " + anim_name) )
438 {
439 return true;
440 }
441
442 return false;
443 }
DayZGame g_Game
Определения DayZGame.c:4074
string GetType()
Get config class of object.
Определения Object.c:467

Перекрестные ссылки g_Game и GetType().