Team upgrades, how do they work?

Post Reply
Nomada_Firefox
Posts: 1280
Joined: Mon Nov 12, 2001 10:00 am
Location: Spain
Contact:

Team upgrades, how do they work?

Post by Nomada_Firefox »

After all this time, I can not understand how the upgrades.txt works really. I do not understand because I can not make a Panzerschreck upgrade. I find how there is a lot of missing descriptions about how it works.
User avatar
SteveMcClaire
Posts: 4338
Joined: Mon Nov 19, 2007 9:31 pm

RE: Team upgrades, how do they work?

Post by SteveMcClaire »

It is a fairly complex file as different fields may mean different things depending on the type of upgrade or the condition under which it can used / gained.

For an extra panzerschreck, I would start with the bazooka team upgrade and change the name string, nation, icon, and weapon.

Field 1 would be the string ID for the panzerschreck upgrade name you want to display.
Field 2 would be the German nation ID (1 in stock TBF)
Field 3 would be the icon index to display for this upgrade.
Field 10 (Effect Count) would be 1 (this upgrade has 1 effect.)
Field 11 (Effect type) would be 5 (split off a temporary unit.)
Field 12 (Effect sub-type) is the team index in teams.txt of the temporary team you want to create with men from the original unit.
Field 13 (Effect value) should be 1 for effect type 5. The game doesn't currently support creating more than one temporary unit from an upgrade.

If you wanted to do it as an extra weapon that is added to an existing team without breaking off men (as the extra LMG or Panzerfaust upgrades do) you could copy the Panzerfaust upgrade. In this case the upgrade has 2 effects, one to add a weapon and one to add ammo for the weapon. You'd just need to change the effect sub-type for these two effects to add a panzerschreck and its ammo.






Field 13



Post Reply

Return to “Close Combat The Bloody First - Modding”