Load CPs from conquest layer in hero assault mode [Solved]

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
User avatar
martin105038
First Lance Corporal
First Lance Corporal
Posts: 126
Joined: Wed Jul 15, 2009 2:28 pm
Games I'm Playing :: SWBFII
Location: Argentina

Load CPs from conquest layer in hero assault mode [Solved]

Post by martin105038 »

I´m adding Hero Assault mode to a map, and I want to use the same CPs I use in conquest mode, so I load the conquest layer with ReadDataFile("dc:KOR\\KOR.lvl", "KOR_conquest") in my eli lua. It works fine, except that the CPs are capturable. Is there any way of loading in hero assault the same bases from the conquest layer but making them uncapturable?

Thanks
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Loding CPs from conquest layer in hero assault mode

Post by Fiodis »

Yep, put a DeactivateRegion("cp's_capture_region") line in your LUA for each capture region.
I think. Not actually exactly sure if that'll work.
fasty
1st Lieutenant
1st Lieutenant
Posts: 438
Joined: Thu Apr 15, 2010 4:17 am
Projects :: Server modding
Games I'm Playing :: SWBF2
Contact:

Re: Loding CPs from conquest layer in hero assault mode

Post by fasty »

You could just load two different layers and not make a capture region for assault in Zero Editor.
User avatar
martin105038
First Lance Corporal
First Lance Corporal
Posts: 126
Joined: Wed Jul 15, 2009 2:28 pm
Games I'm Playing :: SWBFII
Location: Argentina

Re: Loding CPs from conquest layer in hero assault mode

Post by martin105038 »

Fiodis wrote:Yep, put a DeactivateRegion("cp's_capture_region") line in your LUA for each capture region.
I think. Not actually exactly sure if that'll work.
I tried this, but it didn´t work.
fasty wrote:You could just load two different layers and not make a capture region for assault in Zero Editor.
Yes, you´re right, the problem is that I´m using 8 CPs in conquest and I wanted to use the same 8 CPs in Hero assault.

EDIT:

I fixed it using SetProperty("cp1", "CaptureRegion", ""). Thanks for your help
Post Reply