Local Reinforcements

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
FOOLIS
Jedi
Jedi
Posts: 1038
Joined: Tue Jan 16, 2007 3:59 pm
Location: Germany

Local Reinforcements

Post 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)
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Re: Local Reinforcements

Post by Caleb1117 »

I don't think you can assign them reinforcements...
Adjuntant_Reflex
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 312
Joined: Fri Aug 31, 2007 4:47 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Home... Where else?

Re: Local Reinforcements

Post by Adjuntant_Reflex »

Caleb1117 wrote:I don't think you can assign them reinforcements...
Everything is possible when you mod :mrgreen:
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Local Reinforcements

Post 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) 
FOOLIS
Jedi
Jedi
Posts: 1038
Joined: Tue Jan 16, 2007 3:59 pm
Location: Germany

Re: Local Reinforcements

Post by FOOLIS »

Eh i mean that when 3 locals died that noone of them respawn .
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

Re: Local Reinforcements

Post by Penguin »

As far as I know, you can't set locals up with reinforcements, but you can always try, since I never have.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Local Reinforcements

Post 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.
The_Emperor
Supreme Galactic Ruler
Posts: 2118
Joined: Sat Dec 10, 2005 6:30 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Waaaaay over there.

Re: Local Reinforcements

Post 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.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Local Reinforcements

Post 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.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Local Reinforcements

Post 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.
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 Reinforcements

Post by [RDH]Zerted »

Did you ever try SetReinforcementCount( teamNumber, reinforcementCount ) ?
Post Reply