Jump to content

Recommended Posts

Posted

What is the difference between a ship and its static twin on a map/terrain? I noticed the static ones have the same weapons. Thanks

Posted (edited)

Static ships are declared in the types and targets.ini of each Terrain:

[TargetType116]
Name=Freighter
FullName=Freighter
ModelName=Cargo02.lod
TargetType=MISC
ActiveYear=0
TargetValue=300
UseGroundObject=TRUE
GroundObjectType=Freighter
DamagePoint=500.0
ArmorValue=400.0
ArmorType=0
RepairRate=0
StartDetectChance=0
StartIdentifIncreaseDetectChanceKey=0
MaxVisibleDist=10000.0
DamagedModel=
DestroyedEffect=ShipDestroyedEffect
DestroyedModel=CARGOSHIP_DESTROYED.LOD
SecondaryEffect=MediumOilFire
SecondaryChance=100

[TargetArea388]
Name=Hon Nieu Island
Position=498000.00,658000.00
Alignment=ENEMY
Location=3
ActiveYear=0
Radius=10000
Target[001].Type=radio_tower
Target[001].Offset=0.00,0.00
Target[001].Heading=0
Target[002].Type=vBarrack1
Target[002].Offset=40.00,10.00
Target[002].Heading=0
Target[003].Type=vBarrack1
Target[003].Offset=55.00,10.00
Target[003].Heading=0
Target[004].Type=AAA
Target[004].Offset=200.00,0.00
Target[004].Heading=0
Target[005].Type=AAA
Target[005].Offset=0.00,-200.00
Target[005].Heading=90
Target[006].Type=Tugboat
Target[006].Offset=-2121.00,-2390.00
Target[006].Heading=220
Target[007].Type=Freighter
Target[007].Offset=-1820.00,-481.00
Target[007].Heading=200

Wheras ships that move are declared in a mission or campaign:

[GroundMission001]
Name=Surface Action Group
GroundObjectType=Sverdlov
Nation=Soviet
RandomChance=100
ObjectiveID=1
RatingForSuccess=50
Size=2
NavalObject=TRUE
NavalFleet=TRUE
NetworkAirDefense=TRUE
Position=709817.062605,865247.738804,0.000000
Heading=262.000000
Speed=15.442583
StartTime=0.000000
Alignment=ENEMY
PilotTrainingStandard=EXCELLENT
Waypoint[01].Command=WAYPOINT
Waypoint[01].Position=595693.497231,838433.464380,0.000000
Waypoint[01].Size=0.000000
Waypoint[01].Speed=15.442583
Texture=SovietGrey
ShipNumber=0
Ship[01].Name=Grozny
Ship[01].GroundObjectType=Sverdlov
Ship[01].ShipNumber=-1
Ship[01].Position=0.000000,0.000000,0.000000

Ship[01].Name=Grozny
Ship[02].GroundObjectType=Freighter
Ship[02].ShipNumber=-1
Ship[02].Position=-1984.000000,-4039.000000,0.000000

Ship[02].Name=Lzyncya

 

 

Edited by Major Bloodnok
  • Like 2
  • Thanks 1
Posted (edited)

So, is mandatory to declare them in both files, in order to appear as targets ? I know how to put them in Types file but I don't know to put them in targets file, I don't know to write the exact coordinates for them.

One more problem if you please: I downloaded a static aircraft but it has no data.ini file, it has just the ini file, the LOD and  the bitmaps for it. I never saw it in game. Does it need a data.ini file manadatory ?

Edited by UllyB
Posted

Yes, to have them as a terrain target, they must be declared in the Types and Target files.

To add them to a target, use this:

The static aircraft you mentioned:

All files go in the terrain folder, no need for a data.ini, if this is so. The declaration in the Types file will be slightly different, for example:

[TargetType251]
Name=Wessex-Static
FullName=Parked Helicopter
ModelName=Wessex-Static.LOD
TargetType=MISC
ActiveYear=0
TargetValue=20
UseGroundObject=FALSE
DamagePoint=0.1
ArmorValue=0.0
ArmorType=0
RepairRate=10.0
StartDetectChance=100
StartIdentifiedChance=0
IncreaseDetectChanceKey=0
MaxVisibleDist=5000.0
DamagedModel=Wessex-Damaged.LOD
DestroyedEffect=SmallExplosionEffect
DestroyedModel=Wessex-Damaged.LOD
SecondaryChance=100
SecondaryEffect=VehicleFireEffect
CollisionMesh=
ZBufferOffset=
FlatObject=

 

  • Like 1
  • Thanks 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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..