iw6-scripts-dev/maps/animated_models/mp_flooded_water_debris_spiral.gsc
2024-12-11 11:28:08 +01:00

24 lines
639 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 = "debris_water_trash";
if ( SP )
{
level.anim_prop_models[ model ][ "debris_water_trash" ] = %debris_water_trash_spiral_anim;
}
else
level.anim_prop_models[ model ][ "debris_water_trash" ] = "debris_water_trash_spiral_anim";
}