Page 1 of 1

unit weapons

Posted: Wed Jun 13, 2007 8:05 pm
by Exodus
ok i got my mod tools working, what do i need to do to change the weapons of certain units. eg change the heavy trooper's pistol into a baster rifle. and where do i put the .odf to get it working?

RE: unit weapons

Posted: Wed Jun 13, 2007 10:43 pm
by Alpha
First Read the docs. And do that over and over. But you can change weapons in the default class ODFs. If you don't know what that means, you really need the read the docs. ;)

RE: unit weapons

Posted: Wed Jun 13, 2007 11:04 pm
by Guest
Exodus

copy as minimum 3 folders from assets/data/sides - Common folder, rep folder and cis folder. Copy to data_MOD/sides.

Open rep folder. Weapons you can change in default-odf files: rep_inf_default_engineer (field engineer), rep_inf_default_jettrooper (jettrooper), rep_inf_default_marine (space marines), rep_inf_default_officer (galactic marine), rep_inf_default_pilot (space), rep_inf_default_rifleman (clonetrooper), rep_inf_default_rocketeer (heavy clone) and rep_inf_default_sniper (sharpshooter).

Open rep_inf_default_rifleman.odf file:
[GameObjectClass]
ClassParent = "rep_inf_default"


[Properties]

MaxHealth = 550.0

WEAPONSECTION = 1
WeaponName = "rep_weap_inf_rifle"
WeaponAmmo = 5

WEAPONSECTION = 2
WeaponName = "rep_weap_inf_pistol"
WeaponAmmo = 0

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

VOUnitType = 121
MaxHealth = 550.0 - is health
VOUnitType = 121 - standard clone-voice

WEAPONSECTION = 1
WeaponName = "rep_weap_inf_rifle"
WeaponAmmo = 5
is default main weapon. You can replace this or any other weapon to:

rep_weap_inf_rifle
rep_weap_inf_pistol
rep_weap_inf_commando_pistol
rep_weap_inf_thermaldetonator
rep_weap_inf_rocket_launcher
rep_weap_inf_mine_dispenser
rep_weap_inf_shotgun
rep_weap_inf_fusioncutter
rep_weap_inf_detpack
rep_weap_inf_powerup_dispenser
rep_weap_inf_emp_launcher
rep_weap_inf_chaingun
rep_weap_inf_buff_defense
rep_weap_inf_remotedroid
rep_weap_inf_timebomb
rep_weap_inf_sniper_rifle
rep_weap_inf_autoturret_dispenser

of course, you can adding new weapons or changing old weapons options ;)

Posted: Thu Jun 14, 2007 12:21 am
by Exodus
thnx JK that helped alot but wat is the exact directory that the data_MOD folder goes into in the battlefront folder

Posted: Thu Jun 14, 2007 4:24 am
by The_Emperor
Read the "getting started" guide, it'll explain a thing or two ;)
After that you should read the "costum hero creation" doc or something like that. It might be a lot to read, but it takes less time than not understanding the tools and just trying stuff :P

Posted: Thu Jun 14, 2007 4:49 am
by Exodus
doing that had nothing to do with wat i want to do. i want to change the heavy troopers .odf so he has a baster rifle insted of a baster pistol and i want it to work on ALL maps not creating a new 1

Posted: Thu Jun 14, 2007 5:08 am
by The_Emperor
In that case, make a new map (yes, you need to.) Copy everything from all sides you want to edit, edit them, munge, take the rep.lvl and whatever else you edited from your map folder in the addon map, and replace the games original rep.lvl and stuff with yours. (I'd suggest you back-up the original ones though)

Posted: Thu Jun 14, 2007 8:05 am
by Exodus
thnx 4 all the help guys :D