Giving units weapons from other 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
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Giving units weapons from other units

Post by Silas »

can anyone explain to me, or give me a tutorial on how to give units weapons from other units instead of having for example on the jet trooper, a emp luancher, commando pistol, and grenades. and i want to change the weapons from commando pistol to the dc-15. like i said above, can anyone explain how to do this?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Giving units weapons from other units

Post by Maveritchell »

Just read through the stock .odfs. All you're doing is switching around whatever .odfs the unit calls for in its weaponsections.
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Giving units weapons from other units

Post by Silas »

im kinda embarased... :oops: what or were i want to know what to do....that doesnt really explain


EDIT: imm i gotta go, people post what u have to say ill be here to examine in an hour or two from now
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Giving units weapons from other units

Post by Maveritchell »

Go to the assets folder. Look through the .odfs for the units in the stock sides. They've got lines that say "weaponsection=." You'll notice they refer to weapon .odfs. All you do is change one weapon .odf to another that you want. More detail on creating new units/changing weapons can be found in the Jedi Creation doc and in this post:
http://www.gametoast.com/forums/viewtopic.php?t=8600
MandeRek
Sith Master
Sith Master
Posts: 2766
Joined: Tue Oct 02, 2007 10:51 am
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set
Location: Ghosting around GT
Contact:

Re: Giving units weapons from other units

Post by MandeRek »

Open up the soldiers odf... It has a weapons section. Replace one name with another one, which is in that side. Make sure grenades/mines etc go with a WeaponChannel = 1


If you want to add totally new weapons, or weapons from another side, paste them in that side where the soldier is, and also paste the related msh, effects etc.


Edit: Oops I'm sorry Mav' was first
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Giving units weapons from other units

Post by Silas »

well yea thats what i thought too, but when i oppen the soldier odf, the only thing it gives me is this:

Code: Select all

[GameObjectClass]
ClassParent         = "rep_inf_default_jettrooper"


[Properties]
GeometryName        = "rep_inf_ep3jettrooper"
GeometryLowRes      = "rep_inf_ep3jettrooper_low1"
FirstPerson         = "REP\reptroop;rep_1st_trooper"

EDIT: I found out how to do it!!! :music: thx to thunder....u had to go to rep_inf_defualt_jettrooper , not rep_inf_ep3_jettroper
Post Reply