Hunt reinforcements
Posted: Tue Mar 01, 2011 10:20 pm
Hi how would I change the reinforcement count of hunt from "0/50" to "0/300"?
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.
Code: Select all
scorelimit = ScriptCB_GetHuntScoreLimit()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()
Code: Select all
function ObjectiveTDM:GetGameTimeLimit()
return ScriptCB_GetHuntMaxTimeLimit()
endCode: Select all
function ObjectiveTDM:GetGameTimeLimit()
return 600
endI 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
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.