Fix FFA/multiteam, remove duplicate assets and move them to a shared.zone.

Note: multiteam causes the game to reach the image asset limit so you cannot use the mod on multiteam.
This commit is contained in:
JezuzLizard
2023-12-25 21:22:50 -08:00
parent 1931b0a9ff
commit c8972ced8b
9 changed files with 37 additions and 39 deletions

View File

@ -32,7 +32,16 @@ set_player_model_override( team, weapon )
self setsprintduration( 4 );
self setsprintcooldown( 0 );
possible_models = game[ "characters" ][ team ];
possible_models = [];
if ( !level.teambased || level.multiteam )
{
possible_models = arrayCombine( game[ "characters" ][ "allies" ], game[ "characters" ][ "axis" ], false, true );
}
else
{
possible_models = game[ "characters" ][ team ];
}
if ( isDefined( possible_models ) && possible_models.size > 0 )
{