Republic weapons to Imperial units?

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

Republic weapons to Imperial units?

Post by BobaFett581 »

Hey guys, kinda new at this and having some trouble. Im trying to give the Imperial Heavy Trooper the Republic rocket Launder cause I like the look and sound of it better. I tried using this line:

WEAPONSECTION = 2
WeaponName = "rep_weap_inf_rocket_launcher"
WeaponAmmo = 6

in the imp_default_rocketeer odf but the weapon does not appear in game. It just gives me my primary (rifle)

Thanks!
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: Republic weapons to Imperial units?

Post by ARCTroopaNate »

Did you put all the neccesary msh and odf files for the republic rocket launcher in your side folder??
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: Republic weapons to Imperial units?

Post by AnthonyBF2 »

At the top of your script file after ScriptPostLoad() add this line:

SetClassProperty("imp_inf_rocketeer", "WeaponName1", "rep_weap_inf_rocket_launcher")

Then in the ReadDataFile sections make sure to call rep_inf_ep3_rocketeer from rep.lvl so the weapon gets loaded into memory.

Also note that the weapon sound may not exist because not all sounds are programmed to load into the game at once (clone wars sounds in clone wars era and vice versa)
Post Reply