UllyB Posted August 9, 2020 Posted August 9, 2020 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
Major Bloodnok Posted August 10, 2020 Posted August 10, 2020 (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 August 10, 2020 by Major Bloodnok 2 1
UllyB Posted August 10, 2020 Author Posted August 10, 2020 (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 August 10, 2020 by UllyB
Major Bloodnok Posted August 10, 2020 Posted August 10, 2020 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= 1 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now