Hunt reinforcements

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
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Hunt reinforcements

Post by modmaster13 »

Hi how would I change the reinforcement count of hunt from "0/50" to "0/300"?
Jdg50
Second Lance Corporal
Second Lance Corporal
Posts: 101
Joined: Sun Nov 07, 2010 11:25 am
Projects :: An Endor map

Re: Hunt reinforcements

Post by Jdg50 »

Either change it from the menu settings or change it in the LUA.
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Re: Hunt reinforcements

Post 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...
Jdg50
Second Lance Corporal
Second Lance Corporal
Posts: 101
Joined: Sun Nov 07, 2010 11:25 am
Projects :: An Endor map

Re: Hunt reinforcements

Post by Jdg50 »

It probably would be in the hunt LUA in the Common/scripts/worldname folder.
Post that LUA.
User avatar
Firefang
Major
Major
Posts: 518
Joined: Mon Nov 15, 2010 8:55 pm
Location: California

Re: Hunt reinforcements

Post by Firefang »

It's not found in that lua. I'm pretty sure it's in the ObjectiveTDM.lua.
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Re: Hunt reinforcements

Post by modmaster13 »

Where is that located? :?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Hunt reinforcements

Post 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
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Re: Hunt reinforcements

Post 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?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Hunt reinforcements

Post 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.
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Re: Hunt reinforcements

Post 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:
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Hunt reinforcements

Post 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.
Post Reply