Spawn on AI unit instead of command post (Singleplayer Only)
Squad system by MileHighGuy from gametoast.com
This allows you to toggle a button to determine if you want to spawn on a "squad leader" unit instead of a command post.
Currently, it doesnt work in multiplayer.
This is the first release and I might add on to it int he future. If you can read LUA, I tried to comment it so you can understand what happens.
1. Put the SquadSystem.lua in your project's data_XYZ/Common/scripts folder (where XYZ is your map's name)
2. Add SquadSystem.lua to the mission.req in data_XYZ/Common under "scripts", so it is included in the .lvl file
3. Add ScriptCB_DoFile("SquadSetup") to you map's mission lua (XYZc_con for example) at the top, so it is loaded in the specific mission
3. Initialize the "Squad System" mode. Add, as an example:
squadSetup = SquadSetup:New()
squadSetup:addTeam(ATT, 20 , 3)
squadSetup:addTeam(DEF, 20, 3)
to your mission lua, under where it sets up the conquest mode in ScriptPostLoad().
ATT/DEF is the team, 20 is the number of units on the side, 3 in the number of squad leaders you want.
4. Add the squad putton, put a call to
overrideSpawnScreen()
under ReadDataFile("ingame.lvl"). This will let us add a new button needed for the system.
That should be all you have to do. Enjoy
Wait fr? This is awesome! I am assuming this can be used for custom maps as long as you are credited?
Yes that's the whole reason I released it lol
Alright, might wanna sign in tho 😂
Indeed
😂
Very nice, just like in some of the Battlefield Games. :D
Or like the new battlefront games xD
Let the dumb ai decide where i spawn? I LOVE IT
😂😂😂
Better than walking all the way across an empty map!
This is incredible, so many new possibilities!
There was a slight typo in the code that caused it to not work. I have updated the download just now and fixed it.
I am actually making a map pack with battlefront 2 2017 maps in it (I am avoiding the ones that are already made though) and this will fit well with them 😀
woah this is epic!!!
Here is the new version
Moddb.com