yellow command post for third local team ? [Solved]
Moderator: Moderators
-
- Rebel Sergeant
- Posts: 208
- Joined: Thu Jul 26, 2018 12:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
yellow command post for third local team ? [Solved]
how do I make a command post yellow for the third tusken team ?
Last edited by wsa30h on Sun Sep 09, 2018 7:03 pm, edited 1 time in total.
-
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: yellow command post for third local team ?
Use the "neu" team name for the Tusken side.
-
- Lieutenant Colonel
- Posts: 545
- Joined: Mon Jul 04, 2016 10:56 pm
- Location: My other account
- Contact:
Re: yellow command post for third local team ?
(just to clarify cause this`ll be very useful for me too) By that do you mean using neu as the 3 character team name? Like rep, cis, all, and imp? Will that automatically make the CP`s yellow?Marth8880 wrote:Use the "neu" team name for the Tusken side.
-
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: yellow command post for third local team ?
I mean using "neu" in SetupTeams (or SetTeamName), like so:
(note that whateverTeamIdVariable must be an existing variable, like how REP and CIS are defined at the top of the script)
Code: Select all
SetupTeams{
rep = {
team = REP,
units = 1,
reinforcements = 150,
soldier = { "rep_inf_ep3_rifleman",9, 25},
assault = { "rep_inf_ep3_rocketeer",1, 4},
engineer = { "rep_inf_ep3_engineer",1, 4},
sniper = { "rep_inf_ep3_sniper",1, 4},
officer = {"rep_inf_ep3_officer",1, 4},
special = { "rep_inf_ep3_jettrooper",1, 4},
},
cis = {
team = CIS,
units = 1,
reinforcements = 150,
soldier = { "cis_inf_rifleman",9, 25},
assault = { "cis_inf_rocketeer",1, 4},
engineer = { "cis_inf_engineer",1, 4},
sniper = { "cis_inf_sniper",1, 4},
officer = {"cis_inf_officer",1, 4},
special = { "cis_inf_droideka",1, 4},
},
neu = {
team = whateverTeamIdVariable,
units = 1,
blahblahblah etcetcetc lmfao
}
}
-
- Rebel Sergeant
- Posts: 208
- Joined: Thu Jul 26, 2018 12:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: yellow command post for third local team ?
ok so I added those lines but its still red
here is my lua
here is my lua
Hidden/Spoiler:
-
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: yellow command post for third local team ?
You might also need to include SetTeamAsNeutral for NEU with the other teams.
https://github.com/marth8880/SWBF2-Lua- ... oclua#L514
https://sites.google.com/site/swbf2modt ... post_notes
https://github.com/marth8880/SWBF2-Lua- ... oclua#L514
https://sites.google.com/site/swbf2modt ... post_notes
- 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: yellow command post for third local team ?
I've never seen anyone successfully have a third color for a command post. SWBF2 either treats CPs as enemy or friendly, so their either red or blue. SWBF1 you could have team 3 be yellow.
-
- Rebel Sergeant
- Posts: 208
- Joined: Thu Jul 26, 2018 12:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: yellow command post for third local team ?
this will sound silly but I don't know where to tell it that the tuskens are neutral. ok so I got it working but their command post and map blips are white but when I aim at them their yellow but I need the cp color to be yellow as well here is my lua
Hidden/Spoiler:
-
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: yellow command post for third local team ?
I don't remember 100% if it'll actually make them yellow, but you'd need to use SetTeamAsNeutral for NEU with ATT, NEU with DEF, ATT with NEU, and DEF with NEU - and get rid of all SetTeamAsEnemy calls that affect NEU.
However, I realized just now that SetTeamAsNeutral will cause the teams to not attack each other, which I assume is not what you want for tuskens. With that said, I don't think there's any valid solution here.
However, I realized just now that SetTeamAsNeutral will cause the teams to not attack each other, which I assume is not what you want for tuskens. With that said, I don't think there's any valid solution here.
-
- Rebel Sergeant
- Posts: 208
- Joined: Thu Jul 26, 2018 12:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: yellow command post for third local team ?
I guess your right but I got it semi working here is my lua if your interested in trying it out.
Hidden/Spoiler:
- Rayman1103
- Private Second Class
- Posts: 72
- Joined: Mon Aug 02, 2010 10:54 am
- Location: Wisconsin
Re: yellow command post for third local team ?
Hello everyone, just wanted to let you all know that I've looked into this and I've found a solution that works, which allows for Team 3 to have yellow command posts.
Place the following code in ScriptInit (make sure not to have any SetTeamAsEnemy functions here):
Then place the following in ScriptPostLoad:
When the map loads, Team 3 will have yellow CPs and they will still attack the other teams, and the other teams will attack them.
Here's a screenshot showing yellow CPs
Edit: To make sure Team 3 appears yellow their name needs to be set to "locals". Otherwise they will appear white.
Place the following code in ScriptInit (make sure not to have any SetTeamAsEnemy functions here):
Code: Select all
SetTeamName(3, "locals")
SetTeamAsNeutral(1, 3)
SetTeamAsNeutral(3, 1)
SetTeamAsNeutral(2, 3)
SetTeamAsNeutral(3, 2)
Code: Select all
SetTeamAsEnemy(1, 3)
SetTeamAsEnemy(3, 1)
SetTeamAsEnemy(2, 3)
SetTeamAsEnemy(3, 2)
Here's a screenshot showing yellow CPs
Edit: To make sure Team 3 appears yellow their name needs to be set to "locals". Otherwise they will appear white.
Last edited by Rayman1103 on Sun Sep 09, 2018 11:13 am, edited 2 times in total.
- 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: yellow command post for third local team ?
Very clever idea. I've bookmarked this for future use. Now if we can just figure out how to set the player's team to green instead of blue. Most of the values are set in the HUD, but I don't know if anyone consistently got everything to be green for the player team.
-
- Lieutenant Colonel
- Posts: 545
- Joined: Mon Jul 04, 2016 10:56 pm
- Location: My other account
- Contact:
Re: yellow command post for third local team ?
I placed all that code in the correct areas in my lua but the CP`s aren`t yellow, they`re white, exactly like neutral/uncaptured CP`s. Also when I kill one of the units who spawn from it, the text in the kill feed is white, which is probably supposed to happen. Also, is it possible for the team to have a yellow CP but be friendly for the Republic team?
My lua
My lua
Hidden/Spoiler:
Last edited by SkinnyODST on Sun Sep 09, 2018 1:49 am, edited 1 time in total.
-
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: yellow command post for third local team ?
can we not pls thxTeancum wrote:Now if we can just figure out how to set the player's team to green instead of blue. Most of the values are set in the HUD, but I don't know if anyone consistently got everything to be green for the player team.
Green vs. red is an awful color scheme - really sucks for colorblind people such as myself. It was a legitimate huge problem for me in SWBF, I'd constantly not be able to tell who CPs belonged to from a distance and such.
- 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: yellow command post for third local team ?
Huh, I hadn't thought of that. Which type of colorblind are you? Would a darker green have made a difference at the time?
-
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: yellow command post for third local team ?
I'm protanopic. Darker green possibly would've helped, yeah - the shade of green they used was preeeeeetty bright.
- Rayman1103
- Private Second Class
- Posts: 72
- Joined: Mon Aug 02, 2010 10:54 am
- Location: Wisconsin
Re: yellow command post for third local team ?
It appears we need to set the name of Team 3 (or whichever team) to "locals", in order for the yellow color to appear, otherwise it'll be white when setting them to Neutral.SkinnyODST wrote:I placed all that code in the correct areas in my lua but the CP`s aren`t yellow, they`re white, exactly like neutral/uncaptured CP`s. Also when I kill one of the units who spawn from it, the text in the kill feed is white, which is probably supposed to happen.
In ScriptInit add the following line:
Code: Select all
SetTeamName(3, "locals")
Yes it is possible, however they would still be able to take over CPs if they're standing near a friendly or hostile CP. So you may need to set "CapturePosts" to 0 for those units on that team. But then they wont be able to take back any of their own territory if they lost any.SkinnyODST wrote:Also, is it possible for the team to have a yellow CP but be friendly for the Republic team?
-
- Rebel Sergeant
- Posts: 208
- Joined: Thu Jul 26, 2018 12:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: yellow command post for third local team ?
thanks guys it works flawlessly now also sorry for the late response am on holiday so I haven't been on much lately and also, atm don't have to usr a proxy server to get here which is good.
-
- Lieutenant Colonel
- Posts: 545
- Joined: Mon Jul 04, 2016 10:56 pm
- Location: My other account
- Contact:
Re: yellow command post for third local team ?
Works perfectly, thanksRayman1103 wrote:It appears we need to set the name of Team 3 (or whichever team) to "locals", in order for the yellow color to appear, otherwise it'll be white when setting them to Neutral.SkinnyODST wrote:I placed all that code in the correct areas in my lua but the CP`s aren`t yellow, they`re white, exactly like neutral/uncaptured CP`s. Also when I kill one of the units who spawn from it, the text in the kill feed is white, which is probably supposed to happen.
In ScriptInit add the following line:
----------Code: Select all
SetTeamName(3, "locals")
Yes it is possible, however they would still be able to take over CPs if they're standing near a friendly or hostile CP. So you may need to set "CapturePosts" to 0 for those units on that team. But then they wont be able to take back any of their own territory if they lost any.SkinnyODST wrote:Also, is it possible for the team to have a yellow CP but be friendly for the Republic team?