All enemies are Jedi?

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
711Savior
Posts: 2
Joined: Thu Jun 30, 2011 10:54 pm
Projects :: No Mod project currently.
Games I'm Playing :: BattleFront II
xbox live or psn: No gamertag set

All enemies are Jedi?

Post by 711Savior »

Hello everyone. I am quite new to modding, and I was wondering, is there any way to disable Jedi for the players team, but ensure the CPU team has at least three Jedi/Sith Heroes? Thanks.
nmycon
Private Recruit
Posts: 20
Joined: Mon Apr 13, 2009 2:57 pm
Projects :: Star Wars Movie Mods
Games I'm Playing :: LA Noire MLB 11 BF2
Location: Toronto, ON

Re: All enemies are Jedi?

Post by nmycon »

If you are hex editing, unfortunately the best you can do is replace any unit other than the soldier class, limiting the jedi unit to a maximum of 4 on the battlefield at once.

If you are making a map and can edit the LUA scripts, it's quite easy

When you have your side set up, just change the max unit number:
SetupTeams{

rep = {
team = REP,
units = 32,
reinforcements = 150,
soldier = { "rep_inf_ep3_rifleman",7, 25},
assault = { "rep_inf_ep3_rocketeer",1, 4},
engineer = { "rep_inf_ep3_engineer",1, 4},
sniper = { "rep_inf_ep3_sniper",1, 4},
officer = {"rep_inf_ep3_officer",1, 4},
special = { "rep_hero_macewindu",1, 1},
Now there can only be a max of 1 unit at a time. You can do this with other classes as well. The only downside is that if you were the Republic (in this case), none of the jedi would spawn as the game always leaves one slot open for the player, so it only works for the CPU team.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: All enemies are Jedi?

Post by THEWULFMAN »

Thats not really what he meant nmycon, he wants it so that only the opposing team has jedi/sith.

This may be possible, it would require a lua script chunk to do this, I will try to make one later, or someone else will beat me to it.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: All enemies are Jedi?

Post by DarthD.U.C.K. »

an idea form the top of my head:
1. when the player chooses a team, forcespawn the three enemy heroes like pandemic did it with leia and grievous in the campaign. if one dies, respawn him. when the player respawns, check again for the team and if he changed it, remove the heroes and spawn the new enemy heroes.
711Savior
Posts: 2
Joined: Thu Jun 30, 2011 10:54 pm
Projects :: No Mod project currently.
Games I'm Playing :: BattleFront II
xbox live or psn: No gamertag set

Re: All enemies are Jedi?

Post by 711Savior »

Thank you all so very much. I'm a rather new map maker, so some of this went in one ear and out the other, but hey, everyone had to start somewhere right? :eek:
Post Reply