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

◆ HideAllAnimationsAndProxyPhysics()

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

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

250 {
251 string cfg_path = "cfgVehicles " + GetType() + " AnimationSources";
252
253 if (g_Game.ConfigIsExisting(cfg_path))
254 {
255 int selections = g_Game.ConfigGetChildrenCount(cfg_path);
256 string proxy_selection_name;
257
258 for (int i = 0; i < selections; i++)
259 {
260 string selection_name;
261 g_Game.ConfigGetChildName(cfg_path, i, selection_name);
262 if (hide_animations)
263 {
264 SetAnimationPhase(selection_name, 1);
265 }
266
267 proxy_selection_name = selection_name;
268 proxy_selection_name.ToLower();
269 if (hide_physics)
270 {
271 RemoveProxyPhysics(proxy_selection_name);
272 }
273 }
274 }
275 }
eBleedingSourceType GetType()
DayZGame g_Game
Определения DayZGame.c:4074
proto int ToLower()
Changes string to lowercase. Returns length.

Перекрестные ссылки g_Game, GetType() и string::ToLower().

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