IW4-Dump-Files/maps/animated_models/jeepride_shrubgroup_02_anim...

23 lines
547 B
Plaintext
Raw Normal View History

2017-07-08 11:47:21 -07:00
#include common_scripts\utility;
#using_animtree( "animated_props" );
main()
{
if( !isdefined ( level.anim_prop_models ) )
level.anim_prop_models = [];
// Would use isSP() but this runs before we can
mapname = tolower( getdvar( "mapname" ) );
SP = true;
if ( string_starts_with( mapname, "mp_" ) )
SP = false;
model = "jeepride_shrubgroup_02_animated";
if ( SP )
{
level.anim_prop_models[ model ][ "sway" ] = %jeepride_shrubgroup_02_sway;
}
else
level.anim_prop_models[ model ][ "sway" ] = "jeepride_shrubgroup_02_sway";
}