Page 1 of 1

Team DeathMatch question

Posted: Sat Mar 25, 2017 9:54 am
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. :?

Re: Team DeathMatch question

Posted: Sat Mar 25, 2017 12:56 pm
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 ^^

Re: Team DeathMatch question

Posted: Sat Mar 25, 2017 2:09 pm
by CdtFox
Thank you :lol:

Just need to figure out how to increase the score limit now.

Re: Team DeathMatch question

Posted: Sat Mar 25, 2017 6:31 pm
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:

Re: Team DeathMatch question

Posted: Sat Mar 25, 2017 7:26 pm
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.

Re: Team DeathMatch question

Posted: Sun Mar 26, 2017 6:12 am
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