New 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
User avatar
JawaTrooper
Private First Class
Posts: 79
Joined: Mon Jan 26, 2009 8:35 pm

New Weapons?

Post by JawaTrooper »

I've already got my new weapon file, just how do i add it into the game? I have no idea were to put it
User avatar
Blade
Captain
Captain
Posts: 496
Joined: Fri Apr 04, 2008 11:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: New Weapons?

Post by Blade »

You mean you have the .odf for your weapon, correct?

If so, you just replace one of your map's units' weapons with it.

Aka if you wanted to replace the Republic Soldier's Primary Weapon with your weapon you'd open up the Republic Soldier .odf, and replace
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "rep_inf_default"


[Properties]
WEAPONSECTION = 1
WeaponName = "rep_weap_inf_rifle"
WeaponAmmo = 4

WEAPONSECTION = 2
WeaponName = "rep_weap_inf_pistol"
WeaponAmmo = 0

WEAPONSECTION = 3
WeaponName = "rep_weap_inf_thermaldetonator"
WeaponAmmo = 4
WeaponChannel = 1

WEAPONSECTION = 4
WeaponName = "rep_weap_award_rifle"
WeaponAmmo = 4

WEAPONSECTION = 5
WeaponName = "rep_weap_award_pistol"
WeaponAmmo = 6

VOUnitType = 121
with
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "rep_inf_default"


[Properties]
WEAPONSECTION = 1
WeaponName = "whatever_your_weapon's_odf_name_is'"
WeaponAmmo = 4

WEAPONSECTION = 2
WeaponName = "rep_weap_inf_pistol"
WeaponAmmo = 0

WEAPONSECTION = 3
WeaponName = "rep_weap_inf_thermaldetonator"
WeaponAmmo = 4
WeaponChannel = 1

WEAPONSECTION = 4
WeaponName = "rep_weap_award_rifle"
WeaponAmmo = 4

WEAPONSECTION = 5
WeaponName = "rep_weap_award_pistol"
WeaponAmmo = 6

VOUnitType = 121
Also, this is rather crucial as well (:P), to put your .odf and any related files (the .msh, .ord files, etc.) in that side's folder.

Oh, and also then munge with the Side selected for your munge.
User avatar
JawaTrooper
Private First Class
Posts: 79
Joined: Mon Jan 26, 2009 8:35 pm

Re: New Weapons?

Post by JawaTrooper »

sorry, were is that script file?
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: New Weapons?

Post by MileHighGuy »

your units odf file example: rep_inf_default_rifleman (unit's weapons) rep_inf_ep3_rifleman would be for how it looks
if you dont know what im talking about look in the everything you need to know thread under custom side: how to
Post Reply