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

◆ HideAllAnimationsAndProxyPhysics()

void ItemBase::HideAllAnimationsAndProxyPhysics ( bool hide_animations = true,
bool hide_physics = true )
inlineprotected

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

227 {
228 string cfg_path = "cfgVehicles " + GetType() + " AnimationSources";
229
230 if (GetGame().ConfigIsExisting(cfg_path))
231 {
232 int selections = GetGame().ConfigGetChildrenCount(cfg_path);
233 string proxy_selection_name;
234
235 for (int i = 0; i < selections; i++)
236 {
237 string selection_name;
238 GetGame().ConfigGetChildName(cfg_path, i, selection_name);
239 if (hide_animations)
240 {
241 SetAnimationPhase(selection_name, 1);
242 }
243
244 proxy_selection_name = selection_name;
245 proxy_selection_name.ToLower();
246 if (hide_physics)
247 {
248 RemoveProxyPhysics(proxy_selection_name);
249 }
250 }
251 }
252 }
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.
proto native CGame GetGame()
proto int ToLower()
Changes string to lowercase. Returns length.

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

Используется в Pack() и Pitch().