unit 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
Exodus

unit weapons

Post 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?
Alpha

RE: unit weapons

Post 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. ;)
Guest

RE: unit weapons

Post 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 ;)
Exodus

Post by Exodus »

thnx JK that helped alot but wat is the exact directory that the data_MOD folder goes into in the battlefront folder
The_Emperor
Supreme Galactic Ruler
Posts: 2118
Joined: Sat Dec 10, 2005 6:30 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Waaaaay over there.

Post 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
Exodus

Post 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
The_Emperor
Supreme Galactic Ruler
Posts: 2118
Joined: Sat Dec 10, 2005 6:30 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Waaaaay over there.

Post 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)
Exodus

Post by Exodus »

thnx 4 all the help guys :D
Post Reply