View Single Post
Old 08-09-2006, 12:59 PM   #8
AceMastermind
Rookie
 
AceMastermind's Avatar
 
Join Date: Jul 2006
Posts: 60
You have to make your new side first, just follow the "BF2 Jedi Creation" doc, but instead of making a side folder named "jdi", just copy the "rep" folder from your BF2modtools/Assets/sides and paste it into your data_ABC/sides folder.
You must also copy the "common" folder from BF2modtools/Assets/sides and paste it into your data_ABC/sides folder.
Lets say you want to change the weapons on the "rep_inf_ep3_rifleman" but you want the rest of the units remain unchanged.

Go to your data_ABC/common/scripts/ABCc_con.lua

and make the soldiers list look like this for the republic:

ReadDataFile("SIDE\\rep.lvl",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_hover_fightertank",
"rep_hero_anakin",
"rep_hover_barcspeeder")
ReadDataFile("dc:SIDE\\rep.lvl", <========added this line
"rep_inf_ep3_rifleman") <====moved this line below it

Then close and save, you are done with the lua scripts.

The "dc:" tells the game engine to use your "rep_inf_ep3_rifleman" rather than the shipped game "rep_inf_ep3_rifleman".

Now you want to change the weapon.
Go to data_ABC/side/rep/odf folder and find "rep_inf_default_rifleman", then open it and you will see this:


[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


Lets say you want to give this "rep_inf_ep3_rifleman" a EMP launcher and the rifle.

It will look like this:

[GameObjectClass]
ClassParent = "rep_inf_default"


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

WEAPONSECTION = 2
WeaponName = "rep_weap_inf_emp_launcher"
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

Then save(close) and munge your side(select rep in the drop down menu) and "common" the first time, then if you go back into your side(rep) later and make more changes you just need to munge your side in the "Side" drop down menu.

On a another note: if you want unlimited ammo for your weapon, just change the number beside "WeaponAmmo = " to "0",
So it will look like this:

WeaponAmmo = 0

Hope this helps,
Ace
AceMastermind is offline   you may: quote & reply,