Jump to content
Sign in to follow this  
malibu43

Create new target types?

Recommended Posts

Hey all,

 

I know the target types listed for AirOffensive[001].Primary=, AirOffensive[001].Secondary=, etc... need to correspond to a target type called out in the _types.ini for a terrain, but I was wondering if it's possible to define new target types in the _types.ini or if these are coded into the game somewhere.

 

For example, if I added this to the _types.ini for a terrain:

 

[TargetType100]

Name=VC_Inf

FullName=VC Infantry

TargetType=TARGET_OF_OPPORTUNITY

ActiveYear=0

TargetValue=1

UseGroundObject=TRUE

GroundObjectType=VC_Squad

RepairRate=0.555

StartDetectChance=50

StartIdentifiedChance=10

IncreaseDetectChanceKey=10

MaxVisibleDist=4000.0

DestroyedEffect=VehicleFireEffect

SecondaryChance=0

 

...then added VC_Inf in certain locations in the _targets.ini, and then in a campaign_data.ini added TARGET_OF_OPPORTUNITY to the targets for air offensives, would that work?

 

I know I could just add an existing target type for VC_Inf (WAREHOUSE, for example), but I'd like to try something different here, if possible.

 

Thanks!

Edited by malibu43

Share this post


Link to post
Share on other sites

I always classed the infantry units as "MISC", even though their data ini says "TANK"

 

It "Target_of_Opportunity" listed somewhere in a dll??? If not, it may crash.

 

Wrench

kevin stein

Share this post


Link to post
Share on other sites
I always classed the infantry units as "MISC", even though their data ini says "TANK"

 

It "Target_of_Opportunity" listed somewhere in a dll??? If not, it may crash.

 

Wrench

kevin stein

 

Awesome. Targets_of_opportunity didn't work, but MISC did.

 

Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use, Privacy Policy, and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..