Hunt reinforcements
Moderator: Moderators
-
modmaster13
- General

- Posts: 777
- Joined: Wed Aug 18, 2010 4:23 pm
- xbox live or psn: KrypticcElementt
- Location: Twitter @_KrypticElement
- Contact:
Hunt reinforcements
Hi how would I change the reinforcement count of hunt from "0/50" to "0/300"?
-
Jdg50
- Second Lance Corporal

- Posts: 101
- Joined: Sun Nov 07, 2010 11:25 am
- Projects :: An Endor map
Re: Hunt reinforcements
Either change it from the menu settings or change it in the LUA.
-
modmaster13
- General

- Posts: 777
- Joined: Wed Aug 18, 2010 4:23 pm
- xbox live or psn: KrypticcElementt
- Location: Twitter @_KrypticElement
- Contact:
Re: Hunt reinforcements
I would like to change it in the LUA, I just can't figure out where the code is...Jdg50 wrote:Either change it from the menu settings or change it in the LUA.
-
Jdg50
- Second Lance Corporal

- Posts: 101
- Joined: Sun Nov 07, 2010 11:25 am
- Projects :: An Endor map
Re: Hunt reinforcements
It probably would be in the hunt LUA in the Common/scripts/worldname folder.
Post that LUA.
Post that LUA.
- Firefang
- Major

- Posts: 518
- Joined: Mon Nov 15, 2010 8:55 pm
- Location: California
Re: Hunt reinforcements
It's not found in that lua. I'm pretty sure it's in the ObjectiveTDM.lua.
-
modmaster13
- General

- Posts: 777
- Joined: Wed Aug 18, 2010 4:23 pm
- xbox live or psn: KrypticcElementt
- Location: Twitter @_KrypticElement
- Contact:
Re: Hunt reinforcements
Where is that located? 
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Hunt reinforcements
in data_XXX\Common\scripts, but im pretty sure they are loaded from within the game and editing them has no effect
in the objectivetdm-file the reinforcements are defined like this:
that means you can probably modify it by putting "scorelimit = 300" in your lua. maybe you have to do it a more complicated way though
in the objectivetdm-file the reinforcements are defined like this:
Code: Select all
scorelimit = ScriptCB_GetHuntScoreLimit()-
modmaster13
- General

- Posts: 777
- Joined: Wed Aug 18, 2010 4:23 pm
- xbox live or psn: KrypticcElementt
- Location: Twitter @_KrypticElement
- Contact:
Re: Hunt reinforcements
What about the timer?DarthD.U.C.K. wrote:in data_XXX\Common\scripts, but im pretty sure they are loaded from within the game and editing them has no effect
in the objectivetdm-file the reinforcements are defined like this:that means you can probably modify it by putting "scorelimit = 300" in your lua. maybe you have to do it a more complicated way thoughCode: Select all
scorelimit = ScriptCB_GetHuntScoreLimit()
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Hunt reinforcements
i like the timer, i think its really sympathetic...
it is, and here comes the catch:
so you could theoretically change it that way:
however i have the feeling that this may be too easy.
it is, and here comes the catch:
Code: Select all
function ObjectiveTDM:GetGameTimeLimit()
return ScriptCB_GetHuntMaxTimeLimit()
endCode: Select all
function ObjectiveTDM:GetGameTimeLimit()
return 600
end-
modmaster13
- General

- Posts: 777
- Joined: Wed Aug 18, 2010 4:23 pm
- xbox live or psn: KrypticcElementt
- Location: Twitter @_KrypticElement
- Contact:
Re: Hunt reinforcements
I can't find either one of those codes.DarthD.U.C.K. wrote:i like the timer, i think its really sympathetic...
it is, and here comes the catch:so you could theoretically change it that way:Code: Select all
function ObjectiveTDM:GetGameTimeLimit() return ScriptCB_GetHuntMaxTimeLimit() endhowever i have the feeling that this may be too easy.Code: Select all
function ObjectiveTDM:GetGameTimeLimit() return 600 end
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Hunt reinforcements
These are the potential inputs for ObjectiveTDM:
If you want a hunt mode with no timer and 300 as a locked-in points goal, set it up like this:
There are basically three ways a TDM-type mode can be run - Celebrity Deathmatch (hero assault, 150 reinforcements, no timer), Hunt (50 reinforcements, 5-minute timer), or Uber (Variable reinforcements, no timer). The reason hero assault and hunt are locked in reinforcements- and timer-wise is because they are designed to be adjusted with the sliders in the game shell (they are not as flexible as conquest reinforcements).
Code: Select all
ObjectiveTDM = Objective:New
{
-- external values
pointsPerKillATT = 1,
pointsPerKillDEF = 1,
isCelebrityDeathmatch = false, -- exactly what it sounds like.
isUberMode = false, -- ditto
uberScoreLimit = 400, -- score limit for, get this, uber mode
}
Code: Select all
TDM = ObjectiveTDM:New{teamATT = 1, teamDEF = 2,
textATT = "game.modes.tdm",
textDEF = "game.modes.tdm2", multiplayerRules = true, isUberMode = true, uberScoreLimit = 300}That would likely just show up as a 600-second timer while the game itself still ran a 5-minute timer.DarthD.U.C.K. wrote:however i have the feeling that this may be too easy.
