IW4-Dump-Files/maps/animated_models/foliage_pacific_fern01.gsc

23 lines
548 B
Plaintext

#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 = "foliage_pacific_fern01_animated";
if ( SP )
{
level.anim_prop_models[ model ][ "sway" ] = %foliage_pacific_fern01_sway;
}
else
level.anim_prop_models[ model ][ "sway" ] = "foliage_pacific_fern01_sway";
}