Page 1 of 1

Hunt reinforcements

Posted: Tue Mar 01, 2011 10:20 pm
by modmaster13
Hi how would I change the reinforcement count of hunt from "0/50" to "0/300"?

Re: Hunt reinforcements

Posted: Tue Mar 01, 2011 10:21 pm
by Jdg50
Either change it from the menu settings or change it in the LUA.

Re: Hunt reinforcements

Posted: Tue Mar 01, 2011 10:23 pm
by modmaster13
Jdg50 wrote:Either change it from the menu settings or change it in the LUA.
I would like to change it in the LUA, I just can't figure out where the code is...

Re: Hunt reinforcements

Posted: Tue Mar 01, 2011 10:56 pm
by Jdg50
It probably would be in the hunt LUA in the Common/scripts/worldname folder.
Post that LUA.

Re: Hunt reinforcements

Posted: Tue Mar 01, 2011 10:57 pm
by Firefang
It's not found in that lua. I'm pretty sure it's in the ObjectiveTDM.lua.

Re: Hunt reinforcements

Posted: Wed Mar 02, 2011 5:16 pm
by modmaster13
Where is that located? :?

Re: Hunt reinforcements

Posted: Wed Mar 02, 2011 5:34 pm
by DarthD.U.C.K.
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:

Code: Select all

scorelimit = ScriptCB_GetHuntScoreLimit()
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

Re: Hunt reinforcements

Posted: Wed Mar 02, 2011 5:36 pm
by modmaster13
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:

Code: Select all

scorelimit = ScriptCB_GetHuntScoreLimit()
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
What about the timer?

Re: Hunt reinforcements

Posted: Wed Mar 02, 2011 5:44 pm
by DarthD.U.C.K.
i like the timer, i think its really sympathetic...
it is, and here comes the catch:

Code: Select all

function ObjectiveTDM:GetGameTimeLimit()
		return ScriptCB_GetHuntMaxTimeLimit()
end
so you could theoretically change it that way:

Code: Select all

function ObjectiveTDM:GetGameTimeLimit()
		return 600
end
however i have the feeling that this may be too easy.

Re: Hunt reinforcements

Posted: Wed Mar 02, 2011 6:02 pm
by modmaster13
DarthD.U.C.K. wrote:i like the timer, i think its really sympathetic...
it is, and here comes the catch:

Code: Select all

function ObjectiveTDM:GetGameTimeLimit()
		return ScriptCB_GetHuntMaxTimeLimit()
end
so you could theoretically change it that way:

Code: Select all

function ObjectiveTDM:GetGameTimeLimit()
		return 600
end
however i have the feeling that this may be too easy.
I can't find either one of those codes. :shock:

Re: Hunt reinforcements

Posted: Wed Mar 02, 2011 6:37 pm
by Maveritchell
These are the potential inputs for ObjectiveTDM:

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
}
If you want a hunt mode with no timer and 300 as a locked-in points goal, set it up like this:

Code: Select all

	TDM = ObjectiveTDM:New{teamATT = 1, teamDEF = 2, 
						textATT = "game.modes.tdm",
						textDEF = "game.modes.tdm2", multiplayerRules = true, isUberMode = true, uberScoreLimit = 300}
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).
DarthD.U.C.K. wrote:however i have the feeling that this may be too easy.
That would likely just show up as a 600-second timer while the game itself still ran a 5-minute timer.