Quote: --- Original message by: paddy369
Hi guys.
Does anyone know if it is possible to surpass the squad limit of 1024? I am trying to add some Marines to follow me around in b40, but I can't continue half way threw due to the squad limit.
With OpenSauce You can have up to 8192 squads AFAIK. You can have 127 encounters, each one containing up to 64 squads.
Also, you can get creative with the squads if you do them properly. For example, my mod Fall of Mombasa contains only one legitimate encounter, that is then transferred into blank encounters throughout the map that have the proper firing positions.
So maybe you can't spawn the next A.I. squad you want in the same encounter as the one it belongs in, but maybe there's another encounter with an available squad slot. Place a new squad in that encounter, put their spawns next to where they should actually be placed and then after spawning them use (ai_migrate) to move them from the encounter they spawned in to the encounter who's firing positions and other data they need. So you can piggyback an encounter that's closer to empty and transfer them to the one they need to use.
Also, it's very important to learn that instead of saying
(ai_place ENCOUNTER_NAME)
you can say
(ai_place ENCOUNTER_NAME/SQUAD_NAME)
which will only place the squad you named. You can do that for any command that requires an AI encounter to be passed, such as (ai_kill) or (vehicle_load_magic)
But, if you want me to suggest a cheat code, you can get really creative. Inside each of the covenant encounters on B40, add another squad called marines.
Make SURE that you set the default team to DEFAULT BY UNIT for EACH covenant encounter. Now, use the above command setup to transfer your marines from the original encounter into the special squad.
For example, if your encounter was my_marines and the original covenant encounters were called first_covenant, second_covenant etc. then it would look like;
(ai_migrate my_marines first_covenant/marines)
(sleep_until (= true (volume_test_objects TRIGGER_VOLUME (players))) 5)
(ai_migrate first_covenant/marines second_covenant/marines)
Because the encounter is set to default by unit, the team is determined by the unit's team index in the tag itself. And since they share the same firing positions as the next covenant encounter you won't have to setup new squads for that area. Now if you need to add squads for the sections in between major covenant encounters, you can add additional squads to my_marines
(ai_migrate my_marines first_covenant/marines)
(sleep_until (= true (volume_test_objects TRIGGER_VOLUME_1 (players))) 5)
(ai_migrate first_covenant/marines my_marines/SQUAD_2)
(sleep_until (= true (volume_test_objects TRIGGER_VOLUME_2 (players))) 5)
(ai_migrate my_marines/SQUAD_2 second_covenant/marines)
(sleep_until (= true (volume_test_objects TRIGGER_VOLUME_3 (players))) 5)
(ai_migrate second_covenant/marines my_marines/SQUAD_3)