mirror of
https://github.com/reaaLx/nx1-gsc-dump.git
synced 2025-04-23 17:45:47 +00:00
22 lines
572 B
Plaintext
22 lines
572 B
Plaintext
#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_pacific_fern01_animated";
|
|
if ( SP )
|
|
{
|
|
level._anim_prop_models[ model ][ "sway" ] = %foliage_pacific_fern01_sway;
|
|
}
|
|
else
|
|
level._anim_prop_models[ model ][ "sway" ] = "foliage_pacific_fern01_sway";
|
|
} |