Weapons Help

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
Xterminator
Private Second Class
Posts: 69
Joined: Thu Feb 19, 2009 5:07 pm

Weapons Help

Post by Xterminator »

Right , After reading sometopics I thought I'd have a go at it.
So i copyed the rep folder from assets/sides to Data_***/sides
Then i edited the units .ODF in the weapons section from

Code: Select all

[GameObjectClass]
ClassParent         = "rep_inf_default"


[Properties]
UnitType            = "Scout"

MaxHealth           = 300.0
MaxSpeed            = 8.0       // base forward speed
MaxStrafeSpeed      = 6.0       // base right/left speed

WEAPONSECTION = 1
WeaponName         = "rep_weap_inf_sniper_rifle"
WeaponAmmo         = 7
to

Code: Select all

[GameObjectClass]
ClassParent         = "rep_inf_default"


[Properties]
UnitType            = "Scout"

MaxHealth           = 300.0
MaxSpeed            = 8.0       // base forward speed
MaxStrafeSpeed      = 6.0       // base right/left speed

WEAPONSECTION = 1
WeaponName         = "rep_weap_inf_shotgun"
WeaponAmmo         = 7

Then i saved and munged with my map in the first dropdown box and rep in the SIDE dropdown box. I also only had common checked in the boxes.

I munge but but then when I go in game , nothing has changed the sniper still has a sniper rifle so whats the problem?

Any help would be awesome.

Thanks
User avatar
sampip
General
General
Posts: 792
Joined: Mon Mar 16, 2009 12:08 pm
Projects :: Something big. And exciting.
Games I'm Playing :: Battlefield 3
xbox live or psn: masowner66
Location: Zebra

Re: Weapons Help

Post by sampip »

In your clone wars (Called ***c_con.lua, and located in data_***\Common\scripts\***) .lua, find this part: (*** being the name of your map)

Code: Select all

    ReadDataFile("dc:SIDE\\rep.lvl",
                             "rep_inf_ep3_rifleman",
                             "rep_inf_ep3_rocketeer",
                             "rep_inf_ep3_engineer",
                             "rep_inf_ep3_sniper",
                             "rep_inf_ep3_officer",
                             "rep_inf_ep3_jettrooper",
                             "rep_inf_field_commander",
                             "rep_hover_fightertank",
                             "rep_inf_gree",
                             "rep_hover_barcspeeder")
These are all my custom units, yours may look slightly different, but notice I put

Code: Select all

dc:
in the part that says

Code: Select all

ReadDataFile("dc:SIDE\\rep.lvl",
. You need to put in the dc: in the exact same place as mine to ensure the game loads the units out of your custom folder, rather than out of the default gamedata. If you have already done this, try doing the manual clean, which Teancum did a tutorial on, and munge it again.
--- Try looking through the BF2 Jedi Creation.doc in the documentation folder. It really helps you to get the hang of editing sides.
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Weapons Help

Post by kinetosimpetus »

if you didn't already, you should change the award sniper rifle to the award shot gun also, otherwise you'll lose the weapon and be left with a pistol when you get the regulator award.
User avatar
Xterminator
Private Second Class
Posts: 69
Joined: Thu Feb 19, 2009 5:07 pm

Re: Weapons Help

Post by Xterminator »

Thankyoouuu soo much :D :D :D

Also I think there should be A weapon FAQ beacuse I can imagine lots of new modders asking this question again.
User avatar
FelixXxX
Private Third Class
Posts: 56
Joined: Mon Mar 02, 2009 11:04 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: Bespin

Re: Weapons Help

Post by FelixXxX »

Actually kinetosimpetus if you did not have the award shotgun in on some computers the game would freeze (notice is said freeze not crash) and stay that way and you will need to manually restart your cpu. on some cpu's
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Weapons Help

Post by kinetosimpetus »

FelixXxX wrote:Actually kinetosimpetus if you did not have the award shotgun in on some computers the game would freeze (notice is said freeze not crash) and stay that way and you will need to manually restart your cpu. on some cpu's
isn't that what i said? :roll:

he changed the sniper, so you would only be stuck with the pistol, it does freeze every time if he also changes the pistol to a rifle without changing its award counterpart (assuming he has legendary in those awards, or earns it then switches)
User avatar
Xterminator
Private Second Class
Posts: 69
Joined: Thu Feb 19, 2009 5:07 pm

Re: Weapons Help

Post by Xterminator »

Could I just turn em off i dont want all freezeing n stuff :D
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Weapons Help

Post by kinetosimpetus »

if the unit has inf and award of the same weap (shotgun) it won't freeze, but if you DO want to remove the ability to earn awards,

Code: Select all

ScoreForMedalsType = "-1"
MedalsTypeToLock = "-1"
place this in the inf weapon odf and remove the award weap from the trooper's default odf
Post Reply