Loading Different Vehicles into Stock Maps

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:

Loading Different Vehicles into Stock Maps

Post by modmaster13 »

Hey everyone, I am currently messing around with custom era's; more specifically a custom GCW on Mygeeto. However I would like to change up the vehicles a bit, like add in some AT-ST's. Is there a way I could do this by coding, instead of loading in a separate world folder that replaces the stock map?
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Loading Different Vehicles into Stock Maps

Post by Anakin »

yes there is. Load the stock mygeeto map. Next add a new layer and call it custom_vehicle. do what ever changes you like.
In your world folder you just need this new layer (except you added new msh that are not already loaded in that map. In your case you will just need the lyr file)
Your req file looks like that:

Code: Select all

ucft
{
	REQN
	{
		"world"
		"custom_vehicle"
	}

}
In the lua find the part where the map is loaded and load your custom map layer behind it.
Here is an example of my hoth lua. I added some custom vehicle spawn points for my RC mod.

Code: Select all

ReadDataFile("HOT\\hot1.lvl", "hoth_conquest")
SetProperty("CP3", "Team", "1")	
SetProperty("CP3", "PerceivedTeam", "1")
SetProperty("CP6", "Team", "1")
SetProperty("CP6", "PerceivedTeam", "1")
ReadDataFile("dc:RCM\\RCM.lvl", "hoth_veh")
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: Loading Different Vehicles into Stock Maps

Post by modmaster13 »

Thank you so much! I got the vehicles in game, but I ran into some more problems: viewtopic.php?f=27&t=32230
Post Reply