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()
proto int ToLower()
Changes string to lowercase. Returns length.