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

◆ ShowAllSelections()

void Entity::ShowAllSelections ( )
inlineprotected

Sets all animation values to 0, making them VISIBLE if they are configured in models.cfg in such way. These selections must also be defined in the entity's config class in 'AnimationSources'.

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

1402 {
1403 string cfg_path = "cfgVehicles " + GetType() + " AnimationSources";
1404
1405 if ( GetGame().ConfigIsExisting(cfg_path) )
1406 {
1407 int selections = GetGame().ConfigGetChildrenCount(cfg_path);
1408
1409 for (int i = 0; i < selections; i++)
1410 {
1411 string selection_name;
1412 GetGame().ConfigGetChildName(cfg_path, i, selection_name);
1413 ShowSelection(selection_name);
1414 }
1415 }
1416 }
eBleedingSourceType GetType()
Определения BleedingSource.c:63
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
proto native int ConfigGetChildrenCount(string path)
Get count of subclasses in config class on path.
void ShowSelection(string selection_name)
Shows selection of the given name. Must be configed in config.hpp and models.cfg.
Определения EntityAI.c:3316
proto native CGame GetGame()

Перекрестные ссылки CGame::ConfigGetChildName(), CGame::ConfigGetChildrenCount(), GetGame(), GetType() и ShowSelection().