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

◆ HideAllAnimationsAndProxyPhysics()

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

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

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

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

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