Modding:Company of Heroes/Default Unit Stats

From RelicWiki

Jump to: navigation, search

To view the default unit stats, load up the Mod Studio.

Individual Squad Members

The individual units information determines things such as hitpoints, posture, line of sight, combat values etc. For individual units you need:

attrib\ebps\races\RACENAME

RACENAME is either Axis or Allies.

You'll see a list:

buildings mines soldiers vehicles

All these files define parameters for a single unit within a squad - even if the squad only contains one unit like a Sherman or a Flakpanzer.

Detailed notes on modifying single units:

ability_ext: shows what the unit can do. For example if you go to ability_01 on the Rifleman it shows 'abilities\ally_throw_grenade.lua' showing that the unit can throw grenades.

burn_ext: allows you to set how much damage that unit takes from the flamethrower on the engineers or the Crocodile flamethrower. Vehicles are generally resistant to flamethrowers.

combat_ext: allows you to set what weapon the unit will use under hardpoints. Current limitations of the system are that the number of weapons you can change seems limited. For example if you take the Engineer you cannot add the M1 Garand (weapon does not appear), but you can add in the Thompson SMG.

Overall Squad Values

The Squad information determines things such as veterancy upgrades, formation, initial loadout, etc. This information is in:

attrib\sbps\races\RACENAME

RACENAME is either Axis or Allies.

You'll then see a list:

soldiers vehicles

Pick as neccesary.

Veterancy

The veterancy system for squads is based on experience points gained through kills. As a squad kills more enemies, its experience points climb until it reaches a threshold whereupon it levels up to a new rank. There are only three ranks in Company of heroes: Veteran, Crack and Elite.

Axis veterancy uses an experience point system as well, though the values have been set very high. For example, an Allied Rifleman squad needs only 8 experience to go from recruit to veteran, but an Axis Grenadier squad needs 100. This makes it very unlikely that a squad will live long enough to achieve even the first rank of veterancy. The Kampfkraft Center (ebps\races\axis\buildings\quarter_master.rgd) has upgrades that work by giving out experience points to squads (both present and future), thereby getting around the abnormally high experience point requirements. These are listed under upgrade_ext, within the standard_upgrades table of the quarter_master.rgd. The upgrades themselves are found under the upgrades\axis tree (ie. upgrades\axis\veteran_infantry_1.rgd), and these just give out the necessary experience to level up. If you add any additional Axis squads to the game, and want them to increase in rank when you purchase Kampfkraft bonuses, you will need to add entries to these upgrades in their actions table. Currently there's a limit of 7 actions, so if you need more than 7 infantry/support/vehicle/tank squads, you will need to have the seventh entry call another entity that will have room for the additional actions. For example, there are already six Axis infantry squads, so if you want to add in two more, you will need to make another upgrade for those two new squads (You could call it veteran_infantry_1b) and have action_07 activate this upgrade.

To change what a squad (vehicle or infantry) gets when it achieves a certain level of veterancy, and how much experience it needs to attain that level, you will need to look in attrib\sbps\races\... and select the squad you want to modify. Within the squad, open up its squad_veterancy_ext, and then its veterancy_rank_info. There are three sub-sections for each of the three levels of veterancy. Inside are the values you need to change, though the most important values are explained below:

experience_value - How much total experience is needed to achieve this veterancy level (Axis squads can achieve veterancy through kills, but their experience_value is set so high that it is nearly impossible for a squad to achieve it).

squad_actions - What actions to perform when the squad reaches this level of veterancy, such as increasing its health or giving it an additional weapon.

Personal tools
Google Ad