Page 1 of 1

local side being bums [Solved]

Posted: Mon Oct 26, 2015 12:00 pm
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.

Re: local side being bums

Posted: Tue Oct 27, 2015 12:07 am
by [RDH]Zerted
What does the debug log say?

Re: local side being bums

Posted: Tue Oct 27, 2015 7:24 am
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"