4 factions on maps
Moderator: Moderators
- Ping
- Sith

- Posts: 1398
- Joined: Thu Sep 18, 2008 4:19 pm
- Location: College
4 factions on maps
I was just wondering if it was possible to have four factions on a map at once. I mean, only two would be playable, but I don't know if there can be more than three sides on a map.
Edit: Whoops! Put this in the wrong forum. Staff, could you please move this to the BF2 modding forum?
Edit: Whoops! Put this in the wrong forum. Staff, could you please move this to the BF2 modding forum?
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: 4 factions on maps
Yep, when I get time tonight I'll post the Geonosis Uber lua, which does just that (REP, CIS, Geonosians and Jedi)
- Ping
- Sith

- Posts: 1398
- Joined: Thu Sep 18, 2008 4:19 pm
- Location: College
Re: 4 factions on maps
Ok, thanks. Is it also possible to have all 4 of them fight against each other, and is it also possible to give all four sides CPs?Teancum wrote:Yep, when I get time tonight I'll post the Geonosis Uber lua, which does just that (REP, CIS, Geonosians and Jedi)
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: 4 factions on maps
Absolutely. I wouldn't advise making it a conquest game if you're going to have four teams capturing CPs, though. (Although it might be fun to try.)Ping wrote:Ok, thanks. Is it also possible to have all 4 of them fight against each other, and is it also possible to give all four sides CPs?Teancum wrote:Yep, when I get time tonight I'll post the Geonosis Uber lua, which does just that (REP, CIS, Geonosians and Jedi)
Here's an example from one of my wave modes, which has seven teams (obviously not all against each other, but it's possible) running around at once:
Hidden/Spoiler:
- Ping
- Sith

- Posts: 1398
- Joined: Thu Sep 18, 2008 4:19 pm
- Location: College
Re: 4 factions on maps
Thank you! I'm still warming up to .lua code, but I get the gist of it.Maveritchell wrote:Absolutely. I wouldn't advise making it a conquest game if you're going to have four teams capturing CPs, though. (Although it might be fun to try.)Ping wrote:Ok, thanks. Is it also possible to have all 4 of them fight against each other, and is it also possible to give all four sides CPs?Teancum wrote:Yep, when I get time tonight I'll post the Geonosis Uber lua, which does just that (REP, CIS, Geonosians and Jedi)
Here's an example from one of my wave modes, which has seven teams (obviously not all against each other, but it's possible) running around at once:You can see how easy it is to set them up (and how they are allied with each other). All you need to do to get them to spawn from a CP is assign the CP to their team number. (Use the invisible CP for AI teams.)Hidden/Spoiler:
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: 4 factions on maps
And here's the Geonosis code:
Hidden/Spoiler:
- sampip
- General

- Posts: 792
- Joined: Mon Mar 16, 2009 12:08 pm
- Projects :: Something big. And exciting.
- xbox live or psn: masowner66
- Location: Zebra
Re: 4 factions on maps
I have a question, in the tutorial on the FAQ, it says something about setting a AI goal to Deathmatch.
Does this come in anywhere? Because I have tried to make a team, but they arent appearing in battle.
Edit: It's in Mav's but it isn't in Teancum's?
Does this come in anywhere? Because I have tried to make a team, but they arent appearing in battle.
Edit: It's in Mav's but it isn't in Teancum's?
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: 4 factions on maps
Mine's just a snippet of the code. I put all of my AddAIGoal() functions near the top. Sorry for the confusion.
- sampip
- General

- Posts: 792
- Joined: Mon Mar 16, 2009 12:08 pm
- Projects :: Something big. And exciting.
- xbox live or psn: masowner66
- Location: Zebra
Re: 4 factions on maps
Oh right, Thanks. I was just wondering.
Did you put it under:
function ScriptPostLoad()?
Did you put it under:
function ScriptPostLoad()?
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: 4 factions on maps
You can, but his and mine both come from ScriptInit() right under SetupTeams.
