Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <TypesDef.bt>
- #include <PackFile.bt>
- // parm
- typedef struct
- {
- float4 rect;
- dword flags;
- byte16 guid;
- } MapParam<optimize=false>;
- // parm
- // trn\0
- typedef struct
- {
- dword chunkFlags;
- TSTRUCT_ARRAY_PTR_START word surfaceIndexArray TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START qword surfaceTokenArray TSTRUCT_ARRAY_PTR_END;
- } PackMapTerrainChunkV14<optimize=false>;
- typedef struct
- {
- dword tokenName;
- float4 value;
- } PackMapTerrainConstV14<optimize=false>;
- typedef struct
- {
- dword tokenName;
- dword flags;
- filename filename_;
- dword2 flags;
- dword layer;
- } PackMapTerrainTexV14<optimize=false>;
- typedef struct
- {
- filename materialFile;
- dword fvf;
- TSTRUCT_ARRAY_PTR_START dword constIndexArray TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START dword texIndexArray TSTRUCT_ARRAY_PTR_END;
- } PackMapTerrainMaterialV14<optimize=false>;
- typedef struct
- {
- float2 translation;
- float2 xScaleRange;
- float2 yScaleRange;
- float2 scaleSpeed;
- float rotation;
- } PackMapTerrainChunkUVDataV14<optimize=false>;
- typedef struct
- {
- byte tiling[3];
- PackMapTerrainMaterialV14 hiResMaterial;
- PackMapTerrainMaterialV14 loResMaterial;
- PackMapTerrainMaterialV14 faderMaterial;
- TPTR_START PackMapTerrainChunkUVDataV14 uvData TPTR_END;
- } PackMapTerrrainChunkMaterialV14<optimize=false>;
- typedef struct
- {
- filename pagedImage;
- TSTRUCT_ARRAY_PTR_START PackMapTerrainConstV14 constArray TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapTerrainTexV14 texFileArray TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapTerrrainChunkMaterialV14 materials TSTRUCT_ARRAY_PTR_END;
- float2 midFade;
- float2 farFade;
- } PackMapTerrainMaterialsV14<optimize=false>;
- typedef struct
- {
- dword2 dims;
- float swapDistance;
- TSTRUCT_ARRAY_PTR_START float heightMapArray TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START dword tileFlagArray TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapTerrainChunkV14 chunkArray TSTRUCT_ARRAY_PTR_END;
- TPTR_START PackMapTerrainMaterialsV14 materials TPTR_END;
- } PackMapTerrainV14<optimize=false>;
- // trn\0
- // trni
- typedef struct
- {
- dword2 rawDims;
- dword2 strippedDims;
- dword rawFormat;
- dword strippedFormat;
- dword diskFormat;
- } PagedImageLayerDataV3<optimize=false>;
- typedef struct
- {
- dword layer;
- dword2 coord;
- filename filename_;
- dword flags;
- byte4 solidColor;
- } PagedImagePageDataV3<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START PagedImageLayerDataV3 layers TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PagedImagePageDataV3 rawPages TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PagedImagePageDataV3 strippedPages TSTRUCT_ARRAY_PTR_END;
- dword flags;
- } PagedImageTableDataV3<optimize=false>;
- typedef struct
- {
- dword layer;
- dword2 coord;
- TSTRUCT_ARRAY_PTR_START byte data TSTRUCT_ARRAY_PTR_END;
- } PagedImageEmbeddedPageDataV3<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START PagedImageEmbeddedPageDataV3 rawPages TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PagedImageEmbeddedPageDataV3 strippedPages TSTRUCT_ARRAY_PTR_END;
- } PagedImageEmbeddedPagesDataV3<optimize=false>;
- typedef struct
- {
- TPTR_START PagedImageTableDataV3 tableData TPTR_END;
- TPTR_START PagedImageEmbeddedPagesDataV3 pageData TPTR_END;
- } MapTerrainImg<optimize=false>;
- // trni
- // surf
- typedef struct
- {
- qword Id;
- qword Sound;
- dword flags;
- } MapSurfaceAttribute<optimize=false>;
- typedef struct
- {
- wchar_ptr name;
- wchar_ptr category;
- byte4 color;
- } MapSurfaceAttributeTool<optimize=false>;
- typedef struct
- {
- qword surfaceId;
- TSTRUCT_ARRAY_PTR_START dword bitArray TSTRUCT_ARRAY_PTR_END;
- } MapSurfaceOverride<optimize=false>;
- typedef struct
- {
- dword2 chunkCoord;
- TSTRUCT_ARRAY_PTR_START MapSurfaceOverride overrideArray TSTRUCT_ARRAY_PTR_END;
- } MapSurfaceTerrainOverride<optimize=false>;
- typedef struct
- {
- qword propId;
- TSTRUCT_ARRAY_PTR_START MapSurfaceOverride overrideArray TSTRUCT_ARRAY_PTR_END;
- } MapSurfacePropOverride<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START MapSurfaceAttribute attributeData TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START MapSurfaceAttributeTool toolData TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START MapSurfaceTerrainOverride terrainArray TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START MapSurfacePropOverride propArray TSTRUCT_ARRAY_PTR_END;
- } MapSurfaces<optimize=false>;
- // surf
- // area
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START float3 points TSTRUCT_ARRAY_PTR_END;
- float height;
- } PackMapAreaPolygonV4<optimize=false>;
- typedef struct
- {
- float3 position;
- float3 extents;
- float3 rotation;
- } PackMapAreaPortalV4<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START PackMapAreaPortalV4 portals TSTRUCT_ARRAY_PTR_END;
- float3 position;
- float3 extents;
- float3 pointInterior;
- float3 pointExterior;
- } PackMapAreaVolumeV4<optimize=false>;
- typedef struct
- {
- qword token;
- byte type;
- byte floor;
- dword flags;
- PackMapAreaPolygonV4 polygon;
- PackMapAreaVolumeV4 volume;
- } PackMapAreaV4<optimize=false>;
- typedef struct
- {
- wchar_ptr annotation;
- float renderOffset;
- } PackMapAreaToolV4<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START PackMapAreaV4 areas TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapAreaToolV4 areaTools TSTRUCT_ARRAY_PTR_END;
- } PackMapAreasV4<optimize=false>;
- // area
- // msn\0
- typedef struct
- {
- float3 position;
- float3 forward;
- wchar_ptr description;
- } PackMapInterestPoint<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START PackMapInterestPoint interestPoint TSTRUCT_ARRAY_PTR_END;
- } MapMission<optimize=false>;
- // msn\0
- // havk
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START byte moppData TSTRUCT_ARRAY_PTR_END;
- } PackMoppType<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START word indices TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START float3 vertices TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START word surfaces TSTRUCT_ARRAY_PTR_END;
- PackMoppType moppCodeData;
- } PackMapCollideCollisionV14<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START float3 vertices TSTRUCT_ARRAY_PTR_END;
- } PackMapCollideBlockerV14<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START byte navMesh TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START byte graph TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START byte mediator TSTRUCT_ARRAY_PTR_END;
- } PackMapCollideNavMeshV14<optimize=false>;
- typedef struct
- {
- qword sequence;
- TSTRUCT_ARRAY_PTR_START dword collisionIndices TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START dword blockerIndices TSTRUCT_ARRAY_PTR_END;
- } PackMapCollideAnimationV14<optimize=false>;
- typedef struct
- {
- byte quantizedExtents;
- TSTRUCT_ARRAY_PTR_START dword animations TSTRUCT_ARRAY_PTR_END;
- word navMeshIndex;
- } PackMapCollideGeometryV14<optimize=false>;
- typedef struct
- {
- float3 translate;
- dword geometryIndex;
- } PackMapCollideModelObsV14<optimize=false>;
- typedef struct
- {
- qword token;
- qword sequence;
- float scale;
- float3 translate;
- float3 rotate;
- dword geometryIndex;
- } PackMapCollideModelPropV14<optimize=false>;
- typedef struct
- {
- float scale;
- float3 translate;
- float3 rotate;
- dword geometryIndex;
- } PackMapCollideModelZoneV14<optimize=false>;
- typedef struct
- {
- float3 boundsMin;
- float3 boundsMax;
- TSTRUCT_ARRAY_PTR_START PackMapCollideCollisionV14 collisions TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapCollideBlockerV14 blockers TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapCollideNavMeshV14 navMeshes TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapCollideAnimationV14 animations TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapCollideGeometryV14 geometries TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapCollideModelObsV14 obsModels TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapCollideModelPropV14 propModels TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapCollideModelZoneV14 zoneModels TSTRUCT_ARRAY_PTR_END;
- } PackMapCollideV14<optimize=false>;
- // havk
- // zon2
- typedef struct
- {
- filename filename_;
- float probability;
- dword flags;
- float3 hslOffset;
- byte zOffsets[2];
- } PackMapZoneModelV22<optimize=false>;
- typedef struct
- {
- byte type;
- byte height;
- byte width;
- byte radiusGround;
- byte sortGroup;
- byte tiling;
- float2 scaleRange;
- float probability;
- float2 fadeRange;
- float2 rotRange[3];
- float2 hslRanges[4];
- float instanceScaleJitter;
- byte noise;
- dword layerFlags;
- filename materialname;
- TSTRUCT_ARRAY_PTR_START PackMapZoneModelV22 modelArray TSTRUCT_ARRAY_PTR_END;
- TPTR_START PackMapZoneModelV22 subModel TPTR_END;
- wchar_ptr reserved;
- } PackMapZoneLayerDefV22<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START byte flags TSTRUCT_ARRAY_PTR_END;
- dword2 chunkCoord;
- byte seed;
- TSTRUCT_ARRAY_PTR_START dword paintFlags TSTRUCT_ARRAY_PTR_END;
- wchar_ptr string_;
- } PackMapZonePageV10<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START PackMapZonePageV10 pageArray TSTRUCT_ARRAY_PTR_END;
- dword flags;
- } PackMapZonePageTableV10<optimize=false>;
- typedef struct
- {
- filename defFilename;
- dword token;
- TSTRUCT_ARRAY_PTR_START PackMapZoneLayerDefV22 layerDefArray TSTRUCT_ARRAY_PTR_END;
- qword timeStamp;
- TPTR_START PackMapZonePageTableV10 pageTable TPTR_END;
- wchar_ptr reserved;
- } PackMapZoneDefV22<optimize=false>;
- typedef struct
- {
- word index;
- byte offset;
- } PackMapZoneEncodingDataV22<optimize=false>;
- typedef struct
- {
- float normalX;
- float normalY;
- float zPos;
- } PackMapZoneCollideDataV22<optimize=false>;
- typedef struct
- {
- dword zoneFlags;
- dword4 vertRect;
- float waterHeight;
- byte seed;
- dword defToken;
- float2 range;
- float zPos;
- TSTRUCT_ARRAY_PTR_START byte flags TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapZoneEncodingDataV22 encodeData TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapZoneCollideDataV22 collideData TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START word offsetData TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START float2 vertices TSTRUCT_ARRAY_PTR_END;
- word broadId;
- wchar_ptr reserved;
- } PackMapZoneV22<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START byte broadphaseData TSTRUCT_ARRAY_PTR_END;
- } PackBroadphaseType<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START PackMapZoneDefV22 zoneDefArray TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapZoneV22 zoneArray TSTRUCT_ARRAY_PTR_END;
- PackBroadphaseType broadPhase;
- word maxBroadId;
- wchar_ptr string_;
- } PackMapZonesV22<optimize=false>;
- // zon2
- // prp2
- typedef struct
- {
- dword token;
- float4 constant;
- dword submodel;
- } PackMapPropConstantV18<optimize=false>;
- typedef struct
- {
- filename filename_;
- TSTRUCT_ARRAY_PTR_START filename blitTextures TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapPropConstantV18 constants TSTRUCT_ARRAY_PTR_END;
- qword guid;
- qword permutation;
- float4 bounds;
- float3 position;
- float3 rotation;
- byte4 color;
- float scale;
- float lod1;
- float lod2;
- dword flags;
- dword reserved;
- word broadId;
- word bucketId;
- byte byte_;
- byte sortLayer;
- } PackMapPropObjV21<optimize=false>;
- typedef struct
- {
- filename filename_;
- TSTRUCT_ARRAY_PTR_START filename blitTextures TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapPropConstantV18 constants TSTRUCT_ARRAY_PTR_END;
- qword guid;
- qword permutation;
- float4 bounds;
- float3 position;
- float3 rotation;
- byte4 color;
- float scale;
- float lod1;
- float lod2;
- dword flags;
- dword reserved;
- word broadId;
- word bucketId;
- byte byte_;
- byte sortLayer;
- qword animSequence;
- } PackMapPropObjAnimSeqV21<optimize=false>;
- typedef struct
- {
- float3 position;
- float3 rotation;
- float scale;
- } PackMapPropTransformV21<optimize=false>;
- typedef struct
- {
- filename filename_;
- TSTRUCT_ARRAY_PTR_START filename blitTextures TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapPropConstantV18 constants TSTRUCT_ARRAY_PTR_END;
- qword guid;
- qword permutation;
- float4 bounds;
- float3 position;
- float3 rotation;
- byte4 color;
- float scale;
- float lod1;
- float lod2;
- dword flags;
- dword reserved;
- word broadId;
- word bucketId;
- byte byte_;
- byte sortLayer;
- TSTRUCT_ARRAY_PTR_START PackMapPropTransformV21 transforms TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START qword origGuidArray TSTRUCT_ARRAY_PTR_END;
- } PackMapPropObjInstanceV21<optimize=false>;
- typedef struct
- {
- qword guid;
- dword layerMask;
- byte glomType;
- TSTRUCT_ARRAY_PTR_START qword children TSTRUCT_ARRAY_PTR_END;
- } PackMapPropObjToolV21<optimize=false>;
- typedef struct
- {
- filename filename_;
- TSTRUCT_ARRAY_PTR_START filename blitTextures TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapPropConstantV18 constants TSTRUCT_ARRAY_PTR_END;
- qword guid;
- qword permutation;
- float4 bounds;
- float3 position;
- float3 rotation;
- byte4 color;
- float scale;
- float lod1;
- float lod2;
- dword flags;
- dword reserved;
- word broadId;
- word bucketId;
- byte byte_;
- byte sortLayer;
- dword layerMask;
- byte glomType;
- qword parent;
- float3 glomOrigin;
- } PackMapPropObjMetaV21<optimize=false>;
- typedef struct
- {
- qword guid;
- dword layerMask;
- byte glomType;
- TSTRUCT_ARRAY_PTR_START qword children TSTRUCT_ARRAY_PTR_END;
- float3 glomClipScale;
- float3 position;
- float3 rotation;
- float scale;
- } PackMapPropObjVolumeV21<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START PackMapPropObjV21 propArray TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapPropObjAnimSeqV21 propAnimArray TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapPropObjInstanceV21 propInstanceArray TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapPropObjToolV21 propToolArray TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapPropObjMetaV21 propMetaArray TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapPropObjVolumeV21 propVolumeArray TSTRUCT_ARRAY_PTR_END;
- wchar_ptr reserved;
- PackBroadphaseType broadPhase;
- dword nextBroadId;
- } PackMapPropV21<optimize=false>;
- // prp2
- // rive
- typedef struct
- {
- float scale;
- float speedX;
- float speedY;
- float tiling;
- dword flags;
- byte uvIndex;
- } MapRiverTextureMap<optimize=false>;
- typedef struct
- {
- filename materialFile;
- TSTRUCT_ARRAY_PTR_START filename textureFiles TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START dword constantTokens TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START float4 constantValues TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START MapRiverTextureMap textureMaps TSTRUCT_ARRAY_PTR_END;
- dword flags;
- } MapRiverMaterial<optimize=false>;
- typedef struct
- {
- float width;
- float curveLength;
- float curvePercent;
- dword xTessellation;
- dword2 yTessellation;
- dword broadId;
- dword fvf;
- dword flags;
- TSTRUCT_ARRAY_PTR_START MapRiverMaterial materials TSTRUCT_ARRAY_PTR_END;
- wchar_ptr reserved;
- } MapRiverReach<optimize=false>;
- typedef struct
- {
- qword guid;
- wchar_ptr name;
- float xTiling;
- TSTRUCT_ARRAY_PTR_START float3 points TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START MapRiverReach reaches TSTRUCT_ARRAY_PTR_END;
- dword flags;
- } MapRiver<optimize=false>;
- typedef struct
- {
- dword flags;
- dword nextBroadId;
- TSTRUCT_ARRAY_PTR_START MapRiver rivers TSTRUCT_ARRAY_PTR_END;
- PackBroadphaseType broadPhase;
- } PackMapRivers<optimize=false>;
- // rive
- // shex
- typedef struct
- {
- filename filename_;
- dword2 shadowDims;
- } PackMapShadowExtV1<optimize=false>;
- // shex
- // cube
- typedef struct
- {
- float3 position;
- filename filenameDayDefault;
- filename filenameNightDefault;
- filename filenameDayScript;
- filename filenameNightScript;
- qword envID;
- } PackMapCubeMapSampleV3<optimize=false>;
- typedef struct
- {
- dword modulateColor;
- float brightness;
- float contrast;
- dword blurPasses;
- wchar_ptr envVolume;
- } PackMapCubeMapParamsV3<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START PackMapCubeMapSampleV3 sampleArray TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapCubeMapParamsV3 paramsArray TSTRUCT_ARRAY_PTR_END;
- } PackMapCubeMapV3<optimize=false>;
- // cube
- // env\0
- typedef struct
- {
- byte3 color;
- float intensity;
- float3 direction;
- } PackMapEnvDataLightV74<optimize=false>;
- typedef struct
- {
- TSTRUCT_PTR_ARRAY_PTR_START PackMapEnvDataLightV74 lights TSTRUCT_PTR_ARRAY_PTR_END;
- float shadowInfluence;
- byte3 backlightColor;
- float backlightIntensity;
- } PackMapEnvDataLightingV74<optimize=false>;
- typedef struct
- {
- float sunScale;
- float saturation;
- float sunFill;
- float ambScale;
- float ambFill;
- byte flags;
- } PackMapEnvDataLightingCharV45<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START PackMapEnvDataLightingCharV45 lightingChar TSTRUCT_ARRAY_PTR_END;
- } PackMapEnvDataLightingCharGroupV45<optimize=false>;
- typedef struct
- {
- float brightness;
- float density;
- float haze;
- float lightIntensity;
- float2 velocity;
- float fadeWidth;
- float fadeEnd;
- dword reserved;
- } PackMapEnvDataLayerAttributesV74<optimize=false>;
- typedef struct
- {
- float altitude;
- float cutOut;
- float depth;
- float extent;
- float scale;
- filename texture;
- TSTRUCT_ARRAY_PTR_START PackMapEnvDataLayerAttributesV74 attributes TSTRUCT_ARRAY_PTR_END;
- wchar_ptr name;
- dword reserved;
- } PackMapEnvDataLayerV74<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START PackMapEnvDataLayerV74 layers TSTRUCT_ARRAY_PTR_END;
- } PackMapEnvDataCloudsV74<optimize=false>;
- typedef struct
- {
- float2 range;
- float distances[6];
- byte4 lightColors[6];
- byte4 shadowColors[6];
- } PackMapEnvDataColoredLightRingsV45<optimize=false>;
- typedef struct
- {
- byte4 glow;
- byte4 tintColor;
- byte4 tintTargetColor;
- float saturation;
- float tintAmount;
- float tintFocus;
- byte4 glowLevel;
- float glowAmplify;
- float focalDepth;
- float focalRange;
- float2 flatteningRange;
- float2 flatteningCharacterRange;
- } PackMapEnvDataEffectV74<optimize=false>;
- typedef struct
- {
- byte4 nearColor;
- byte4 farColor;
- float2 distRange;
- byte4 heightColor;
- float2 heightRange;
- float depthCue;
- float2 sunDirRange;
- } PackMapEnvDataHazeV74<optimize=false>;
- typedef struct
- {
- float altitude;
- float2 angle;
- word clusterCount;
- float2 clustering;
- float depth;
- float deviation;
- float2 deviationSpeed;
- word extent;
- float fade;
- float3 fieldDirection;
- word flags;
- float2 lifetime;
- float2 opacity;
- word particleCount;
- float2 period;
- float2 rotation;
- float2 scaleX;
- float2 scaleY;
- dword seed;
- float2 speed;
- dword2 texColRow;
- float texFPS;
- filename texPath;
- byte type;
- wchar_ptr name;
- dword reserved;
- } PackMapEnvDataPFieldV74<optimize=false>;
- typedef struct
- {
- wchar_ptr name;
- float4 x;
- float4 y;
- float4 z;
- } PackMapEnvDataPFieldCutoutV45<optimize=false>;
- typedef struct
- {
- byte flags;
- float dayBrightness;
- float dayHazeBottom;
- float dayHazeDensity;
- float dayHazeFalloff;
- float dayLightIntensity;
- float dayStarDensity;
- float nightBrightness;
- float nightHazeBottom;
- float nightHazeDensity;
- float nightHazeFalloff;
- float nightLightIntensity;
- float nightStarDensity;
- float verticalOffset;
- } PackMapEnvDataSkyV74<optimize=false>;
- typedef struct
- {
- float azimuth;
- float density;
- float hazeDensity;
- float latitude;
- float lightIntensity;
- float minHaze;
- float2 scale;
- float speed;
- filename texture;
- float4 textureUV;
- float brightness;
- } PackMapEnvDataSkyCardAttributesV74<optimize=false>;
- typedef struct
- {
- PackMapEnvDataSkyCardAttributesV74 day;
- PackMapEnvDataSkyCardAttributesV74 night;
- dword flags;
- wchar_ptr name;
- } PackMapEnvDataSkyCardV74<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START PackMapEnvDataSkyCardV74 cards TSTRUCT_ARRAY_PTR_END;
- } PackMapEnvDataSkyCardsV74<optimize=false>;
- typedef struct
- {
- dword2 spawnRange;
- dword2 lifeSpan;
- float2 scaleRange;
- float2 heightRange;
- float2 rotXRange;
- float2 rotYRange;
- float2 rotZRange;
- float probability;
- float delay;
- dword flags;
- qword animSequence;
- filename modelFile;
- word maxConcurrent;
- } PackMapEnvDataSpawnModelDataV45<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START PackMapEnvDataSpawnModelDataV45 spawns TSTRUCT_ARRAY_PTR_END;
- } PackMapEnvDataSpawnListV45<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START PackMapEnvDataSpawnListV45 spawnGroups TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START qword targets TSTRUCT_ARRAY_PTR_END;
- } PackMapEnvDataSpawnGroupsV45<optimize=false>;
- typedef struct
- {
- dword waterFlags;
- float animAmplitude;
- float animChoppiness;
- float2 animWind;
- float bumpAmount;
- float bumpAngle0;
- float bumpAngle1;
- float bumpScale0;
- float bumpScale1;
- float bumpSpeed0;
- float bumpSpeed1;
- float bumpTile0;
- float bumpTile1;
- float patternAngle;
- float patternTile;
- float patternSpeed;
- float patternEdge;
- byte4 surfaceShallowColor;
- byte4 surfaceDeepColor;
- byte4 patternColor;
- float surfaceFresnel;
- float distortAmount;
- float depthAttenuation;
- filename materialFilename;
- TSTRUCT_ARRAY_PTR_START filename textureFilenames TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START dword constantTokens TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START float4 constantValues TSTRUCT_ARRAY_PTR_END;
- float foamSpawn;
- float foamDissolve;
- float foamDepthAttenuation;
- byte4 foamColor0;
- byte4 foamColor1;
- } PackMapEnvDataWaterV74<optimize=false>;
- typedef struct
- {
- byte azimuth;
- byte elevation;
- byte noise;
- byte speed;
- byte gust;
- byte gustFreq;
- byte gustSpeed;
- } PackMapEnvDataWindV74<optimize=false>;
- typedef struct
- {
- qword token;
- } PackMapEnvDataAudioV45<optimize=false>;
- typedef struct
- {
- float3 center;
- float height;
- float fadeHorizInner;
- float fadeHorizOuter;
- float fadeVertical;
- TSTRUCT_ARRAY_PTR_START float2 vertexArray TSTRUCT_ARRAY_PTR_END;
- byte shapeType;
- } PackMapEnvDataShapeV45<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START PackMapEnvDataLightingV74 lighting TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapEnvDataLightingCharGroupV45 lightingCharGroups TSTRUCT_ARRAY_PTR_END;
- TPTR_START PackMapEnvDataCloudsV74 clouds TPTR_END;
- TSTRUCT_PTR_ARRAY_PTR_START PackMapEnvDataColoredLightRingsV45 coloredLightRings TSTRUCT_PTR_ARRAY_PTR_END;
- TSTRUCT_PTR_ARRAY_PTR_START PackMapEnvDataEffectV74 effect TSTRUCT_PTR_ARRAY_PTR_END;
- TSTRUCT_PTR_ARRAY_PTR_START PackMapEnvDataHazeV74 haze TSTRUCT_PTR_ARRAY_PTR_END;
- TSTRUCT_PTR_ARRAY_PTR_START PackMapEnvDataPFieldV74 particleFields TSTRUCT_PTR_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapEnvDataPFieldCutoutV45 particleFieldCutouts TSTRUCT_ARRAY_PTR_END;
- TPTR_START PackMapEnvDataSkyV74 sky TPTR_END;
- TPTR_START PackMapEnvDataSkyCardsV74 skyCards TPTR_END;
- TPTR_START PackMapEnvDataSpawnGroupsV45 spawns TPTR_END;
- TSTRUCT_PTR_ARRAY_PTR_START PackMapEnvDataWaterV74 water TSTRUCT_PTR_ARRAY_PTR_END;
- TSTRUCT_PTR_ARRAY_PTR_START PackMapEnvDataWindV74 wind TSTRUCT_PTR_ARRAY_PTR_END;
- TSTRUCT_PTR_ARRAY_PTR_START PackMapEnvDataAudioV45 audio TSTRUCT_PTR_ARRAY_PTR_END;
- wchar_ptr name;
- TSTRUCT_ARRAY_PTR_START byte nightMods TSTRUCT_ARRAY_PTR_END;
- qword bindTarget;
- wchar_ptr reserved;
- byte type;
- qword guid;
- TSTRUCT_ARRAY_PTR_START PackMapEnvDataShapeV45 shapeArray TSTRUCT_ARRAY_PTR_END;
- } PackMapEnvDataLocalV74<optimize=false>;
- typedef struct
- {
- filename texPathNE;
- filename texPathSW;
- filename texPathT;
- } PackMapEnvDataSkyModeTexV74<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START PackMapEnvDataLightingV74 lighting TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapEnvDataLightingCharGroupV45 lightingCharGroups TSTRUCT_ARRAY_PTR_END;
- TPTR_START PackMapEnvDataCloudsV74 clouds TPTR_END;
- TSTRUCT_PTR_ARRAY_PTR_START PackMapEnvDataColoredLightRingsV45 coloredLightRings TSTRUCT_PTR_ARRAY_PTR_END;
- TSTRUCT_PTR_ARRAY_PTR_START PackMapEnvDataEffectV74 effect TSTRUCT_PTR_ARRAY_PTR_END;
- TSTRUCT_PTR_ARRAY_PTR_START PackMapEnvDataHazeV74 haze TSTRUCT_PTR_ARRAY_PTR_END;
- TSTRUCT_PTR_ARRAY_PTR_START PackMapEnvDataPFieldV74 particleFields TSTRUCT_PTR_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapEnvDataPFieldCutoutV45 particleFieldCutouts TSTRUCT_ARRAY_PTR_END;
- TPTR_START PackMapEnvDataSkyV74 sky TPTR_END;
- TPTR_START PackMapEnvDataSkyCardsV74 skyCards TPTR_END;
- TPTR_START PackMapEnvDataSpawnGroupsV45 spawns TPTR_END;
- TSTRUCT_PTR_ARRAY_PTR_START PackMapEnvDataWaterV74 water TSTRUCT_PTR_ARRAY_PTR_END;
- TSTRUCT_PTR_ARRAY_PTR_START PackMapEnvDataWindV74 wind TSTRUCT_PTR_ARRAY_PTR_END;
- TSTRUCT_PTR_ARRAY_PTR_START PackMapEnvDataAudioV45 audio TSTRUCT_PTR_ARRAY_PTR_END;
- wchar_ptr name;
- TSTRUCT_ARRAY_PTR_START byte nightMods TSTRUCT_ARRAY_PTR_END;
- qword bindTarget;
- wchar_ptr reserved;
- TSTRUCT_ARRAY_PTR_START PackMapEnvDataSkyModeTexV74 skyModeTex TSTRUCT_ARRAY_PTR_END;
- filename starFile;
- } PackMapEnvDataGlobalV74<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START PackMapEnvDataLocalV74 dataLocalArray TSTRUCT_ARRAY_PTR_END;
- TPTR_START PackMapEnvDataGlobalV74 dataGlobal TPTR_END;
- } PackMapEnvironmentV74<optimize=false>;
- // env\0
- // dcal
- typedef struct
- {
- float3 position;
- float3 normal;
- float3 tangent;
- float3 bitangent;
- } PackMapDecalVertexV8<optimize=false>;
- typedef struct
- {
- float3 position;
- float3 extents;
- float3 rotation;
- float2 textureScaleUV0;
- float2 textureOffsetUV0;
- float2 textureScaleUV1;
- float2 textureOffsetUV1;
- filename materialFilename;
- TSTRUCT_ARRAY_PTR_START filename textureFilenames TSTRUCT_ARRAY_PTR_END;
- dword flags;
- float2 animTranslation;
- float2 animScaleRangeX;
- float2 animScaleRangeY;
- float2 animScaleSpeed;
- float animRotation;
- float surfaceBias;
- TSTRUCT_ARRAY_PTR_START dword constantTokens TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START float4 constantValues TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapDecalVertexV8 vertices TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START word indices TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START qword propIds TSTRUCT_ARRAY_PTR_END;
- byte projection;
- qword surfaceId;
- qword id;
- } PackMapDecalV9<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START PackMapDecalV9 decals TSTRUCT_ARRAY_PTR_END;
- } PackMapDecalsV9<optimize=false>;
- // dcal
- // shor
- typedef struct
- {
- float offset;
- float opacity;
- float animationSpeed;
- float2 edgeSize;
- dword flags;
- TSTRUCT_ARRAY_PTR_START float2 points TSTRUCT_ARRAY_PTR_END;
- filename materialFilename;
- TSTRUCT_ARRAY_PTR_START filename textureFilenames TSTRUCT_ARRAY_PTR_END;
- float restTime;
- float2 fadeRanges[4];
- float simplifyDistMin;
- float simplifyDistMax;
- float simplifyDot;
- } MapShoreChain<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START MapShoreChain chains TSTRUCT_ARRAY_PTR_END;
- } MapShore<optimize=false>;
- // shor
- // audi
- typedef struct
- {
- dword regionType;
- dword overrideMode;
- filename filenameSourceDay;
- filename filenameAmbientDay;
- filename filenameSourceNight;
- filename filenameAmbientNight;
- filename filenameInterior;
- float exteriorVolume;
- dword priority;
- TSTRUCT_ARRAY_PTR_START float3 points TSTRUCT_ARRAY_PTR_END;
- float3 position;
- float3 orientation;
- float fadeBand;
- float height;
- float radius;
- qword guid;
- dword flags;
- } PackMapAudioRegion<optimize=false>;
- typedef struct
- {
- wchar_ptr annotation;
- } PackMapAudioRegionTool<optimize=false>;
- typedef struct
- {
- filename dependency;
- dword flags;
- } PackMapAudioDep<optimize=false>;
- typedef struct
- {
- filename filenameAmbientDaySurface;
- filename filenameAmbientDayUnderwater;
- filename filenameAmbientNightSurface;
- filename filenameAmbientNightUnderwater;
- TSTRUCT_ARRAY_PTR_START PackMapAudioRegion audioRegions TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapAudioRegionTool audioRegionTools TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapAudioDep audioDepArray TSTRUCT_ARRAY_PTR_END;
- } MapAudio<optimize=false>;
- // audi
- // lght
- typedef struct
- {
- float3 position;
- byte3 color;
- float intensity;
- float nearDistance;
- float farDistance;
- dword flags;
- } PackMapLight<optimize=false>;
- typedef struct
- {
- float gust;
- float gustFreq;
- float noise;
- float phase;
- float offset;
- float amplitude;
- dword curveType;
- } PackMapCurve<optimize=false>;
- typedef struct
- {
- qword guid;
- TSTRUCT_ARRAY_PTR_START PackMapLight lights TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapCurve curves TSTRUCT_ARRAY_PTR_END;
- word broadId;
- } PackMapPointLightgroups<optimize=false>;
- typedef struct
- {
- float fadeCamera;
- float fadeLight;
- float lighten;
- float darken;
- } PackMapPortalData<optimize=false>;
- typedef struct
- {
- qword guid;
- TSTRUCT_ARRAY_PTR_START float3 points TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapPortalData portalData TSTRUCT_ARRAY_PTR_END;
- word broadId;
- } PackMapPortalLight<optimize=false>;
- typedef struct
- {
- filename shadowFilename;
- } PackMapSpotShadow<optimize=false>;
- typedef struct
- {
- float3 position;
- byte3 color;
- float intensity;
- float nearDistance;
- float farDistance;
- dword flags;
- float3 direction;
- float innerAngle;
- float outerAngle;
- filename textureName;
- TPTR_START PackMapSpotShadow shadowData TPTR_END;
- } PackMapSpotLight<optimize=false>;
- typedef struct
- {
- qword guid;
- TSTRUCT_ARRAY_PTR_START PackMapSpotLight lights TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapCurve curves TSTRUCT_ARRAY_PTR_END;
- word broadId;
- } PackMapSpotLightgroups<optimize=false>;
- typedef struct
- {
- filename filename_;
- dword2 dims;
- dword format;
- TSTRUCT_ARRAY_PTR_START byte image TSTRUCT_ARRAY_PTR_END;
- } PackMapVolumeImage<optimize=false>;
- typedef struct
- {
- qword guid;
- float3 position;
- float3 extents;
- float3 rotation;
- float2 intensities;
- float4 pack;
- wchar_ptr name;
- TSTRUCT_ARRAY_PTR_START float3 floodPoints TSTRUCT_ARRAY_PTR_END;
- dword flags;
- TSTRUCT_ARRAY_PTR_START PackMapVolumeImage images TSTRUCT_ARRAY_PTR_END;
- word broadId;
- } PackMapVolumeLight<optimize=false>;
- typedef struct
- {
- TSTRUCT_ARRAY_PTR_START PackMapPointLightgroups pointLights TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapPortalLight portalLights TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapSpotLightgroups spotLights TSTRUCT_ARRAY_PTR_END;
- TSTRUCT_ARRAY_PTR_START PackMapVolumeLight volumeLights TSTRUCT_ARRAY_PTR_END;
- PackBroadphaseType broadPhase;
- word maxBroadId;
- } PackMapLights<optimize=false>;
- // lght
- PackFile mapcPackFile(0, FileSize());
- local uint32 lLoopIndex = 0;
- local string lMagic;
- while (exists(mapcPackFile.chunk[lLoopIndex]))
- {
- FSeek(startof(mapcPackFile.chunk[lLoopIndex].data));
- lMagic = mapcPackFile.chunk[lLoopIndex].header.magic;
- if (lMagic == "parm")
- {
- MapParam parmChunk;
- }
- if (lMagic == "trn\0")
- {
- PackMapTerrainV14 trnChunk;
- }
- if (lMagic == "trni")
- {
- MapTerrainImg trniChunk;
- }
- if (lMagic == "surf")
- {
- MapSurfaces surfChunk;
- }
- if (lMagic == "area")
- {
- PackMapAreasV4 areaChunk;
- }
- if (lMagic == "msn\0")
- {
- MapMission msnChunk;
- }
- if (lMagic == "havk")
- {
- PackMapCollideV14 havkChunk;
- }
- if (lMagic == "zon2")
- {
- PackMapZonesV22 zon2Chunk;
- }
- if (lMagic == "prp2")
- {
- PackMapPropV21 prp2Chunk;
- }
- if (lMagic == "rive")
- {
- PackMapRivers riveChunk;
- }
- if (lMagic == "shex")
- {
- PackMapShadowExtV1 shexChunk;
- }
- if (lMagic == "cube")
- {
- PackMapCubeMapV3 cubeChunk;
- }
- if (lMagic == "env\0")
- {
- PackMapEnvironmentV74 envChunk;
- }
- if (lMagic == "dcal")
- {
- PackMapDecalsV9 dcalChunk;
- }
- if (lMagic == "shor")
- {
- MapShore shorChunk;
- }
- if (lMagic == "audi")
- {
- MapAudio audiChunk;
- }
- if (lMagic == "lght")
- {
- PackMapLights lghtChunk;
- }
- lLoopIndex = lLoopIndex + 1;
- }
Add Comment
Please, Sign In to add comment