This commit is contained in:
reaaLx
2024-09-04 23:46:54 +10:00
parent 5f950a3356
commit 1ea2370337
471 changed files with 108331 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#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_tree_oak_1_animated2";
if ( SP )
{
level._anim_prop_models[ model ][ "sway" ] = %foliage_tree_oak_1_sway;
}
else
level._anim_prop_models[ model ][ "sway" ] = "foliage_tree_oak_1_sway";
}