ODF questions

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
SkinnyODST
Lieutenant Colonel
Lieutenant Colonel
Posts: 545
Joined: Mon Jul 04, 2016 10:56 pm
Location: My other account
Contact:

ODF questions

Post by SkinnyODST »

Just 2 short questions,

1. What is a ClassLabel and what does it do?

2. What is a ClassParent and what does IT do?

I`m altering how weapons fire and am running into some problems. I figured that actually knowing what these 2 things are and do would help.

Thanks.
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: ODF questions

Post by AnthonyBF2 »

ClassLabel is the type of something. This can be a prop (solid object that does nothing) to a ton of other things like destructablebuilding (something that can be destroyed) to hover (a type of vehicle class)

ClassParent is usually for playable entities such as characters or weapons. This means it will get default values from something else rather than using it's own values. In the REP folder, you can look at something like rep_weap_inf_rocket_launcher_ord.odf and see that it's almost empty, and that the class parent leads to com_weap_inf_rocket_launcher_ord.odf in the common side odf section, which will have a lot of data to run how rockets work. Most weapon odf files lead to a class parent, that's why most weapons in the game perform the same. When a direct item like rep_weap_inf_rifle.odf has it's own values, it will not look for values from the common class parent. The primary blaster for each main side uses it's own shot delay values, you can see them in each weapon odf file instead of using the common one.

Another good example are the heroes. You can see that all three of the shooter heroes on the rebels side (Han, Leia, Chewie) lead to com_hero_default which gives those heroes most of their base values. All jedi class heroes lead to com_jedi_default which is why most heroes have the same energy, jumps, speeds, etc. If you wanted each character to perform differently, you'd pick which values you want to change and put them on the direct character/weapon odf.
SkinnyODST
Lieutenant Colonel
Lieutenant Colonel
Posts: 545
Joined: Mon Jul 04, 2016 10:56 pm
Location: My other account
Contact:

Re: ODF questions

Post by SkinnyODST »

Amazing description! Thanks mate ;)
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: ODF questions

Post by Anakin »

Do you know program languages?? ClassLable is the type, and classParent is what you inherit.
Post Reply