User Tools

Site Tools


falcon4:file_formats:ct_file

Falcon 4 .CT file

Falcon 4.0 Forum, Falcon 4 Home, Falcon 4 Campaign, Falcon 4 Cockpits, Falcon 4 Database, Falcon 4 File Formats, Falcon 4 SRTM Terrain, Falcon 4 Terrain, Falcon 4 Textures, Falcon 4 Tools

The .CT file contains Falcon's class table. It contains an entry for every entity. An entity includes vehicles, features, weapons, units, objectives and other things (basically, everything that can be transferred in multiplayer).

.CT File Format

FieldData TypeWidth (in bytes)Description
numEntities Signed 16-bit integer2Number of entity records that follow
entities[] Falcon4Entity[numEntities] (81 * numEntities) bytes Array of Falcon4Entity records (containing “numEntities” individual records)

Structures Used

Falcon4Entity structure

FieldData TypeWidth (in bytes)Description
vuClassDataVuEntity60
visType[]array of Signed 16-bit integer * 77 * 2 bytes = 14 bytes
vehicleDataIndexsigned 16-bit integer2
dataTypebyte1
dataPtrunsigned 32-bit integer4 as a pointer, this field is meaningless when restored from disk

VuEntity structure

FieldData TypeWidth (in bytes)Description
id unsigned 16-bit integer2
collisionType unsigned 16-bit integer2
collisionRadius single-precision 32-bit floating point4
classInfo[] byte[8]8
updateRate unsigned 32-bit integer4
updateTolerance unsigned 32-bit integer4
fineUpdateRange single-precision 32-bit floating point4
fineUpdateForceRange single-precision 32-bit floating point4
fineUpdateMultiplier single-precision 32-bit floating point4
damageSeed unsigned 32-bit integer4
hitpoints Signed 32-bit integer4
majorRevisionNumber unsigned 16-bit integer2
minorRevisionNumber unsigned 16-bit integer2
createPriority unsigned 16-bit integer2
managementDomain byte 1
transferable byte 1
private byte 1
tangible byte 1
collidable byte 1
global byte 1
persistent byte 1
padding byte[3] 3Required to align this structure's data on an int32 boundary
falcon4/file_formats/ct_file.txt · Last modified: 2024/07/31 08:51 by snakeman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.