Page 1 of 1

Health or Damage

Posted: Sat Jan 11, 2014 4:50 pm
by MidnightSpirit
I noticed in my map for whatever reason the cis_weap_inf_rifle does less damage than the rep_weap_inf_rifle and also that some units have more or less health than others. I was wondering where I go to edit these issues to make a more balanced map?

I'm guessing that it is an ODF but looking through the weapon ODFs I can't seem to find where it dictates how much damage a weapon does.

Re: Health or Damage

Posted: Sat Jan 11, 2014 5:18 pm
by zwyx1234
As far as I know, all weapons use a common ODF to dictate their parameters, such as damage. To find these common ODF's, look in the assets/sides/common/odf. Do not edit those files! Copy the common folder to your side first and make a custom side from there!

Units have most, if not all, their parameters in the default ODF and other unit related ODF's. These can be found in the assets/sides/someside/ folder. The parameter for health is MaxHealth = X where X is an integer, such as 100. I dont remember exactly which ODF has that, but again, its one of the unit ODF's that probably has the word "unit" or "rifleman" or "default" in it.

Happy modding! :)

Re: Health or Damage

Posted: Sun Jan 12, 2014 1:30 pm
by MidnightSpirit
All sides and their units should connect back to com_inf_default as their class parent but I checked the assets common folder and my map's common folder and the file is in neither. Do I just create my own or something?

Re: Health or Damage

Posted: Sun Jan 12, 2014 2:34 pm
by zwyx1234
Are you sure you looked in assets/SIDES/common? They exist there. :wink:

Re: Health or Damage

Posted: Sun Jan 12, 2014 2:57 pm
by MidnightSpirit
There are a ton of common weapons, com_jedo_default, and com_hero_default and I used the search tool for the folder and then the entire computer. com_inf_default is nowhere to be found haha.

Could you post the contents of your com_inf_default and I can just make a file and copy and paste. I think I can just edit the max health for specific units as well so I might just do that.

Re: Health or Damage

Posted: Sun Jan 12, 2014 3:11 pm
by AceMastermind
MidnightSpirit wrote:..com_inf_default is nowhere to be found ...
BF2_ModTools\data_ABC\Common\odfs