forked from Rackover/iw4x-rawfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add back accidentally deleted script
- Loading branch information
1 parent
0802f5f
commit 3d1f7ff
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
iw4x/iw4x_00/maps/animated_models/foliage_tree_palm_bushy_3.gsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; | ||
} |