local side being bums [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
ZoomV
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 308
Joined: Thu Aug 15, 2013 11:27 am
Projects :: Old Republic Map pack
Games I'm Playing :: BF2 SWTOR and GW2
xbox live or psn: No gamertag set
Location: Belsavis, Maximum Security Ward

local side being bums [Solved]

Post by ZoomV »

So like previous maps of mine I'm putting in sith and jedi as a local side to assist, however for some reason when they spawn they do not do anything unless there is a enemy in immediate combat range. They just sit where they spawn until something shoots at them. I tried using objective "Conquest" and tried using objective "Deathmatch" and got the same result both times.

The jedi and sith local teams are set up like this in the LUA.
Hidden/Spoiler:
[code] SetTeamName(JediTeam,"jedi")
AddUnitClass(JediTeam,"pub_inf_jediguardian",1,1)
SetUnitCount(JediTeam,1)
AddAIGoal(JediTeam,"Deathmatch",100)
SetTeamAsFriend(JediTeam,REP)
SetTeamAsFriend(PubZergTeam,JediTeam)
SetTeamAsFriend(JediTeam,PubZergTeam)
SetTeamAsFriend(REP,JediTeam)
SetTeamAsEnemy(JediTeam,IMP)
SetTeamAsEnemy(IMP,JediTeam)
SetTeamAsEnemy(JediTeam,ImpZergTeam)
SetTeamAsEnemy(ImpZergTeam,JediTeam)

SetTeamName(SithTeam,"sith")
AddUnitClass(SithTeam,"imp_inf_sithwarrior",1,1)
SetUnitCount(SithTeam,1)
AddAIGoal(SithTeam,"Deathmatch",100)
SetTeamAsEnemy(SithTeam,REP)
SetTeamAsEnemy(REP,SithTeam)
SetTeamAsEnemy(SithTeam,JediTeam)
SetTeamAsEnemy(JediTeam,SithTeam)
SetTeamAsFriend(SithTeam,IMP)
SetTeamAsFriend(IMP,SithTeam)
SetTeamAsFriend(SithTeam,ImpZergTeam)
SetTeamAsFriend(ImpZergTeam,SithTeam)[/code]
Interestingly enough the PubZergTeam and ImpZergTeam sides which are also using the Deathmatch objective function perfectly fine and immediately move off in search of targets upon spawning.


Here is how the sith and jedi teams are set up on a different map where they work properly.
Hidden/Spoiler:
[code] SetTeamName(SithTeam, "sith")
AddUnitClass(SithTeam, "imp_inf_sithwarrior", 1)
AddUnitClass(SithTeam, "imp_inf_sithmarauder", 1)
SetUnitCount(SithTeam, 2)
AddAIGoal(SithTeam, "Deathmatch", 100)
SetTeamAsFriend(SithTeam, ATT)
SetTeamAsFriend(SithTeam, 3)
SetTeamAsFriend(3, SithTeam)
SetTeamAsFriend(ATT,SithTeam)
SetTeamAsEnemy(DEF,SithTeam)
SetTeamAsEnemy(SithTeam,DEF)

SetTeamName(JediTeam, "jedi")
AddUnitClass(JediTeam, "pub_inf_jedi", 1)
AddUnitClass(JediTeam, "pub_inf_jediguardian", 1)
SetUnitCount(JediTeam, 2)
AddAIGoal(JediTeam, "Deathmatch", 100)
SetTeamAsEnemy(JediTeam, ATT)
SetTeamAsEnemy(JediTeam, WarDroidTeam)
SetTeamAsEnemy(WarDroidTeam, JediTeam)
SetTeamAsEnemy(ATT,JediTeam)
SetTeamAsFriend(DEF,JediTeam)
SetTeamAsFriend(JediTeam,DEF)[/code]

EDIT: It occurred to me that it might be because all my planning connections are "soldier" only. will have to test when I get back from class.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: local side being bums

Post by [RDH]Zerted »

What does the debug log say?
ZoomV
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 308
Joined: Thu Aug 15, 2013 11:27 am
Projects :: Old Republic Map pack
Games I'm Playing :: BF2 SWTOR and GW2
xbox live or psn: No gamertag set
Location: Belsavis, Maximum Security Ward

Re: local side being bums

Post by ZoomV »

[RDH]Zerted wrote:What does the debug log say?
It says I fixed it because it was the planning connections. Apparently force class default to "hover"
Post Reply