mirror of
https://github.com/reaaLx/nx1-gsc-dump.git
synced 2025-09-07 17:37:25 +00:00
Init
This commit is contained in:
22
maps/animated_models/foliage_tree_oak_1.gsc
Normal file
22
maps/animated_models/foliage_tree_oak_1.gsc
Normal 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";
|
||||
}
|
Reference in New Issue
Block a user