add back accidentally deleted script

pull/3/head
Diavolo 2023-01-09 18:02:50 +01:00
parent 0802f5fd1c
commit 3d1f7ff3f2
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
#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_palm_bushy_3";
if ( SP )
{
level.anim_prop_models[ model ][ "still" ] = %palmtree_bushy3_still;
level.anim_prop_models[ model ][ "strong" ] = %palmtree_bushy3_sway;
}
else
level.anim_prop_models[ model ][ "strong" ] = "palmtree_mp_bushy3_sway";
}