single reinforcement

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
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

single reinforcement

Post by jedimoose32 »

I played Theed: Hangar assault and I was wondering how I make it so that one team has only one unit on the map at a time, and it's only you. Like Theed Hangar. I've been through my ***_eli.lua and also at ObjectiveTDM, which it references, but I haven't seen anything that references the reinforcement count :? .

Also, to make it so that the player is forced onto a team, I load the ObjectiveCampaign into the main lua, correct? I remember doing this by accident once before, but I'm not sure if that was how I did it.
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: single reinforcement

Post by ryukaji »

ForceHumansOntoTeam1()

add that to your lua to force player onto team 1. Reinforcement count is in the .lua , it will be set to -1 in _eli but I believe if you set it to 1 that should change it to 1 reinforcement.
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: single reinforcement

Post by jedimoose32 »

So if I set it to 1, the game will be like, "oh crap there's only room for one dude, and if we give that spot to a dumb AI that human dude will get pissed off so we have to give it to him!"

Is that right?
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: single reinforcement

Post by ryukaji »

Well my map is just like that, and thats what I did and only I spawn.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: single reinforcement

Post by Teancum »

AllowAISpawn(false)
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: single reinforcement

Post by jedimoose32 »

Teancum wrote:AllowAISpawn(false)
Thanks, but the ForcePlayerOntoTeam1() function worked great, as did the changing of the reinforcement count to 1 rather than -1.

Another quick thing: How can I change the amount of kills needed to win from whatever the option in the Instant Action Menu is to an unchangeable value like 300?
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: single reinforcement

Post by [RDH]Zerted »

Set the reinforcement count to 300 after you start the objective.
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: single reinforcement

Post by jedimoose32 »

Oooooooooh, like with that SetReinforcementsTeam function (or whatever it is) from the scripting system doc that came with the ModTool?

:oops: Hahaha. Okay.
Post Reply