Page 1 of 1

Weapons Help

Posted: Wed Apr 08, 2009 3:51 am
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

Re: Weapons Help

Posted: Wed Apr 08, 2009 4:44 am
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.

Re: Weapons Help

Posted: Wed Apr 08, 2009 8:13 am
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.

Re: Weapons Help

Posted: Wed Apr 08, 2009 3:34 pm
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.

Re: Weapons Help

Posted: Wed Apr 08, 2009 10:23 pm
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

Re: Weapons Help

Posted: Wed Apr 08, 2009 10:30 pm
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)

Re: Weapons Help

Posted: Thu Apr 09, 2009 3:41 am
by Xterminator
Could I just turn em off i dont want all freezeing n stuff :D

Re: Weapons Help

Posted: Thu Apr 09, 2009 2:31 pm
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