Page 1 of 1

Local Reinforcements

Posted: Sun Dec 09, 2007 10:04 am
by FOOLIS
Hey ,
I want that my local team only has 3 reinforcements .
How can i do that :

My current local team descrption looks like this :

SetTeamName(3, "locals")
AddUnitClass(3,"snw_inf_wampa",3)
SetUnitCount(3,3)
AddAIGoal(3, "Deathmatch", 3)
SetTeamAsFriend(DEF,3)
SetTeamAsFriend(3,DEF)
SetTeamAsEnemy(DEF,3)
SetTeamAsEnemy(3,DEF)

Re: Local Reinforcements

Posted: Sun Dec 09, 2007 11:12 am
by Caleb1117
I don't think you can assign them reinforcements...

Re: Local Reinforcements

Posted: Sun Dec 09, 2007 11:22 am
by Adjuntant_Reflex
Caleb1117 wrote:I don't think you can assign them reinforcements...
Everything is possible when you mod :mrgreen:

Re: Local Reinforcements

Posted: Sun Dec 09, 2007 11:25 am
by FragMe!
Actually what you have there should work, you are setting the limit to 3 units with a minimum of 3 at once if I read my lua correctly from when I had swampas in Sewers.

This is what I had in place The set unit count is 3 = team 4 = number of units

Code: Select all

	 SetTeamName (3, "locals") 
   AddUnitClass (3, "snw_inf_wampa",1,1)
   AddUnitClass (3, "geo_inf_acklay",1,2) 
   SetUnitCount (3,4) 
   AddAIGoal(3, "Deathmatch", 100) 

	SetTeamAsEnemy(ATT,3) 
  SetTeamAsEnemy(3,ATT) 
  SetTeamAsEnemy(DEF,3) 
  SetTeamAsEnemy(3,DEF) 

Re: Local Reinforcements

Posted: Sun Dec 09, 2007 2:32 pm
by FOOLIS
Eh i mean that when 3 locals died that noone of them respawn .

Re: Local Reinforcements

Posted: Sun Dec 09, 2007 8:49 pm
by Penguin
As far as I know, you can't set locals up with reinforcements, but you can always try, since I never have.

Re: Local Reinforcements

Posted: Sun Dec 09, 2007 9:24 pm
by Maveritchell
You could just script it as an ambush, like I mentioned. Then only three will show up. Even if you didn't want it as an ambush, per se, you could still script it as one and just make it so that the ambush is triggered the first time someone spawns.

Re: Local Reinforcements

Posted: Mon Dec 10, 2007 6:34 am
by The_Emperor
Maveritchell wrote:You could just script it as an ambush, like I mentioned. Then only three will show up. Even if you didn't want it as an ambush, per se, you could still script it as one and just make it so that the ambush is triggered the first time someone spawns.
A solid workaround.

Re: Local Reinforcements

Posted: Mon Dec 10, 2007 9:19 am
by FragMe!
As far as I remember Swampa would respawn because after killing one there would be another one to take it's place and he'd kill me :(

One thing I did just notice is you have locals set as both friend and enemy of the "def" team they have to be one or the other plus you should set the relationship to the "att" team as well.

Re: Local Reinforcements

Posted: Mon Dec 10, 2007 11:33 am
by Maveritchell
FragMe! wrote:One thing I did just notice is you have locals set as both friend and enemy of the "def" team they have to be one or the other plus you should set the relationship to the "att" team as well.
Actually, if they're set as both it'll just -I believe - read the last set of SetTeamAsEtc, which in this case will set the team as the enemy.

Re: Local Reinforcements

Posted: Mon Dec 10, 2007 1:09 pm
by [RDH]Zerted
Did you ever try SetReinforcementCount( teamNumber, reinforcementCount ) ?