fix animation of trees on favela

pull/3/head
Edo 2023-02-13 19:44:41 +00:00 committed by GitHub
parent 2917b97bcc
commit 0196f7ddd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 23 deletions

View File

@ -1,23 +0,0 @@
#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";
}