Swap Tie Pilot for Ep3 Felucia Trooper?

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
BobaFett581
Recruit Womprat Killer
Posts: 8
Joined: Tue Jan 03, 2017 11:03 am
Projects :: No Mod project currently.
Games I'm Playing :: SWBFII
xbox live or psn: No gamertag set

Swap Tie Pilot for Ep3 Felucia Trooper?

Post by BobaFett581 »

I cant seem to figure out how to load the ep3 felucia trooper instead of the standard tie pilot in my conquest map. Added pilot as a 7th unit but changed all his weapons and now looking to make him look like the felucia trooper that I reskinned.

thanks!
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: Swap Tie Pilot for Ep3 Felucia Trooper?

Post by CT108 »

In the .lua file, add : AddUnitClass(IMP, "imp_inf_pilot",1,4) just before the heroes

In the tie pilot .odf, change the geometry name of the pilot. So if the model is "ep3_felucian", add to the geometry name "ep3_felucian" (and remove "imp_inf_pilot")

And finally, in "imp_inf_default_pilot.odf", change your weapons !
BobaFett581
Recruit Womprat Killer
Posts: 8
Joined: Tue Jan 03, 2017 11:03 am
Projects :: No Mod project currently.
Games I'm Playing :: SWBFII
xbox live or psn: No gamertag set

Re: Swap Tie Pilot for Ep3 Felucia Trooper?

Post by BobaFett581 »

CT108 wrote:In the .lua file, add : AddUnitClass(IMP, "imp_inf_pilot",1,4) just before the heroes

In the tie pilot .odf, change the geometry name of the pilot. So if the model is "ep3_felucian", add to the geometry name "ep3_felucian" (and remove "imp_inf_pilot")

And finally, in "imp_inf_default_pilot.odf", change your weapons !
I tried swapping

[GameObjectClass]
ClassParent = "imp_inf_default_pilot"

[Properties]
GeometryName = "imp_inf_pilot"
GeometryLowRes = "imp_inf_pilot_low1"
FirstPerson = "IMP\imppilot;imp_1st_pilot"

for

[GameObjectClass]
ClassParent = "imp_inf_default_pilot"

[Properties]
GeometryName = "rep_inf_feluciatrooper"
GeometryLowRes = "rep_inf_feluciatrooper_low1"
FirstPerson = "IMP\imppilot;imp_1st_pilot"

and the map crashes on load
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: Swap Tie Pilot for Ep3 Felucia Trooper?

Post by AnthonyBF2 »

Call rep_inf_ep3_sniper_felucia from rep.lvl and then put rep_inf_ep3_sniper_felucia over the pilot slot in the SetupTeams() code section.
BobaFett581
Recruit Womprat Killer
Posts: 8
Joined: Tue Jan 03, 2017 11:03 am
Projects :: No Mod project currently.
Games I'm Playing :: SWBFII
xbox live or psn: No gamertag set

Re: Swap Tie Pilot for Ep3 Felucia Trooper?

Post by BobaFett581 »

AnthonyBF2 wrote:Call rep_inf_ep3_sniper_felucia from rep.lvl and then put rep_inf_ep3_sniper_felucia over the pilot slot in the SetupTeams() code section.
Not sure I follow, I tried that and it did not work :S
SkinnyODST
Lieutenant Colonel
Lieutenant Colonel
Posts: 545
Joined: Mon Jul 04, 2016 10:56 pm
Location: My other account
Contact:

Re: Swap Tie Pilot for Ep3 Felucia Trooper?

Post by SkinnyODST »

The ep3 Felucia trooper`s msh files are in your IMP folder right?
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: Swap Tie Pilot for Ep3 Felucia Trooper?

Post by CT108 »

SkinnyODST wrote:The ep3 Felucia trooper`s msh files are in your IMP folder right?
Yes, are you sure that there is a file called "rep_inf_feluciatrooper_low1" in your msh folder ? I did the error before, and if there isn't any file called "rep_inf_feluciatrooper_low1" in your msh folder, the game will crash.
BobaFett581
Recruit Womprat Killer
Posts: 8
Joined: Tue Jan 03, 2017 11:03 am
Projects :: No Mod project currently.
Games I'm Playing :: SWBFII
xbox live or psn: No gamertag set

Re: Swap Tie Pilot for Ep3 Felucia Trooper?

Post by BobaFett581 »

CT108 wrote:
SkinnyODST wrote:The ep3 Felucia trooper`s msh files are in your IMP folder right?
Yes, are you sure that there is a file called "rep_inf_feluciatrooper_low1" in your msh folder ? I did the error before, and if there isn't any file called "rep_inf_feluciatrooper_low1" in your msh folder, the game will crash.

got it! thank you guys :)
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: Swap Tie Pilot for Ep3 Felucia Trooper?

Post by ARCTroopaNate »

Welcome to Gametoast, glad it got solved! If you haven't already I'd suggest looking through the documentation as well as the moddinf forum FAQ, lots of good info there. Also, searching can prove useful, there's a fair chance that someone's had the same question before in the last decade here.
Post Reply