Team DeathMatch question

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
CdtFox
2nd Lieutenant
2nd Lieutenant
Posts: 379
Joined: Wed Feb 17, 2016 8:51 am
Projects :: BUC and Designated Days
Games I'm Playing :: SWBF2+EAW+Subnautica
xbox live or psn: No gamertag set
Location: France
Contact:

Team DeathMatch question

Post by CdtFox »

Hello guys,

I have one questions regarding a team DeathMatch game-mode.

1) How can i boost the number of bots in the map?

I loaded a conquest setup team in my script, like that: as you can see i added 32 units and 300 reinforcements. However there is not a lot of units on the battlefield, not 32 that's sure. It's pretty empty compared to a conquest match.
Hidden/Spoiler:
[code]SetupTeams{
all = {
team = ALL,
units = 32,
reinforcements = 300,
soldier = { "all_inf_rifleman",9, 25},
assault = { "all_inf_rocketeer",1,4},
engineer = { "all_inf_engineer",1,4},
sniper = { "all_inf_sniper",1,4},
officer = { "all_inf_officer",1,4},
special = { "all_inf_wookiee",1,4},[/code]
I know it's possible to up that number, i played a few mods with a lot of units in TDM. :D

2) How can i setup the number of kills in order to win? I used a default Hunt script and the limit is 50. :?
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: Team DeathMatch question

Post by CT108 »

CdtFox wrote:Hello guys,

I have one questions regarding a team DeathMatch game-mode.

1) How can i boost the number of bots in the map?

I loaded a conquest setup team in my script, like that: as you can see i added 32 units and 300 reinforcements. However there is not a lot of units on the battlefield, not 32 that's sure. It's pretty empty compared to a conquest match.
Hidden/Spoiler:
[code]SetupTeams{
all = {
team = ALL,
units = 32,
reinforcements = 300,
soldier = { "all_inf_rifleman",9, 25},
assault = { "all_inf_rocketeer",1,4},
engineer = { "all_inf_engineer",1,4},
sniper = { "all_inf_sniper",1,4},
officer = { "all_inf_officer",1,4},
special = { "all_inf_wookiee",1,4},[/code]
I know it's possible to up that number, i played a few mods with a lot of units in TDM. :D
Did you added SetUberMode(1); in your .lua ? Like this :
Hidden/Spoiler:
[code]--This adds the CPs to the objective. This needs to happen after the objective is set up
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)
conquest:AddCommandPost(cp5)
conquest:AddCommandPost(cp6)
conquest:AddCommandPost(cp7)

conquest:Start()

SetUberMode(1);

EnableSPHeroRules()

end[/code]
I did the error before ^^
CdtFox
2nd Lieutenant
2nd Lieutenant
Posts: 379
Joined: Wed Feb 17, 2016 8:51 am
Projects :: BUC and Designated Days
Games I'm Playing :: SWBF2+EAW+Subnautica
xbox live or psn: No gamertag set
Location: France
Contact:

Re: Team DeathMatch question

Post by CdtFox »

Thank you :lol:

Just need to figure out how to increase the score limit now.
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: Team DeathMatch question

Post by CT108 »

CdtFox wrote:Thank you :lol:

Just need to figure out how to increase the score limit now.
It might be that but I'm not sure if it will works.

In your hunt.lua add this

Code: Select all

multiplayerScoreLimit = 100,
to have that

Code: Select all

hunt = ObjectiveTDM:New{teamATT = 1, teamDEF = 2,
            pointsPerKillATT = 1, pointsPerKillDEF = 2,
            multiplayerScoreLimit = *,
            textATT = "level.geo1.objectives.hunt_att", textDEF = "level.geo1.objectives.hunt_def", multiplayerRules = true}            

hunt:Start()
where * is the number of kills :wink:
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Team DeathMatch question

Post by Marth8880 »

CT108 wrote:It might be that but I'm not sure if it will works.

In your hunt.lua add this

Code: Select all

multiplayerScoreLimit = 100,
to have that

Code: Select all

hunt = ObjectiveTDM:New{teamATT = 1, teamDEF = 2,
            pointsPerKillATT = 1, pointsPerKillDEF = 2,
            multiplayerScoreLimit = *,
            textATT = "level.geo1.objectives.hunt_att", textDEF = "level.geo1.objectives.hunt_def", multiplayerRules = true}            

hunt:Start()
where * is the number of kills :wink:
It won't. multiplayerScoreLimit is not a valid parameter for the Objective or ObjectiveTDM class. All he needs to do is, in the class instantiation (i.e., in ObjectiveTDM:New), set isUberMode to true and set uberScoreLimit to the desired score limit.
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: Team DeathMatch question

Post by CT108 »

Marth8880 wrote: It won't. multiplayerScoreLimit is not a valid parameter for the Objective or ObjectiveTDM class. All he needs to do is, in the class instantiation (i.e., in ObjectiveTDM:New), set isUberMode to true and set uberScoreLimit to the desired score limit.
Oh ok thank you ! (even if it will help Fox, not me)

OFF-TOPIC : I love your 3D Mario Marth
Post Reply