Health or Damage

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
MidnightSpirit
Second Lance Corporal
Second Lance Corporal
Posts: 100
Joined: Mon Aug 15, 2011 1:29 pm
Games I'm Playing :: BF2
xbox live or psn: ApocryphicDeath

Health or Damage

Post 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.
zwyx1234
Lance Corporal
Posts: 92
Joined: Fri Sep 13, 2013 10:20 pm
Projects :: No Mod project currently.
Games I'm Playing :: SWBF2 Insurgency
xbox live or psn: No gamertag set
Location: Alberta, Canada

Re: Health or Damage

Post 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! :)
MidnightSpirit
Second Lance Corporal
Second Lance Corporal
Posts: 100
Joined: Mon Aug 15, 2011 1:29 pm
Games I'm Playing :: BF2
xbox live or psn: ApocryphicDeath

Re: Health or Damage

Post 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?
zwyx1234
Lance Corporal
Posts: 92
Joined: Fri Sep 13, 2013 10:20 pm
Projects :: No Mod project currently.
Games I'm Playing :: SWBF2 Insurgency
xbox live or psn: No gamertag set
Location: Alberta, Canada

Re: Health or Damage

Post by zwyx1234 »

Are you sure you looked in assets/SIDES/common? They exist there. :wink:
MidnightSpirit
Second Lance Corporal
Second Lance Corporal
Posts: 100
Joined: Mon Aug 15, 2011 1:29 pm
Games I'm Playing :: BF2
xbox live or psn: ApocryphicDeath

Re: Health or Damage

Post 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.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Health or Damage

Post by AceMastermind »

MidnightSpirit wrote:..com_inf_default is nowhere to be found ...
BF2_ModTools\data_ABC\Common\odfs
Post Reply