From 3d1f7ff3f230f6925c23dbf0eb73603a52538a1c Mon Sep 17 00:00:00 2001 From: Diavolo Date: Mon, 9 Jan 2023 18:02:50 +0100 Subject: [PATCH] add back accidentally deleted script --- .../foliage_tree_palm_bushy_3.gsc | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 iw4x/iw4x_00/maps/animated_models/foliage_tree_palm_bushy_3.gsc diff --git a/iw4x/iw4x_00/maps/animated_models/foliage_tree_palm_bushy_3.gsc b/iw4x/iw4x_00/maps/animated_models/foliage_tree_palm_bushy_3.gsc new file mode 100644 index 0000000..2e1559f --- /dev/null +++ b/iw4x/iw4x_00/maps/animated_models/foliage_tree_palm_bushy_3.gsc @@ -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"; +}