Replacing Units and Weapons ?

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
darkthomas

Replacing Units and Weapons ?

Post by darkthomas »

hi all,

got a question. How can i, for example, replace the Clone Commander Unit with a normal Clone Trooper Unit :?:

Also, How can i replace weapons ?

Tnx
User avatar
Jawaraider
Rebel Sergeant
Rebel Sergeant
Posts: 196
Joined: Thu Nov 30, 2006 3:12 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Unknown

Post by Jawaraider »

dont know about the first one, but to replace units weapons you must open for example the rep_inf_default_rifleman odf and change rep_weap_inf_rifle to for example rep_weap_inf_sniper_rifle.
Is this what you meant?
darkthomas

Post by darkthomas »

well i think so,

that for example, a sniper has a sniper rifle + normal rifle instead of sniper rifle + pistol

but i'll try to change the odf, tnx !

edit: It worked!

but look what name my units have now :lol:

Image

how can i change that
Abiter_b

Post by Abiter_b »

use the language tool (in editlocalize.bat)
darkthomas

Post by darkthomas »

alright thank you.

but it tried to replace a Unit (Commander with Trooper) and it doenst work
User avatar
Jawaraider
Rebel Sergeant
Rebel Sergeant
Posts: 196
Joined: Thu Nov 30, 2006 3:12 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Unknown

Post by Jawaraider »

You would have to copy the stuff that defines the model and/or skins
GeometryName etc.
from rep_inf_ep3_rifleman and replace the same stuff from ep2_rifleman, then in the lua write rep_inf_ep2_rifleman instead of the commander.
Im not wery good at describing but I think thats it. If you want them all to be ep3. at least
YankFan1950

Post by YankFan1950 »

ok go to the odf rep_inf_ep3officer and paste this in for it



[GameObjectClass]
ClassParent = "rep_inf_default_officer"


[Properties]
GeometryName = "rep_inf_ep3trooper"
GeometryLowRes = "rep_inf_ep3trooper_low1"
FirstPerson = "REP\reptroop;rep_1st_trooper"
ClothODF = "rep_inf_clonecommander_cape"

instead of what is already there munge and your clone commander should look like the trooper with the name localized
darkthomas

Post by darkthomas »

tnx alot !!
RC-1290

Post by RC-1290 »

btw, this can all be found in the all you nee thread.
The_Emperor
Supreme Galactic Ruler
Posts: 2118
Joined: Sat Dec 10, 2005 6:30 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Waaaaay over there.

Post by The_Emperor »

Whats more, it can also be found in the docs that come with the modtools :D
Post Reply