From e99e66cec5807a52f00ad2714f26a63c8e73690a Mon Sep 17 00:00:00 2001 From: Jan Date: Thu, 11 Feb 2021 11:51:36 +0100 Subject: [PATCH] Separate command files to a single command file per asset and include them in the main command file --- src/ZoneCode.lua | 2 +- src/ZoneCode/Game/IW4/IW4_Commands.txt | 1141 +----------- .../Game/IW4/XAssets/AddonMapEnts.txt | 7 + src/ZoneCode/Game/IW4/XAssets/ComWorld.txt | 10 + src/ZoneCode/Game/IW4/XAssets/Font_s.txt | 8 + src/ZoneCode/Game/IW4/XAssets/FxEffectDef.txt | 49 + .../Game/IW4/XAssets/FxImpactTable.txt | 7 + src/ZoneCode/Game/IW4/XAssets/FxWorld.txt | 37 + src/ZoneCode/Game/IW4/XAssets/GameWorldMp.txt | 6 + src/ZoneCode/Game/IW4/XAssets/GameWorldSp.txt | 66 + src/ZoneCode/Game/IW4/XAssets/GfxImage.txt | 21 + src/ZoneCode/Game/IW4/XAssets/GfxLightDef.txt | 6 + src/ZoneCode/Game/IW4/XAssets/GfxWorld.txt | 127 ++ .../Game/IW4/XAssets/LeaderboardDef.txt | 12 + src/ZoneCode/Game/IW4/XAssets/LoadedSound.txt | 15 + .../Game/IW4/XAssets/LocalizeEntry.txt | 7 + src/ZoneCode/Game/IW4/XAssets/MapEnts.txt | 17 + src/ZoneCode/Game/IW4/XAssets/Material.txt | 22 + .../Game/IW4/XAssets/MaterialPixelShader.txt | 12 + .../Game/IW4/XAssets/MaterialTechniqueSet.txt | 26 + .../IW4/XAssets/MaterialVertexDeclaration.txt | 9 + .../Game/IW4/XAssets/MaterialVertexShader.txt | 12 + src/ZoneCode/Game/IW4/XAssets/MenuList.txt | 7 + src/ZoneCode/Game/IW4/XAssets/PhysCollmap.txt | 26 + src/ZoneCode/Game/IW4/XAssets/PhysPreset.txt | 7 + src/ZoneCode/Game/IW4/XAssets/RawFile.txt | 9 + src/ZoneCode/Game/IW4/XAssets/SndCurve.txt | 6 + src/ZoneCode/Game/IW4/XAssets/StringTable.txt | 10 + .../Game/IW4/XAssets/StructuredDataDefSet.txt | 26 + src/ZoneCode/Game/IW4/XAssets/TracerDef.txt | 6 + src/ZoneCode/Game/IW4/XAssets/VehicleDef.txt | 15 + .../Game/IW4/XAssets/WeaponCompleteDef.txt | 83 + src/ZoneCode/Game/IW4/XAssets/XAnimParts.txt | 82 + src/ZoneCode/Game/IW4/XAssets/XModel.txt | 70 + src/ZoneCode/Game/IW4/XAssets/clipMap_t.txt | 70 + src/ZoneCode/Game/IW4/XAssets/menuDef_t.txt | 149 ++ .../Game/IW4/XAssets/snd_alias_list_t.txt | 29 + src/ZoneCode/Game/T6/T6_Commands.txt | 1589 +---------------- src/ZoneCode/Game/T6/XAssets/AddonMapEnts.txt | 18 + src/ZoneCode/Game/T6/XAssets/ComWorld.txt | 10 + .../Game/T6/XAssets/DestructibleDef.txt | 20 + src/ZoneCode/Game/T6/XAssets/EmblemSet.txt | 34 + src/ZoneCode/Game/T6/XAssets/FontIcon.txt | 13 + src/ZoneCode/Game/T6/XAssets/Font_s.txt | 10 + .../Game/T6/XAssets/FootstepFXTableDef.txt | 6 + .../Game/T6/XAssets/FootstepTableDef.txt | 6 + src/ZoneCode/Game/T6/XAssets/FxEffectDef.txt | 53 + .../Game/T6/XAssets/FxImpactTable.txt | 7 + src/ZoneCode/Game/T6/XAssets/GameWorldMp.txt | 6 + src/ZoneCode/Game/T6/XAssets/GameWorldSp.txt | 36 + src/ZoneCode/Game/T6/XAssets/GfxImage.txt | 23 + src/ZoneCode/Game/T6/XAssets/GfxLightDef.txt | 6 + src/ZoneCode/Game/T6/XAssets/GfxWorld.txt | 199 +++ src/ZoneCode/Game/T6/XAssets/Glasses.txt | 20 + .../Game/T6/XAssets/KeyValuePairs.txt | 10 + .../Game/T6/XAssets/LeaderboardDef.txt | 13 + .../Game/T6/XAssets/LocalizeEntry.txt | 7 + src/ZoneCode/Game/T6/XAssets/MapEnts.txt | 16 + src/ZoneCode/Game/T6/XAssets/Material.txt | 18 + .../Game/T6/XAssets/MaterialTechniqueSet.txt | 54 + src/ZoneCode/Game/T6/XAssets/MemoryBlock.txt | 6 + src/ZoneCode/Game/T6/XAssets/MenuList.txt | 7 + .../Game/T6/XAssets/PhysConstraints.txt | 13 + src/ZoneCode/Game/T6/XAssets/PhysPreset.txt | 7 + src/ZoneCode/Game/T6/XAssets/Qdb.txt | 7 + src/ZoneCode/Game/T6/XAssets/RawFile.txt | 7 + .../Game/T6/XAssets/ScriptParseTree.txt | 7 + .../Game/T6/XAssets/SkinnedVertsDef.txt | 6 + src/ZoneCode/Game/T6/XAssets/Slug.txt | 7 + src/ZoneCode/Game/T6/XAssets/SndBank.txt | 41 + .../Game/T6/XAssets/SndDriverGlobals.txt | 14 + src/ZoneCode/Game/T6/XAssets/SndPatch.txt | 7 + src/ZoneCode/Game/T6/XAssets/StringTable.txt | 11 + src/ZoneCode/Game/T6/XAssets/TracerDef.txt | 6 + src/ZoneCode/Game/T6/XAssets/VehicleDef.txt | 51 + .../Game/T6/XAssets/WeaponAttachment.txt | 7 + .../T6/XAssets/WeaponAttachmentUnique.txt | 32 + src/ZoneCode/Game/T6/XAssets/WeaponCamo.txt | 17 + .../Game/T6/XAssets/WeaponVariantDef.txt | 193 ++ src/ZoneCode/Game/T6/XAssets/XAnimParts.txt | 82 + src/ZoneCode/Game/T6/XAssets/XGlobals.txt | 16 + src/ZoneCode/Game/T6/XAssets/XModel.txt | 90 + src/ZoneCode/Game/T6/XAssets/ZBarrierDef.txt | 15 + src/ZoneCode/Game/T6/XAssets/clipMap_t.txt | 96 + src/ZoneCode/Game/T6/XAssets/ddlRoot_t.txt | 29 + src/ZoneCode/Game/T6/XAssets/menuDef_t.txt | 133 ++ 86 files changed, 2647 insertions(+), 2648 deletions(-) create mode 100644 src/ZoneCode/Game/IW4/XAssets/AddonMapEnts.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/ComWorld.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/Font_s.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/FxEffectDef.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/FxImpactTable.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/FxWorld.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/GameWorldMp.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/GameWorldSp.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/GfxImage.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/GfxLightDef.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/GfxWorld.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/LeaderboardDef.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/LoadedSound.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/LocalizeEntry.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/MapEnts.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/Material.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/MaterialPixelShader.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/MaterialTechniqueSet.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/MaterialVertexDeclaration.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/MaterialVertexShader.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/MenuList.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/PhysCollmap.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/PhysPreset.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/RawFile.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/SndCurve.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/StringTable.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/StructuredDataDefSet.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/TracerDef.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/VehicleDef.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/WeaponCompleteDef.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/XAnimParts.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/XModel.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/clipMap_t.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/menuDef_t.txt create mode 100644 src/ZoneCode/Game/IW4/XAssets/snd_alias_list_t.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/AddonMapEnts.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/ComWorld.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/DestructibleDef.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/EmblemSet.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/FontIcon.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/Font_s.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/FootstepFXTableDef.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/FootstepTableDef.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/FxEffectDef.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/FxImpactTable.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/GameWorldMp.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/GameWorldSp.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/GfxImage.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/GfxLightDef.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/GfxWorld.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/Glasses.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/KeyValuePairs.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/LeaderboardDef.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/LocalizeEntry.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/MapEnts.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/Material.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/MaterialTechniqueSet.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/MemoryBlock.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/MenuList.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/PhysConstraints.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/PhysPreset.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/Qdb.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/RawFile.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/ScriptParseTree.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/SkinnedVertsDef.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/Slug.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/SndBank.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/SndDriverGlobals.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/SndPatch.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/StringTable.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/TracerDef.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/VehicleDef.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/WeaponAttachment.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/WeaponAttachmentUnique.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/WeaponCamo.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/WeaponVariantDef.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/XAnimParts.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/XGlobals.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/XModel.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/ZBarrierDef.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/clipMap_t.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/ddlRoot_t.txt create mode 100644 src/ZoneCode/Game/T6/XAssets/menuDef_t.txt diff --git a/src/ZoneCode.lua b/src/ZoneCode.lua index e3c2b199..b2c0e44a 100644 --- a/src/ZoneCode.lua +++ b/src/ZoneCode.lua @@ -174,7 +174,7 @@ function ZoneCode:project() files { path.join(folder, "ZoneCode/**.gen"), path.join(folder, "ZoneCode/**.h"), - path.join(folder, "ZoneCode/**_Commands.txt") + path.join(folder, "ZoneCode/**.txt") } vpaths { diff --git a/src/ZoneCode/Game/IW4/IW4_Commands.txt b/src/ZoneCode/Game/IW4/IW4_Commands.txt index 62e2d3e0..12bc9ba8 100644 --- a/src/ZoneCode/Game/IW4/IW4_Commands.txt +++ b/src/ZoneCode/Game/IW4/IW4_Commands.txt @@ -48,1111 +48,40 @@ block normal XFILE_BLOCK_CALLBACK; block normal XFILE_BLOCK_VERTEX; block normal XFILE_BLOCK_INDEX; -// ========================================= -// PhysPreset -// ========================================= -use PhysPreset; -set string name; -set name name; -set string sndAliasPrefix; -block normal XFILE_BLOCK_INDEX; - -// ========================================= -// PhysCollmap -// ========================================= -use PhysCollmap; -set string name; -set name name; -set count geoms count; - -// PhysGeomInfo -use PhysGeomInfo; -set count brushWrapper 1; - -// BrushWrapper -use BrushWrapper; -set reusable planes; -set count planes brush::numsides; - -// cbrushWrapper_t -use cbrushWrapper_t; -set count sides numsides; -set count baseAdjacentSide BrushWrapper::totalEdgeCount; - -// cbrushside_t -use cbrushside_t; -set reusable plane; -set count plane 1; - -// ========================================= -// XAnimParts -// ========================================= -use XAnimParts; -set string name; -set name name; -set scriptstring names; -set count names boneCount[9]; -set count notify notifyCount; -set count deltaPart 1; -set count dataByte dataByteCount; -set count dataShort dataShortCount; -set count dataInt dataIntCount; -set count randomDataShort randomDataShortCount; -set count randomDataByte randomDataByteCount; -set count randomDataInt randomDataIntCount; -set count indices::_1 indexCount; -set count indices::_2 indexCount; -set condition indices::_1 numframes < 256; -set condition indices::data never; -reorder: - name - names - notify - deltaPart - dataByte - dataShort - dataInt - randomDataShort - randomDataByte - randomDataInt - indices; - -// XAnimNotifyInfo -set scriptstring XAnimNotifyInfo::name; - -// XAnimDeltaPart -use XAnimDeltaPart; -set count trans 1; -set count quat2 1; -set count quat 1; - -// XAnimPartTrans -use XAnimPartTrans; -set condition u::frames size > 0; -set condition u::frames::indices::_1 XAnimParts::numframes < 256; -set arraysize u::frames::indices::_1 size + 1; -set arraysize u::frames::indices::_2 size + 1; -set condition u::frames::frames::_1 smallTrans; -set count u::frames::frames::_1 size + 1; -set count u::frames::frames::_2 size + 1; - -// XAnimPartTransFrames -reorder XAnimPartTransFrames: - indices - frames; - -// XAnimDeltaPartQuat2 -use XAnimDeltaPartQuat2; -set condition u::frames size > 0; -set condition u::frames::indices::_1 XAnimParts::numframes < 256; -set arraysize u::frames::indices::_1 size + 1; -set arraysize u::frames::indices::_2 size + 1; -set count u::frames::frames size + 1; - -// XAnimDeltaPartQuatDataFrames2 -reorder XAnimDeltaPartQuatDataFrames2: - indices - frames; - -// XAnimDeltaPartQuat -use XAnimDeltaPartQuat; -set condition u::frames size > 0; -set condition u::frames::indices::_1 XAnimParts::numframes < 256; -set arraysize u::frames::indices::_1 size + 1; -set arraysize u::frames::indices::_2 size + 1; -set count u::frames::frames size + 1; - -// XAnimDeltaPartQuatDataFrames -reorder XAnimDeltaPartQuatDataFrames: - indices - frames; - -// ========================================= -// XModel -// ========================================= -use XModel; -set string name; -set name name; -set scriptstring boneNames; -set reusable boneNames; -set count boneNames numBones; -set reusable parentList; -set count parentList numBones - numRootBones; -set reusable quats; -set count quats numBones - numRootBones; -set reusable trans; -set count trans numBones - numRootBones; -set reusable partClassification; -set count partClassification numBones; -set reusable baseMat; -set count baseMat numBones; -set count materialHandles numsurfs; -set count collSurfs numCollSurfs; -set count boneInfo numBones; - -// XModelLodInfo -use XModelLodInfo; -set block modelSurfs XFILE_BLOCK_TEMP; -set reusable modelSurfs; -set condition surfs never; - -// XModelSurfs -use XModelSurfs; -set block XFILE_BLOCK_VIRTUAL; -set string name; -set count surfs XModelLodInfo::numsurfs; // No this is not a mistake. This is how the game does it. - -// XSurface -use XSurface; -set reusable verts0; -set block verts0 XFILE_BLOCK_VERTEX; -set count verts0 vertCount; -set reusable vertList; -set count vertList vertListCount; -set reusable triIndices; -set block triIndices XFILE_BLOCK_INDEX; -set count triIndices triCount; -reorder: - zoneHandle - vertInfo - verts0 - vertList - triIndices; - -// XSurfaceVertexInfo -use XSurfaceVertexInfo; -set reusable vertsBlend; -set count vertsBlend vertCount[0] - + 3 * vertCount[1] - + 5 * vertCount[2] - + 7 * vertCount[3]; - -// XRigidVertList -set reusable XRigidVertList::collisionTree; - -// XSurfaceCollisionTree -use XSurfaceCollisionTree; -set count nodes nodeCount; -set count leafs leafCount; - -// XModelCollSurf_s -set count XModelCollSurf_s::collTris numCollTris; - -// ========================================= -// Material -// ========================================= -use Material; -set string info::name; -set name info::name; -set reusable textureTable; -set count textureTable textureCount; -set reusable constantTable; -set count constantTable constantCount; -set reusable stateBitsTable; -set count stateBitsTable stateBitsCount; - -// MaterialTextureDef -use MaterialTextureDef; -set condition u::water semantic == TS_WATER_MAP; -set reusable u::water; - -// water_t -use water_t; -set count H0 N * M; -set count wTerm N * M; - -// ========================================= -// MaterialTechniqueSet -// ========================================= -use MaterialTechniqueSet; -set string name; -set name name; -set condition remappedTechniqueSet never; -set reusable techniques; - -// MaterialTechnique -use MaterialTechnique; -set string name; -set arraysize passArray passCount; -reorder: - passArray - name; - -// MaterialPass -use MaterialPass; -set count args perPrimArgCount + perObjArgCount + stableArgCount; - -// MaterialShaderArgument -use MaterialShaderArgument; -set condition u::literalConst type == MTL_ARG_LITERAL_VERTEX_CONST -|| type == MTL_ARG_LITERAL_PIXEL_CONST; -set reusable u::literalConst; - -// ========================================= -// MaterialVertexDeclaration -// ========================================= -use MaterialVertexDeclaration; -set string name; -set name name; - -// MaterialVertexStreamRouting -set condition MaterialVertexStreamRouting::decl never; - -// ========================================= -// MaterialVertexShader -// ========================================= -use MaterialVertexShader; -set string name; -set name name; - -// GfxVertexShaderLoadDef -set count GfxVertexShaderLoadDef::program programSize; - -// MaterialVertexShaderProgram -set condition MaterialVertexShaderProgram::vs never; - -// ========================================= -// MaterialPixelShader -// ========================================= -use MaterialPixelShader; -set string name; -set name name; - -// GfxPixelShaderLoadDef -set count GfxPixelShaderLoadDef::program programSize; - -// MaterialPixelShaderProgram -set condition MaterialPixelShaderProgram::ps never; - -// ========================================= -// GfxImage -// ========================================= -use GfxImage; -set action OnImageLoaded(GfxImage); -set string name; -set name name; -reorder: - name - texture; - -// GfxTexture -use GfxTexture; -set reusable loadDef; -set block loadDef XFILE_BLOCK_TEMP; -set condition texture never; - -// GfxImageLoadDef -use GfxImageLoadDef; -set action LoadImageData(GfxImageLoadDef, GfxImage); -set arraysize data resourceSize; - -// ========================================= -// snd_alias_list_t -// ========================================= -use snd_alias_list_t; -set string aliasName; -set name aliasName; -set reusable head; -set count head count; - -// snd_alias_t -use snd_alias_t; -set string aliasName; -set string subtitle; -set string secondaryAliasName; -set string chainAliasName; -set string mixerGroup; -set reusable soundFile; -set reusable speakerMap; - -// SoundFile -set condition SoundFile::u::loadSnd type == SAT_LOADED; - -// SpeakerMap -set string SpeakerMap::name; - -// StreamedSound -use StreamedSound; -set string dir; -set string name; - -// ========================================= -// SndCurve -// ========================================= -use SndCurve; -set string filename; -set name filename; - -// ========================================= -// LoadedSound -// ========================================= -use LoadedSound; -set string name; -set name name; - -// MssSound -use MssSound; -set block data XFILE_BLOCK_TEMP; -set reusable data; -set count data info::data_len; -set condition info::data_ptr never; -set condition info::initial_ptr never; -set action SetSoundData(MssSound); - -// ========================================= -// clipMap_t -// ========================================= -use clipMap_t; -set string name; -set name name; -set reusable planes; -set count planes planeCount; -set count staticModelList numStaticModels; -set count materials numMaterials; -set count brushsides numBrushSides; -set count brushEdges numBrushEdges; -set count nodes numNodes; -set count leafs numLeafs; -set count leafbrushNodes leafbrushNodesCount; -set count leafbrushes numLeafBrushes; -set count leafsurfaces numLeafSurfaces; -set count verts vertCount; -set count triIndices 3 * triCount; -set count triEdgeIsWalkable ((3 * triCount + 31) / 32) * 4; -set count borders borderCount; -set count partitions partitionCount; -set count aabbTrees aabbTreeCount; -set count cmodels numSubModels; -set count brushes numBrushes; -set count brushBounds numBrushes; -set count brushContents numBrushes; -set count smodelNodes smodelNodeCount; -set count dynEntDefList[0] dynEntCount[0]; -set count dynEntDefList[1] dynEntCount[1]; -set block dynEntPoseList XFILE_BLOCK_RUNTIME; -set count dynEntPoseList[0] dynEntCount[0]; -set count dynEntPoseList[1] dynEntCount[1]; -set block dynEntClientList XFILE_BLOCK_RUNTIME; -set count dynEntClientList[0] dynEntCount[0]; -set count dynEntClientList[1] dynEntCount[1]; -set block dynEntCollList XFILE_BLOCK_RUNTIME; -set count dynEntCollList[0] dynEntCount[0]; -set count dynEntCollList[1] dynEntCount[1]; -reorder: - ... - leafs - leafbrushes - leafbrushNodes; -reorder: - ... - brushContents - smodelNodes - mapEnts; - -// ClipMaterial -set string ClipMaterial::name; - -// cNode_t -set reusable cNode_t::plane; - -// cLeafBrushNode_s -use cLeafBrushNode_s; -set condition data::leaf leafBrushCount > 0; -set reusable data::leaf::brushes; -set count data::leaf::brushes leafBrushCount; - -// CollisionPartition -use CollisionPartition; -set reusable borders; - -// cbrush_t -use cbrush_t; -set reusable sides; -set reusable baseAdjacentSide; - -// ========================================= -// ComWorld -// ========================================= -use ComWorld; -set string name; -set name name; -set count primaryLights primaryLightCount; - -// ComPrimaryLight -set string ComPrimaryLight::defName; - -// ========================================= -// GameWorldSp -// ========================================= -use GameWorldSp; -set string name; -set name name; - -// PathData -use PathData; -set count nodes nodeCount; -set block basenodes XFILE_BLOCK_RUNTIME; -set count basenodes nodeCount; -set count chainNodeForNode nodeCount; -set count nodeForChainNode nodeCount; -set count pathVis visBytes; -set count nodeTree nodeTreeCount; - -// pathnode_t -set condition pathnode_t::transient never; - -// pathnode_constant_t -use pathnode_constant_t; -set scriptstring targetname; -set scriptstring script_linkName; -set scriptstring script_noteworthy; -set scriptstring target; -set scriptstring animscript; -set count Links totalLinkCount; - -// pathnode_dynamic_t -set condition pathnode_dynamic_t::pOwner never; - -// pathnode_tree_t -use pathnode_tree_t; -set condition u::child axis >= 0; -set reusable u::child; - -// pathnode_tree_nodes_t -set count pathnode_tree_nodes_t::nodes nodeCount; - -// VehicleTrack -use VehicleTrack; -set reusable segments; -set count segments segmentCount; - -// VehicleTrackSegment -use VehicleTrackSegment; -set string targetName; -set count sectors sectorCount; -set reusable nextBranches; -set count nextBranches nextBranchesCount; -set reusable prevBranches; -set count prevBranches prevBranchesCount; - -// VehicleTrackSector -set count VehicleTrackSector::obstacles obstacleCount; - -// G_GlassData -use G_GlassData; -set count glassPieces pieceCount; -set count glassNames glassNameCount; - -// G_GlassName -use G_GlassName; -set string nameStr; -set count pieceIndices pieceCount; - -// ========================================= -// GameWorldMp -// ========================================= -use GameWorldMp; -set string name; -set name name; - -// ========================================= -// MapEnts -// ========================================= -use MapEnts; -set string name; -set name name; -set count entityString numEntityChars; -set count stages stageCount; - -// MapTriggers -use MapTriggers; -set count models count; -set count hulls hullCount; -set count slabs slabCount; - -// Stage -set string Stage::name; - -// ========================================= -// FxWorld -// ========================================= -use FxWorld; -set string name; -set name name; - -// FxGlassSystem -use FxGlassSystem; -set count defs defCount; -set block piecePlaces XFILE_BLOCK_RUNTIME; -set count piecePlaces pieceLimit; -set block pieceStates XFILE_BLOCK_RUNTIME; -set count pieceStates pieceLimit; -set block pieceDynamics XFILE_BLOCK_RUNTIME; -set count pieceDynamics pieceLimit; -set block geoData XFILE_BLOCK_RUNTIME; -set count geoData geoDataLimit; -set block isInUse XFILE_BLOCK_RUNTIME; -set count isInUse pieceWordCount; -set block cellBits XFILE_BLOCK_RUNTIME; -set count cellBits pieceWordCount * cellCount; -set block visData XFILE_BLOCK_RUNTIME; -set count visData (pieceLimit + 15) / 16 * 16; -set block linkOrg XFILE_BLOCK_RUNTIME; -set count linkOrg pieceLimit; -set block halfThickness XFILE_BLOCK_RUNTIME; -set count halfThickness (pieceLimit + 3) / 4 * 4; -set count lightingHandles initPieceCount; -set count initPieceStates initPieceCount; -set count initGeoData initGeoDataCount; - -// FxGlassDef -reorder FxGlassDef: - physPreset - material - materialShattered; - -// ========================================= -// GfxWorld -// ========================================= -use GfxWorld; -set string name; -set name name; -set string baseName; -set count skies skyCount; -set count aabbTreeCounts dpvsPlanes::cellCount; -set count aabbTrees dpvsPlanes::cellCount; -set count cells dpvsPlanes::cellCount; -set count models modelCount; -set count materialMemory materialMemoryCount; -set block cellCasterBits XFILE_BLOCK_RUNTIME; -set count cellCasterBits dpvsPlanes::cellCount * ((dpvsPlanes::cellCount + 31) / 32); -set block cellHasSunLitSurfsBits XFILE_BLOCK_RUNTIME; -set count cellHasSunLitSurfsBits (dpvsPlanes::cellCount + 31) / 32; -set block sceneDynModel XFILE_BLOCK_RUNTIME; -set count sceneDynModel dpvsDyn::dynEntClientCount[0]; -set block sceneDynBrush XFILE_BLOCK_RUNTIME; -set count sceneDynBrush dpvsDyn::dynEntClientCount[1]; -set block primaryLightEntityShadowVis XFILE_BLOCK_RUNTIME; -set count primaryLightEntityShadowVis (primaryLightCount - lastSunPrimaryLightIndex - 1) * 0x2000; -set block primaryLightDynEntShadowVis XFILE_BLOCK_RUNTIME; -set count primaryLightDynEntShadowVis[0] dpvsDyn::dynEntClientCount[0] * (primaryLightCount - lastSunPrimaryLightIndex - 1); -set count primaryLightDynEntShadowVis[1] dpvsDyn::dynEntClientCount[1] * (primaryLightCount - lastSunPrimaryLightIndex - 1); -set block nonSunPrimaryLightForModelDynEnt XFILE_BLOCK_RUNTIME; -set count nonSunPrimaryLightForModelDynEnt dpvsDyn::dynEntClientCount[0]; -set count shadowGeom primaryLightCount; -set count lightRegion primaryLightCount; -set count heroOnlyLights heroOnlyLightCount; - -// GfxSky -set count GfxSky::skyStartSurfs skySurfCount; - -// GfxWorldDpvsPlanes -use GfxWorldDpvsPlanes; -set reusable planes; -set count planes GfxWorld::planeCount; -set count nodes GfxWorld::nodeCount; -set block sceneEntCellBits XFILE_BLOCK_RUNTIME; -set count sceneEntCellBits cellCount * 0x200; - -// GfxCellTree -// Extremly dirty hack caused by IW doing an extremly dirty hack in their code as well. -// No idea why they decided to separate the count from the pointer that uses the count. -// Thank you Treyarch for doing better in your games at least. -set count GfxCellTree::aabbTree GfxWorld::aabbTreeCounts[GfxCellTree - GfxWorld::aabbTrees]; - -// GfxAabbTree -use GfxAabbTree; -set reusable smodelIndexes; -set count smodelIndexes smodelIndexCount; - -// GfxCell -use GfxCell; -set count portals portalCount; -set count reflectionProbes reflectionProbeCount; - -// GfxPortal -use GfxPortal; -set condition writable never; -set count vertices vertexCount; - -// GfxWorldDraw -use GfxWorldDraw; -set count reflectionProbes reflectionProbeCount; -set count reflectionProbeOrigins reflectionProbeCount; -set block reflectionProbeTextures XFILE_BLOCK_RUNTIME; -set count reflectionProbeTextures reflectionProbeCount; -set count lightmaps lightmapCount; -set block lightmapPrimaryTextures XFILE_BLOCK_RUNTIME; -set count lightmapPrimaryTextures lightmapCount; -set block lightmapSecondaryTextures XFILE_BLOCK_RUNTIME; -set count lightmapSecondaryTextures lightmapCount; -set count vd::vertices vertexCount; -set condition vd::worldVb never; -set count vld::data vertexLayerDataSize; -set condition vld::layerVb never; -set count indices indexCount; - -// GfxLightGrid -use GfxLightGrid; -set count rowDataStart maxs[rowAxis] - mins[rowAxis] + 1; -set count rawRowData rawRowDataSize; -set count entries entryCount; -set count colors colorCount; - -// GfxShadowGeometry -use GfxShadowGeometry; -set count sortedSurfIndex surfaceCount; -set count smodelIndex smodelCount; - -// GfxLightRegion -set count GfxLightRegion::hulls hullCount; - -// GfxLightRegionHull -set count GfxLightRegionHull::axis axisCount; - -// GfxWorldDpvsStatic -use GfxWorldDpvsStatic; -set block smodelVisData XFILE_BLOCK_RUNTIME; -set count smodelVisData smodelCount; -set block surfaceVisData XFILE_BLOCK_RUNTIME; -set count surfaceVisData staticSurfaceCount; -set count sortedSurfIndex staticSurfaceCount + staticSurfaceCountNoDecal; -set count smodelInsts smodelCount; -set count surfaces GfxWorld::surfaceCount; -set count surfacesBounds GfxWorld::surfaceCount; -set count smodelDrawInsts smodelCount; -set block surfaceMaterials XFILE_BLOCK_RUNTIME; -set count surfaceMaterials GfxWorld::surfaceCount; -set block surfaceCastsSunShadow XFILE_BLOCK_RUNTIME; -set count surfaceCastsSunShadow surfaceVisDataCount; - -// GfxWorldDpvsDynamic -use GfxWorldDpvsDynamic; -set block dynEntCellBits XFILE_BLOCK_RUNTIME; -set count dynEntCellBits[0] dynEntClientWordCount[0] * GfxWorld::dpvsPlanes::cellCount; -set count dynEntCellBits[1] dynEntClientWordCount[1] * GfxWorld::dpvsPlanes::cellCount; -set block dynEntVisData XFILE_BLOCK_RUNTIME; -set count dynEntVisData[0][0] 32 * dynEntClientWordCount[0]; -set count dynEntVisData[1][0] 32 * dynEntClientWordCount[1]; -set count dynEntVisData[0][1] 32 * dynEntClientWordCount[0]; -set count dynEntVisData[1][1] 32 * dynEntClientWordCount[1]; -set count dynEntVisData[0][2] 32 * dynEntClientWordCount[0]; -set count dynEntVisData[1][2] 32 * dynEntClientWordCount[1]; - -// ========================================= -// LocalizeEntry -// ========================================= -use LocalizeEntry; -set string name; -set name name; -set string value; - -// ========================================= -// WeaponCompleteDef -// ========================================= -use WeaponCompleteDef; -set string szInternalName; -set name szInternalName; -set reusable weapDef; -set string szDisplayName; -set reusable hideTags; -set scriptstring hideTags; -set count hideTags 32; -set string szXAnims; -set reusable szXAnims; -set count szXAnims 37; -set string szAltWeaponName; -set reusable accuracyGraphKnots; -set count accuracyGraphKnots[0] accuracyGraphKnotCount[0]; -set count accuracyGraphKnots[1] accuracyGraphKnotCount[1]; - -// WeaponDef -use WeaponDef; -set string szOverlayName; -set reusable gunXModel; -set count gunXModel 16; -set reusable szXAnimsRightHanded; -set string szXAnimsRightHanded; -set count szXAnimsRightHanded 37; -set reusable szXAnimsLeftHanded; -set string szXAnimsLeftHanded; -set count szXAnimsLeftHanded 37; -set string szModeName; -set reusable notetrackSoundMapKeys; -set scriptstring notetrackSoundMapKeys; -set count notetrackSoundMapKeys 16; -set reusable notetrackSoundMapValues; -set scriptstring notetrackSoundMapValues; -set count notetrackSoundMapValues 16; -set reusable notetrackRumbleMapKeys; -set scriptstring notetrackRumbleMapKeys; -set count notetrackRumbleMapKeys 16; -set reusable notetrackRumbleMapValues; -set scriptstring notetrackRumbleMapValues; -set count notetrackRumbleMapValues 16; -set reusable bounceSound; -set count bounceSound 31; -set reusable worldModel; -set count worldModel 16; -set string szAmmoName; -set string szClipName; -set string szSharedAmmoCapName; -set reusable parallelBounce; -set count parallelBounce 31; -set reusable perpendicularBounce; -set count perpendicularBounce 31; -set string accuracyGraphName0; -set string accuracyGraphName1; -set reusable originalAccuracyGraphKnots0; -set reusable originalAccuracyGraphKnots1; -set count originalAccuracyGraphKnots0 WeaponCompleteDef::accuracyGraphKnotCount[0]; -set count originalAccuracyGraphKnots1 WeaponCompleteDef::accuracyGraphKnotCount[1]; -set string szUseHintString; -set string dropHintString; -set string szScript; -set reusable locationDamageMultipliers; -set count locationDamageMultipliers 20; -set string fireRumble; -set string meleeImpactRumble; -set string turretBarrelSpinRumble; -reorder: - ... - accuracyGraphName0 - originalAccuracyGraphKnots0 - accuracyGraphName1 - originalAccuracyGraphKnots1; - -// SndAliasCustom -use SndAliasCustom; -set count name 1; -set reusable name; -set condition sound never; - -// snd_alias_list_name -set string snd_alias_list_name::soundName; - -// ========================================= -// MenuList -// ========================================= -use MenuList; -set string name; -set name name; -set count menus menuCount; - -// ========================================= -// menuDef_t -// ========================================= -use menuDef_t; -set string window::name; -set name window::name; -set string font; -set reusable visibleExp; -set string allowedBinding; -set string soundName; -set reusable rectXExp; -set reusable rectYExp; -set reusable rectWExp; -set reusable rectHExp; -set reusable openSoundExp; -set reusable closeSoundExp; -set count items itemCount; -set reusable expressionData; -reorder: - expressionData - window - font - onOpen - onClose - onCloseRequest - onESC - onKey - visibleExp - allowedBinding - soundName - rectXExp - rectYExp - rectWExp - rectHExp - openSoundExp - closeSoundExp - items; - -// windowDef_t -use windowDef_t; -set string name; -set string group; - -// MenuEventHandlerSet -set count MenuEventHandlerSet::eventHandlers eventHandlerCount; - -// MenuEventHandler -use MenuEventHandler; -set string eventData::unconditionalScript; -set condition eventData::unconditionalScript eventType == EVENT_UNCONDITIONAL; -set condition eventData::conditionalScript eventType == EVENT_IF; -set condition eventData::elseScript eventType == EVENT_ELSE; -set condition eventData::setLocalVarData eventType == EVENT_SET_LOCAL_VAR_BOOL - || eventType == EVENT_SET_LOCAL_VAR_INT - || eventType == EVENT_SET_LOCAL_VAR_FLOAT - || eventType == EVENT_SET_LOCAL_VAR_STRING; - -// ConditionalScript -use ConditionalScript; -set reusable eventExpression; -reorder: - eventExpression - eventHandlerSet; - -// SetLocalVarData -use SetLocalVarData; -set string localVarName; -set reusable expression; - -// Statement_s -use Statement_s; -set count entries numEntries; -set reusable supportingData; -set condition lastResult never; - -// expressionEntry -set condition expressionEntry::data::operand type == EET_OPERAND; - -// Operand -use Operand; -set reusable internals::function; -set condition internals::intVal dataType == VAL_INT; -set condition internals::floatVal dataType == VAL_FLOAT; -set condition internals::stringVal dataType == VAL_STRING; -set condition internals::function dataType == VAL_FUNCTION; - -// ExpressionString -set string ExpressionString::string; - -// itemDef_s -use itemDef_s; -set string text; -set condition parent never; -set string dvar; -set string dvarTest; -set string enableDvar; -set string localVar; -set count floatExpressions floatExpressionCount; -set reusable visibleExp; -set reusable disabledExp; -set reusable textExp; -set reusable materialExp; - -// itemDefData_t -use itemDefData_t; -set string enumDvarName; -set condition data never; -set condition listBox itemDef_s::type == 6; -set condition editField itemDef_s::type == 0 - || itemDef_s::type == 4 - || itemDef_s::type == 9 - || itemDef_s::type == 10 - || itemDef_s::type == 11 - || itemDef_s::type == 14 - || itemDef_s::type == 16 - || itemDef_s::type == 17 - || itemDef_s::type == 18 - || itemDef_s::type == 22 - || itemDef_s::type == 23; -set condition multi itemDef_s::type == 12; -set condition enumDvarName itemDef_s::type == 13; -set condition ticker itemDef_s::type == 20; -set condition scroll itemDef_s::type == 21; - -// multiDef_s -use multiDef_s; -set string dvarList; -set string dvarStr; - -// ItemFloatExpression -set reusable ItemFloatExpression::expression; - -// UIFunctionList -use UIFunctionList; -set count functions totalFunctions; -set reusable functions; // This statement makes both the array of pointers and the pointers in the array reusable. only the second one is correct however this shouldn't be a problem with vanilla fastfiles. - -// StaticDvarList -set count StaticDvarList::staticDvars numStaticDvars; - -// StaticDvar -use StaticDvar; -set condition dvar never; -set string dvarName; - -// StringList -use StringList; -set count strings totalStrings; -set string strings; - -// ========================================= -// FxEffectDef -// ========================================= -use FxEffectDef; -set string name; -set name name; -set count elemDefs elemDefCountEmission + elemDefCountLooping + elemDefCountOneShot; - -// FxElemDef -use FxElemDef; -set count velSamples velIntervalCount + 1; -set count visSamples visStateIntervalCount + 1; - -// FxElemDefVisuals -use FxElemDefVisuals; -set condition markArray FxElemDef::elemType == FX_ELEM_TYPE_DECAL; -set count markArray FxElemDef::visualCount; -set condition array FxElemDef::visualCount > 1; -set count array FxElemDef::visualCount; - -// FxElemVisuals -use FxElemVisuals; -set condition anonymous never; -set condition model FxElemDef::elemType == FX_ELEM_TYPE_MODEL; -set condition effectDef FxElemDef::elemType == FX_ELEM_TYPE_RUNNER; -set condition soundName FxElemDef::elemType == FX_ELEM_TYPE_SOUND; -set string soundName; -set condition material FxElemDef::elemType == FX_ELEM_TYPE_SPRITE_BILLBOARD -|| FxElemDef::elemType == FX_ELEM_TYPE_SPRITE_ORIENTED -|| FxElemDef::elemType == FX_ELEM_TYPE_TAIL -|| FxElemDef::elemType == FX_ELEM_TYPE_TRAIL -|| FxElemDef::elemType == FX_ELEM_TYPE_CLOUD -|| FxElemDef::elemType == FX_ELEM_TYPE_SPARK_CLOUD -|| FxElemDef::elemType == FX_ELEM_TYPE_SPARK_FOUNTAIN; - -// FxEffectDefRef -use FxEffectDefRef; -set condition handle never; -set string name; - -// FxElemExtendedDefPtr -use FxElemExtendedDefPtr; -set condition trailDef FxElemDef::elemType == FX_ELEM_TYPE_TRAIL; -set condition sparkFountainDef FxElemDef::elemType == FX_ELEM_TYPE_SPARK_FOUNTAIN; - -// FxTrailDef -use FxTrailDef; -set count verts vertCount; -set count inds indCount; - -// ========================================= -// FxImpactTable -// ========================================= -use FxImpactTable; -set string name; -set name name; -set count table 15; - -// ========================================= -// GfxLightDef -// ========================================= -use GfxLightDef; -set string name; -set name name; - -// ========================================= -// Font_s -// ========================================= -use Font_s; -set string fontName; -set name fontName; -set reusable glyphs; -set count glyphs glyphCount; - -// ========================================= -// RawFile -// ========================================= -use RawFile; -set string name; -set name name; -set condition data::compressedBuffer compressedLen > 0; -set count data::compressedBuffer compressedLen; -set count data::buffer len + 1; - -// ========================================= -// StringTable -// ========================================= -use StringTable; -set string name; -set name name; -set count values columnCount * rowCount; - -// StringTableCell -set string StringTableCell::string; - -// ========================================= -// LeaderboardDef -// ========================================= -use LeaderboardDef; -set string name; -set name name; -set count columns columnCount; - -// LbColumnDef -use LbColumnDef; -set string name; -set string statName; - -// ========================================= -// StructuredDataDefSet -// ========================================= -use StructuredDataDefSet; -set string name; -set name name; -set count defs defCount; - -// StructuredDataDef -use StructuredDataDef; -set count enums enumCount; -set count structs structCount; -set count indexedArrays indexedArrayCount; -set count enumedArrays enumedArrayCount; - -// StructuredDataEnum -set count StructuredDataEnum::entries entryCount; - -// StructuredDataEnumEntry -set string StructuredDataEnumEntry::string; - -// StructuredDataStruct -set count StructuredDataStruct::properties propertyCount; - -// StructuredDataStructProperty -set string StructuredDataStructProperty::name; - -// ========================================= -// TracerDef -// ========================================= -use TracerDef; -set string name; -set name name; - -// ========================================= -// VehicleDef -// ========================================= -use VehicleDef; -set string name; -set name name; -set string useHintString; -set string turretWeaponName; -set scriptstring trophyTags; -set string surfaceSndPrefix; - -// VehiclePhysDef -use VehiclePhysDef; -set string physPresetName; -set string accelGraphName; - -// ========================================= -// AddonMapEnts -// ========================================= -use AddonMapEnts; -set string name; -set name name; -set count entityString numEntityChars; +#include "XAssets/PhysPreset.txt" +#include "XAssets/PhysCollmap.txt" +#include "XAssets/XAnimParts.txt" +#include "XAssets/XModel.txt" +#include "XAssets/Material.txt" +#include "XAssets/MaterialTechniqueSet.txt" +#include "XAssets/MaterialVertexDeclaration.txt" +#include "XAssets/MaterialVertexShader.txt" +#include "XAssets/MaterialPixelShader.txt" +#include "XAssets/GfxImage.txt" +#include "XAssets/snd_alias_list_t.txt" +#include "XAssets/SndCurve.txt" +#include "XAssets/LoadedSound.txt" +#include "XAssets/clipMap_t.txt" +#include "XAssets/ComWorld.txt" +#include "XAssets/GameWorldSp.txt" +#include "XAssets/GameWorldMp.txt" +#include "XAssets/MapEnts.txt" +#include "XAssets/FxWorld.txt" +#include "XAssets/GfxWorld.txt" +#include "XAssets/LocalizeEntry.txt" +#include "XAssets/WeaponCompleteDef.txt" +#include "XAssets/MenuList.txt" +#include "XAssets/menuDef_t.txt" +#include "XAssets/FxEffectDef.txt" +#include "XAssets/FxImpactTable.txt" +#include "XAssets/GfxLightDef.txt" +#include "XAssets/Font_s.txt" +#include "XAssets/RawFile.txt" +#include "XAssets/StringTable.txt" +#include "XAssets/LeaderboardDef.txt" +#include "XAssets/StructuredDataDefSet.txt" +#include "XAssets/TracerDef.txt" +#include "XAssets/VehicleDef.txt" +#include "XAssets/AddonMapEnts.txt" // EOF \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/AddonMapEnts.txt b/src/ZoneCode/Game/IW4/XAssets/AddonMapEnts.txt new file mode 100644 index 00000000..e2f03d89 --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/AddonMapEnts.txt @@ -0,0 +1,7 @@ +// ========================================= +// AddonMapEnts +// ========================================= +use AddonMapEnts; +set string name; +set name name; +set count entityString numEntityChars; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/ComWorld.txt b/src/ZoneCode/Game/IW4/XAssets/ComWorld.txt new file mode 100644 index 00000000..494f2208 --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/ComWorld.txt @@ -0,0 +1,10 @@ +// ========================================= +// ComWorld +// ========================================= +use ComWorld; +set string name; +set name name; +set count primaryLights primaryLightCount; + +// ComPrimaryLight +set string ComPrimaryLight::defName; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/Font_s.txt b/src/ZoneCode/Game/IW4/XAssets/Font_s.txt new file mode 100644 index 00000000..478248b3 --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/Font_s.txt @@ -0,0 +1,8 @@ +// ========================================= +// Font_s +// ========================================= +use Font_s; +set string fontName; +set name fontName; +set reusable glyphs; +set count glyphs glyphCount; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/FxEffectDef.txt b/src/ZoneCode/Game/IW4/XAssets/FxEffectDef.txt new file mode 100644 index 00000000..ac839940 --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/FxEffectDef.txt @@ -0,0 +1,49 @@ +// ========================================= +// FxEffectDef +// ========================================= +use FxEffectDef; +set string name; +set name name; +set count elemDefs elemDefCountEmission + elemDefCountLooping + elemDefCountOneShot; + +// FxElemDef +use FxElemDef; +set count velSamples velIntervalCount + 1; +set count visSamples visStateIntervalCount + 1; + +// FxElemDefVisuals +use FxElemDefVisuals; +set condition markArray FxElemDef::elemType == FX_ELEM_TYPE_DECAL; +set count markArray FxElemDef::visualCount; +set condition array FxElemDef::visualCount > 1; +set count array FxElemDef::visualCount; + +// FxElemVisuals +use FxElemVisuals; +set condition anonymous never; +set condition model FxElemDef::elemType == FX_ELEM_TYPE_MODEL; +set condition effectDef FxElemDef::elemType == FX_ELEM_TYPE_RUNNER; +set condition soundName FxElemDef::elemType == FX_ELEM_TYPE_SOUND; +set string soundName; +set condition material FxElemDef::elemType == FX_ELEM_TYPE_SPRITE_BILLBOARD +|| FxElemDef::elemType == FX_ELEM_TYPE_SPRITE_ORIENTED +|| FxElemDef::elemType == FX_ELEM_TYPE_TAIL +|| FxElemDef::elemType == FX_ELEM_TYPE_TRAIL +|| FxElemDef::elemType == FX_ELEM_TYPE_CLOUD +|| FxElemDef::elemType == FX_ELEM_TYPE_SPARK_CLOUD +|| FxElemDef::elemType == FX_ELEM_TYPE_SPARK_FOUNTAIN; + +// FxEffectDefRef +use FxEffectDefRef; +set condition handle never; +set string name; + +// FxElemExtendedDefPtr +use FxElemExtendedDefPtr; +set condition trailDef FxElemDef::elemType == FX_ELEM_TYPE_TRAIL; +set condition sparkFountainDef FxElemDef::elemType == FX_ELEM_TYPE_SPARK_FOUNTAIN; + +// FxTrailDef +use FxTrailDef; +set count verts vertCount; +set count inds indCount; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/FxImpactTable.txt b/src/ZoneCode/Game/IW4/XAssets/FxImpactTable.txt new file mode 100644 index 00000000..8b28737e --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/FxImpactTable.txt @@ -0,0 +1,7 @@ +// ========================================= +// FxImpactTable +// ========================================= +use FxImpactTable; +set string name; +set name name; +set count table 15; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/FxWorld.txt b/src/ZoneCode/Game/IW4/XAssets/FxWorld.txt new file mode 100644 index 00000000..4b50ef27 --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/FxWorld.txt @@ -0,0 +1,37 @@ +// ========================================= +// FxWorld +// ========================================= +use FxWorld; +set string name; +set name name; + +// FxGlassSystem +use FxGlassSystem; +set count defs defCount; +set block piecePlaces XFILE_BLOCK_RUNTIME; +set count piecePlaces pieceLimit; +set block pieceStates XFILE_BLOCK_RUNTIME; +set count pieceStates pieceLimit; +set block pieceDynamics XFILE_BLOCK_RUNTIME; +set count pieceDynamics pieceLimit; +set block geoData XFILE_BLOCK_RUNTIME; +set count geoData geoDataLimit; +set block isInUse XFILE_BLOCK_RUNTIME; +set count isInUse pieceWordCount; +set block cellBits XFILE_BLOCK_RUNTIME; +set count cellBits pieceWordCount * cellCount; +set block visData XFILE_BLOCK_RUNTIME; +set count visData (pieceLimit + 15) / 16 * 16; +set block linkOrg XFILE_BLOCK_RUNTIME; +set count linkOrg pieceLimit; +set block halfThickness XFILE_BLOCK_RUNTIME; +set count halfThickness (pieceLimit + 3) / 4 * 4; +set count lightingHandles initPieceCount; +set count initPieceStates initPieceCount; +set count initGeoData initGeoDataCount; + +// FxGlassDef +reorder FxGlassDef: + physPreset + material + materialShattered; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/GameWorldMp.txt b/src/ZoneCode/Game/IW4/XAssets/GameWorldMp.txt new file mode 100644 index 00000000..de8e45ee --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/GameWorldMp.txt @@ -0,0 +1,6 @@ +// ========================================= +// GameWorldMp +// ========================================= +use GameWorldMp; +set string name; +set name name; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/GameWorldSp.txt b/src/ZoneCode/Game/IW4/XAssets/GameWorldSp.txt new file mode 100644 index 00000000..1cd3f011 --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/GameWorldSp.txt @@ -0,0 +1,66 @@ +// ========================================= +// GameWorldSp +// ========================================= +use GameWorldSp; +set string name; +set name name; + +// PathData +use PathData; +set count nodes nodeCount; +set block basenodes XFILE_BLOCK_RUNTIME; +set count basenodes nodeCount; +set count chainNodeForNode nodeCount; +set count nodeForChainNode nodeCount; +set count pathVis visBytes; +set count nodeTree nodeTreeCount; + +// pathnode_t +set condition pathnode_t::transient never; + +// pathnode_constant_t +use pathnode_constant_t; +set scriptstring targetname; +set scriptstring script_linkName; +set scriptstring script_noteworthy; +set scriptstring target; +set scriptstring animscript; +set count Links totalLinkCount; + +// pathnode_dynamic_t +set condition pathnode_dynamic_t::pOwner never; + +// pathnode_tree_t +use pathnode_tree_t; +set condition u::child axis >= 0; +set reusable u::child; + +// pathnode_tree_nodes_t +set count pathnode_tree_nodes_t::nodes nodeCount; + +// VehicleTrack +use VehicleTrack; +set reusable segments; +set count segments segmentCount; + +// VehicleTrackSegment +use VehicleTrackSegment; +set string targetName; +set count sectors sectorCount; +set reusable nextBranches; +set count nextBranches nextBranchesCount; +set reusable prevBranches; +set count prevBranches prevBranchesCount; + +// VehicleTrackSector +set count VehicleTrackSector::obstacles obstacleCount; + +// G_GlassData +use G_GlassData; +set count glassPieces pieceCount; +set count glassNames glassNameCount; + +// G_GlassName +use G_GlassName; +set string nameStr; +set count pieceIndices pieceCount; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/GfxImage.txt b/src/ZoneCode/Game/IW4/XAssets/GfxImage.txt new file mode 100644 index 00000000..474674cb --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/GfxImage.txt @@ -0,0 +1,21 @@ +// ========================================= +// GfxImage +// ========================================= +use GfxImage; +set action OnImageLoaded(GfxImage); +set string name; +set name name; +reorder: + name + texture; + +// GfxTexture +use GfxTexture; +set reusable loadDef; +set block loadDef XFILE_BLOCK_TEMP; +set condition texture never; + +// GfxImageLoadDef +use GfxImageLoadDef; +set action LoadImageData(GfxImageLoadDef, GfxImage); +set arraysize data resourceSize; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/GfxLightDef.txt b/src/ZoneCode/Game/IW4/XAssets/GfxLightDef.txt new file mode 100644 index 00000000..a587320e --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/GfxLightDef.txt @@ -0,0 +1,6 @@ +// ========================================= +// GfxLightDef +// ========================================= +use GfxLightDef; +set string name; +set name name; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/GfxWorld.txt b/src/ZoneCode/Game/IW4/XAssets/GfxWorld.txt new file mode 100644 index 00000000..473b1db5 --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/GfxWorld.txt @@ -0,0 +1,127 @@ +// ========================================= +// GfxWorld +// ========================================= +use GfxWorld; +set string name; +set name name; +set string baseName; +set count skies skyCount; +set count aabbTreeCounts dpvsPlanes::cellCount; +set count aabbTrees dpvsPlanes::cellCount; +set count cells dpvsPlanes::cellCount; +set count models modelCount; +set count materialMemory materialMemoryCount; +set block cellCasterBits XFILE_BLOCK_RUNTIME; +set count cellCasterBits dpvsPlanes::cellCount * ((dpvsPlanes::cellCount + 31) / 32); +set block cellHasSunLitSurfsBits XFILE_BLOCK_RUNTIME; +set count cellHasSunLitSurfsBits (dpvsPlanes::cellCount + 31) / 32; +set block sceneDynModel XFILE_BLOCK_RUNTIME; +set count sceneDynModel dpvsDyn::dynEntClientCount[0]; +set block sceneDynBrush XFILE_BLOCK_RUNTIME; +set count sceneDynBrush dpvsDyn::dynEntClientCount[1]; +set block primaryLightEntityShadowVis XFILE_BLOCK_RUNTIME; +set count primaryLightEntityShadowVis (primaryLightCount - lastSunPrimaryLightIndex - 1) * 0x2000; +set block primaryLightDynEntShadowVis XFILE_BLOCK_RUNTIME; +set count primaryLightDynEntShadowVis[0] dpvsDyn::dynEntClientCount[0] * (primaryLightCount - lastSunPrimaryLightIndex - 1); +set count primaryLightDynEntShadowVis[1] dpvsDyn::dynEntClientCount[1] * (primaryLightCount - lastSunPrimaryLightIndex - 1); +set block nonSunPrimaryLightForModelDynEnt XFILE_BLOCK_RUNTIME; +set count nonSunPrimaryLightForModelDynEnt dpvsDyn::dynEntClientCount[0]; +set count shadowGeom primaryLightCount; +set count lightRegion primaryLightCount; +set count heroOnlyLights heroOnlyLightCount; + +// GfxSky +set count GfxSky::skyStartSurfs skySurfCount; + +// GfxWorldDpvsPlanes +use GfxWorldDpvsPlanes; +set reusable planes; +set count planes GfxWorld::planeCount; +set count nodes GfxWorld::nodeCount; +set block sceneEntCellBits XFILE_BLOCK_RUNTIME; +set count sceneEntCellBits cellCount * 0x200; + +// GfxCellTree +// Extremly dirty hack caused by IW doing an extremly dirty hack in their code as well. +// No idea why they decided to separate the count from the pointer that uses the count. +// Thank you Treyarch for doing better in your games at least. +set count GfxCellTree::aabbTree GfxWorld::aabbTreeCounts[GfxCellTree - GfxWorld::aabbTrees]; + +// GfxAabbTree +use GfxAabbTree; +set reusable smodelIndexes; +set count smodelIndexes smodelIndexCount; + +// GfxCell +use GfxCell; +set count portals portalCount; +set count reflectionProbes reflectionProbeCount; + +// GfxPortal +use GfxPortal; +set condition writable never; +set count vertices vertexCount; + +// GfxWorldDraw +use GfxWorldDraw; +set count reflectionProbes reflectionProbeCount; +set count reflectionProbeOrigins reflectionProbeCount; +set block reflectionProbeTextures XFILE_BLOCK_RUNTIME; +set count reflectionProbeTextures reflectionProbeCount; +set count lightmaps lightmapCount; +set block lightmapPrimaryTextures XFILE_BLOCK_RUNTIME; +set count lightmapPrimaryTextures lightmapCount; +set block lightmapSecondaryTextures XFILE_BLOCK_RUNTIME; +set count lightmapSecondaryTextures lightmapCount; +set count vd::vertices vertexCount; +set condition vd::worldVb never; +set count vld::data vertexLayerDataSize; +set condition vld::layerVb never; +set count indices indexCount; + +// GfxLightGrid +use GfxLightGrid; +set count rowDataStart maxs[rowAxis] - mins[rowAxis] + 1; +set count rawRowData rawRowDataSize; +set count entries entryCount; +set count colors colorCount; + +// GfxShadowGeometry +use GfxShadowGeometry; +set count sortedSurfIndex surfaceCount; +set count smodelIndex smodelCount; + +// GfxLightRegion +set count GfxLightRegion::hulls hullCount; + +// GfxLightRegionHull +set count GfxLightRegionHull::axis axisCount; + +// GfxWorldDpvsStatic +use GfxWorldDpvsStatic; +set block smodelVisData XFILE_BLOCK_RUNTIME; +set count smodelVisData smodelCount; +set block surfaceVisData XFILE_BLOCK_RUNTIME; +set count surfaceVisData staticSurfaceCount; +set count sortedSurfIndex staticSurfaceCount + staticSurfaceCountNoDecal; +set count smodelInsts smodelCount; +set count surfaces GfxWorld::surfaceCount; +set count surfacesBounds GfxWorld::surfaceCount; +set count smodelDrawInsts smodelCount; +set block surfaceMaterials XFILE_BLOCK_RUNTIME; +set count surfaceMaterials GfxWorld::surfaceCount; +set block surfaceCastsSunShadow XFILE_BLOCK_RUNTIME; +set count surfaceCastsSunShadow surfaceVisDataCount; + +// GfxWorldDpvsDynamic +use GfxWorldDpvsDynamic; +set block dynEntCellBits XFILE_BLOCK_RUNTIME; +set count dynEntCellBits[0] dynEntClientWordCount[0] * GfxWorld::dpvsPlanes::cellCount; +set count dynEntCellBits[1] dynEntClientWordCount[1] * GfxWorld::dpvsPlanes::cellCount; +set block dynEntVisData XFILE_BLOCK_RUNTIME; +set count dynEntVisData[0][0] 32 * dynEntClientWordCount[0]; +set count dynEntVisData[1][0] 32 * dynEntClientWordCount[1]; +set count dynEntVisData[0][1] 32 * dynEntClientWordCount[0]; +set count dynEntVisData[1][1] 32 * dynEntClientWordCount[1]; +set count dynEntVisData[0][2] 32 * dynEntClientWordCount[0]; +set count dynEntVisData[1][2] 32 * dynEntClientWordCount[1]; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/LeaderboardDef.txt b/src/ZoneCode/Game/IW4/XAssets/LeaderboardDef.txt new file mode 100644 index 00000000..8398c04f --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/LeaderboardDef.txt @@ -0,0 +1,12 @@ +// ========================================= +// LeaderboardDef +// ========================================= +use LeaderboardDef; +set string name; +set name name; +set count columns columnCount; + +// LbColumnDef +use LbColumnDef; +set string name; +set string statName; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/LoadedSound.txt b/src/ZoneCode/Game/IW4/XAssets/LoadedSound.txt new file mode 100644 index 00000000..fa0a092f --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/LoadedSound.txt @@ -0,0 +1,15 @@ +// ========================================= +// LoadedSound +// ========================================= +use LoadedSound; +set string name; +set name name; + +// MssSound +use MssSound; +set block data XFILE_BLOCK_TEMP; +set reusable data; +set count data info::data_len; +set condition info::data_ptr never; +set condition info::initial_ptr never; +set action SetSoundData(MssSound); \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/LocalizeEntry.txt b/src/ZoneCode/Game/IW4/XAssets/LocalizeEntry.txt new file mode 100644 index 00000000..98fb1f89 --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/LocalizeEntry.txt @@ -0,0 +1,7 @@ +// ========================================= +// LocalizeEntry +// ========================================= +use LocalizeEntry; +set string name; +set name name; +set string value; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/MapEnts.txt b/src/ZoneCode/Game/IW4/XAssets/MapEnts.txt new file mode 100644 index 00000000..03dd896c --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/MapEnts.txt @@ -0,0 +1,17 @@ +// ========================================= +// MapEnts +// ========================================= +use MapEnts; +set string name; +set name name; +set count entityString numEntityChars; +set count stages stageCount; + +// MapTriggers +use MapTriggers; +set count models count; +set count hulls hullCount; +set count slabs slabCount; + +// Stage +set string Stage::name; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/Material.txt b/src/ZoneCode/Game/IW4/XAssets/Material.txt new file mode 100644 index 00000000..adf46797 --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/Material.txt @@ -0,0 +1,22 @@ +// ========================================= +// Material +// ========================================= +use Material; +set string info::name; +set name info::name; +set reusable textureTable; +set count textureTable textureCount; +set reusable constantTable; +set count constantTable constantCount; +set reusable stateBitsTable; +set count stateBitsTable stateBitsCount; + +// MaterialTextureDef +use MaterialTextureDef; +set condition u::water semantic == TS_WATER_MAP; +set reusable u::water; + +// water_t +use water_t; +set count H0 N * M; +set count wTerm N * M; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/MaterialPixelShader.txt b/src/ZoneCode/Game/IW4/XAssets/MaterialPixelShader.txt new file mode 100644 index 00000000..bb551119 --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/MaterialPixelShader.txt @@ -0,0 +1,12 @@ +// ========================================= +// MaterialPixelShader +// ========================================= +use MaterialPixelShader; +set string name; +set name name; + +// GfxPixelShaderLoadDef +set count GfxPixelShaderLoadDef::program programSize; + +// MaterialPixelShaderProgram +set condition MaterialPixelShaderProgram::ps never; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/MaterialTechniqueSet.txt b/src/ZoneCode/Game/IW4/XAssets/MaterialTechniqueSet.txt new file mode 100644 index 00000000..4b34b49b --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/MaterialTechniqueSet.txt @@ -0,0 +1,26 @@ +// ========================================= +// MaterialTechniqueSet +// ========================================= +use MaterialTechniqueSet; +set string name; +set name name; +set condition remappedTechniqueSet never; +set reusable techniques; + +// MaterialTechnique +use MaterialTechnique; +set string name; +set arraysize passArray passCount; +reorder: + passArray + name; + +// MaterialPass +use MaterialPass; +set count args perPrimArgCount + perObjArgCount + stableArgCount; + +// MaterialShaderArgument +use MaterialShaderArgument; +set condition u::literalConst type == MTL_ARG_LITERAL_VERTEX_CONST +|| type == MTL_ARG_LITERAL_PIXEL_CONST; +set reusable u::literalConst; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/MaterialVertexDeclaration.txt b/src/ZoneCode/Game/IW4/XAssets/MaterialVertexDeclaration.txt new file mode 100644 index 00000000..47f1addc --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/MaterialVertexDeclaration.txt @@ -0,0 +1,9 @@ +// ========================================= +// MaterialVertexDeclaration +// ========================================= +use MaterialVertexDeclaration; +set string name; +set name name; + +// MaterialVertexStreamRouting +set condition MaterialVertexStreamRouting::decl never; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/MaterialVertexShader.txt b/src/ZoneCode/Game/IW4/XAssets/MaterialVertexShader.txt new file mode 100644 index 00000000..37c2a44d --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/MaterialVertexShader.txt @@ -0,0 +1,12 @@ +// ========================================= +// MaterialVertexShader +// ========================================= +use MaterialVertexShader; +set string name; +set name name; + +// GfxVertexShaderLoadDef +set count GfxVertexShaderLoadDef::program programSize; + +// MaterialVertexShaderProgram +set condition MaterialVertexShaderProgram::vs never; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/MenuList.txt b/src/ZoneCode/Game/IW4/XAssets/MenuList.txt new file mode 100644 index 00000000..bcc2bb31 --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/MenuList.txt @@ -0,0 +1,7 @@ +// ========================================= +// MenuList +// ========================================= +use MenuList; +set string name; +set name name; +set count menus menuCount; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/PhysCollmap.txt b/src/ZoneCode/Game/IW4/XAssets/PhysCollmap.txt new file mode 100644 index 00000000..68c66746 --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/PhysCollmap.txt @@ -0,0 +1,26 @@ +// ========================================= +// PhysCollmap +// ========================================= +use PhysCollmap; +set string name; +set name name; +set count geoms count; + +// PhysGeomInfo +use PhysGeomInfo; +set count brushWrapper 1; + +// BrushWrapper +use BrushWrapper; +set reusable planes; +set count planes brush::numsides; + +// cbrushWrapper_t +use cbrushWrapper_t; +set count sides numsides; +set count baseAdjacentSide BrushWrapper::totalEdgeCount; + +// cbrushside_t +use cbrushside_t; +set reusable plane; +set count plane 1; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/PhysPreset.txt b/src/ZoneCode/Game/IW4/XAssets/PhysPreset.txt new file mode 100644 index 00000000..7478bc2a --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/PhysPreset.txt @@ -0,0 +1,7 @@ +// ========================================= +// PhysPreset +// ========================================= +use PhysPreset; +set string name; +set name name; +set string sndAliasPrefix; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/RawFile.txt b/src/ZoneCode/Game/IW4/XAssets/RawFile.txt new file mode 100644 index 00000000..b9b93b93 --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/RawFile.txt @@ -0,0 +1,9 @@ +// ========================================= +// RawFile +// ========================================= +use RawFile; +set string name; +set name name; +set condition data::compressedBuffer compressedLen > 0; +set count data::compressedBuffer compressedLen; +set count data::buffer len + 1; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/SndCurve.txt b/src/ZoneCode/Game/IW4/XAssets/SndCurve.txt new file mode 100644 index 00000000..2281b2d0 --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/SndCurve.txt @@ -0,0 +1,6 @@ +// ========================================= +// SndCurve +// ========================================= +use SndCurve; +set string filename; +set name filename; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/StringTable.txt b/src/ZoneCode/Game/IW4/XAssets/StringTable.txt new file mode 100644 index 00000000..d3a3141d --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/StringTable.txt @@ -0,0 +1,10 @@ +// ========================================= +// StringTable +// ========================================= +use StringTable; +set string name; +set name name; +set count values columnCount * rowCount; + +// StringTableCell +set string StringTableCell::string; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/StructuredDataDefSet.txt b/src/ZoneCode/Game/IW4/XAssets/StructuredDataDefSet.txt new file mode 100644 index 00000000..b7e95bad --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/StructuredDataDefSet.txt @@ -0,0 +1,26 @@ +// ========================================= +// StructuredDataDefSet +// ========================================= +use StructuredDataDefSet; +set string name; +set name name; +set count defs defCount; + +// StructuredDataDef +use StructuredDataDef; +set count enums enumCount; +set count structs structCount; +set count indexedArrays indexedArrayCount; +set count enumedArrays enumedArrayCount; + +// StructuredDataEnum +set count StructuredDataEnum::entries entryCount; + +// StructuredDataEnumEntry +set string StructuredDataEnumEntry::string; + +// StructuredDataStruct +set count StructuredDataStruct::properties propertyCount; + +// StructuredDataStructProperty +set string StructuredDataStructProperty::name; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/TracerDef.txt b/src/ZoneCode/Game/IW4/XAssets/TracerDef.txt new file mode 100644 index 00000000..63ff7667 --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/TracerDef.txt @@ -0,0 +1,6 @@ +// ========================================= +// TracerDef +// ========================================= +use TracerDef; +set string name; +set name name; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/VehicleDef.txt b/src/ZoneCode/Game/IW4/XAssets/VehicleDef.txt new file mode 100644 index 00000000..2e3be62d --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/VehicleDef.txt @@ -0,0 +1,15 @@ +// ========================================= +// VehicleDef +// ========================================= +use VehicleDef; +set string name; +set name name; +set string useHintString; +set string turretWeaponName; +set scriptstring trophyTags; +set string surfaceSndPrefix; + +// VehiclePhysDef +use VehiclePhysDef; +set string physPresetName; +set string accelGraphName; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/WeaponCompleteDef.txt b/src/ZoneCode/Game/IW4/XAssets/WeaponCompleteDef.txt new file mode 100644 index 00000000..e3234598 --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/WeaponCompleteDef.txt @@ -0,0 +1,83 @@ +// ========================================= +// WeaponCompleteDef +// ========================================= +use WeaponCompleteDef; +set string szInternalName; +set name szInternalName; +set reusable weapDef; +set string szDisplayName; +set reusable hideTags; +set scriptstring hideTags; +set count hideTags 32; +set string szXAnims; +set reusable szXAnims; +set count szXAnims 37; +set string szAltWeaponName; +set reusable accuracyGraphKnots; +set count accuracyGraphKnots[0] accuracyGraphKnotCount[0]; +set count accuracyGraphKnots[1] accuracyGraphKnotCount[1]; + +// WeaponDef +use WeaponDef; +set string szOverlayName; +set reusable gunXModel; +set count gunXModel 16; +set reusable szXAnimsRightHanded; +set string szXAnimsRightHanded; +set count szXAnimsRightHanded 37; +set reusable szXAnimsLeftHanded; +set string szXAnimsLeftHanded; +set count szXAnimsLeftHanded 37; +set string szModeName; +set reusable notetrackSoundMapKeys; +set scriptstring notetrackSoundMapKeys; +set count notetrackSoundMapKeys 16; +set reusable notetrackSoundMapValues; +set scriptstring notetrackSoundMapValues; +set count notetrackSoundMapValues 16; +set reusable notetrackRumbleMapKeys; +set scriptstring notetrackRumbleMapKeys; +set count notetrackRumbleMapKeys 16; +set reusable notetrackRumbleMapValues; +set scriptstring notetrackRumbleMapValues; +set count notetrackRumbleMapValues 16; +set reusable bounceSound; +set count bounceSound 31; +set reusable worldModel; +set count worldModel 16; +set string szAmmoName; +set string szClipName; +set string szSharedAmmoCapName; +set reusable parallelBounce; +set count parallelBounce 31; +set reusable perpendicularBounce; +set count perpendicularBounce 31; +set string accuracyGraphName0; +set string accuracyGraphName1; +set reusable originalAccuracyGraphKnots0; +set reusable originalAccuracyGraphKnots1; +set count originalAccuracyGraphKnots0 WeaponCompleteDef::accuracyGraphKnotCount[0]; +set count originalAccuracyGraphKnots1 WeaponCompleteDef::accuracyGraphKnotCount[1]; +set string szUseHintString; +set string dropHintString; +set string szScript; +set reusable locationDamageMultipliers; +set count locationDamageMultipliers 20; +set string fireRumble; +set string meleeImpactRumble; +set string turretBarrelSpinRumble; +reorder: + ... + accuracyGraphName0 + originalAccuracyGraphKnots0 + accuracyGraphName1 + originalAccuracyGraphKnots1; + +// SndAliasCustom +use SndAliasCustom; +set count name 1; +set reusable name; +set condition sound never; + +// snd_alias_list_name +set string snd_alias_list_name::soundName; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/XAnimParts.txt b/src/ZoneCode/Game/IW4/XAssets/XAnimParts.txt new file mode 100644 index 00000000..b519c6d1 --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/XAnimParts.txt @@ -0,0 +1,82 @@ +// ========================================= +// XAnimParts +// ========================================= +use XAnimParts; +set string name; +set name name; +set scriptstring names; +set count names boneCount[9]; +set count notify notifyCount; +set count deltaPart 1; +set count dataByte dataByteCount; +set count dataShort dataShortCount; +set count dataInt dataIntCount; +set count randomDataShort randomDataShortCount; +set count randomDataByte randomDataByteCount; +set count randomDataInt randomDataIntCount; +set count indices::_1 indexCount; +set count indices::_2 indexCount; +set condition indices::_1 numframes < 256; +set condition indices::data never; +reorder: + name + names + notify + deltaPart + dataByte + dataShort + dataInt + randomDataShort + randomDataByte + randomDataInt + indices; + +// XAnimNotifyInfo +set scriptstring XAnimNotifyInfo::name; + +// XAnimDeltaPart +use XAnimDeltaPart; +set count trans 1; +set count quat2 1; +set count quat 1; + +// XAnimPartTrans +use XAnimPartTrans; +set condition u::frames size > 0; +set condition u::frames::indices::_1 XAnimParts::numframes < 256; +set arraysize u::frames::indices::_1 size + 1; +set arraysize u::frames::indices::_2 size + 1; +set condition u::frames::frames::_1 smallTrans; +set count u::frames::frames::_1 size + 1; +set count u::frames::frames::_2 size + 1; + +// XAnimPartTransFrames +reorder XAnimPartTransFrames: + indices + frames; + +// XAnimDeltaPartQuat2 +use XAnimDeltaPartQuat2; +set condition u::frames size > 0; +set condition u::frames::indices::_1 XAnimParts::numframes < 256; +set arraysize u::frames::indices::_1 size + 1; +set arraysize u::frames::indices::_2 size + 1; +set count u::frames::frames size + 1; + +// XAnimDeltaPartQuatDataFrames2 +reorder XAnimDeltaPartQuatDataFrames2: + indices + frames; + +// XAnimDeltaPartQuat +use XAnimDeltaPartQuat; +set condition u::frames size > 0; +set condition u::frames::indices::_1 XAnimParts::numframes < 256; +set arraysize u::frames::indices::_1 size + 1; +set arraysize u::frames::indices::_2 size + 1; +set count u::frames::frames size + 1; + +// XAnimDeltaPartQuatDataFrames +reorder XAnimDeltaPartQuatDataFrames: + indices + frames; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/XModel.txt b/src/ZoneCode/Game/IW4/XAssets/XModel.txt new file mode 100644 index 00000000..4606f77c --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/XModel.txt @@ -0,0 +1,70 @@ +// ========================================= +// XModel +// ========================================= +use XModel; +set string name; +set name name; +set scriptstring boneNames; +set reusable boneNames; +set count boneNames numBones; +set reusable parentList; +set count parentList numBones - numRootBones; +set reusable quats; +set count quats numBones - numRootBones; +set reusable trans; +set count trans numBones - numRootBones; +set reusable partClassification; +set count partClassification numBones; +set reusable baseMat; +set count baseMat numBones; +set count materialHandles numsurfs; +set count collSurfs numCollSurfs; +set count boneInfo numBones; + +// XModelLodInfo +use XModelLodInfo; +set block modelSurfs XFILE_BLOCK_TEMP; +set reusable modelSurfs; +set condition surfs never; + +// XModelSurfs +use XModelSurfs; +set block XFILE_BLOCK_VIRTUAL; +set string name; +set count surfs XModelLodInfo::numsurfs; // No this is not a mistake. This is how the game does it. + +// XSurface +use XSurface; +set reusable verts0; +set block verts0 XFILE_BLOCK_VERTEX; +set count verts0 vertCount; +set reusable vertList; +set count vertList vertListCount; +set reusable triIndices; +set block triIndices XFILE_BLOCK_INDEX; +set count triIndices triCount; +reorder: + zoneHandle + vertInfo + verts0 + vertList + triIndices; + +// XSurfaceVertexInfo +use XSurfaceVertexInfo; +set reusable vertsBlend; +set count vertsBlend vertCount[0] + + 3 * vertCount[1] + + 5 * vertCount[2] + + 7 * vertCount[3]; + +// XRigidVertList +set reusable XRigidVertList::collisionTree; + +// XSurfaceCollisionTree +use XSurfaceCollisionTree; +set count nodes nodeCount; +set count leafs leafCount; + +// XModelCollSurf_s +set count XModelCollSurf_s::collTris numCollTris; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/clipMap_t.txt b/src/ZoneCode/Game/IW4/XAssets/clipMap_t.txt new file mode 100644 index 00000000..349d39a3 --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/clipMap_t.txt @@ -0,0 +1,70 @@ +// ========================================= +// clipMap_t +// ========================================= +use clipMap_t; +set string name; +set name name; +set reusable planes; +set count planes planeCount; +set count staticModelList numStaticModels; +set count materials numMaterials; +set count brushsides numBrushSides; +set count brushEdges numBrushEdges; +set count nodes numNodes; +set count leafs numLeafs; +set count leafbrushNodes leafbrushNodesCount; +set count leafbrushes numLeafBrushes; +set count leafsurfaces numLeafSurfaces; +set count verts vertCount; +set count triIndices 3 * triCount; +set count triEdgeIsWalkable ((3 * triCount + 31) / 32) * 4; +set count borders borderCount; +set count partitions partitionCount; +set count aabbTrees aabbTreeCount; +set count cmodels numSubModels; +set count brushes numBrushes; +set count brushBounds numBrushes; +set count brushContents numBrushes; +set count smodelNodes smodelNodeCount; +set count dynEntDefList[0] dynEntCount[0]; +set count dynEntDefList[1] dynEntCount[1]; +set block dynEntPoseList XFILE_BLOCK_RUNTIME; +set count dynEntPoseList[0] dynEntCount[0]; +set count dynEntPoseList[1] dynEntCount[1]; +set block dynEntClientList XFILE_BLOCK_RUNTIME; +set count dynEntClientList[0] dynEntCount[0]; +set count dynEntClientList[1] dynEntCount[1]; +set block dynEntCollList XFILE_BLOCK_RUNTIME; +set count dynEntCollList[0] dynEntCount[0]; +set count dynEntCollList[1] dynEntCount[1]; +reorder: + ... + leafs + leafbrushes + leafbrushNodes; +reorder: + ... + brushContents + smodelNodes + mapEnts; + +// ClipMaterial +set string ClipMaterial::name; + +// cNode_t +set reusable cNode_t::plane; + +// cLeafBrushNode_s +use cLeafBrushNode_s; +set condition data::leaf leafBrushCount > 0; +set reusable data::leaf::brushes; +set count data::leaf::brushes leafBrushCount; + +// CollisionPartition +use CollisionPartition; +set reusable borders; + +// cbrush_t +use cbrush_t; +set reusable sides; +set reusable baseAdjacentSide; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/menuDef_t.txt b/src/ZoneCode/Game/IW4/XAssets/menuDef_t.txt new file mode 100644 index 00000000..c73f9abe --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/menuDef_t.txt @@ -0,0 +1,149 @@ +// ========================================= +// menuDef_t +// ========================================= +use menuDef_t; +set string window::name; +set name window::name; +set string font; +set reusable visibleExp; +set string allowedBinding; +set string soundName; +set reusable rectXExp; +set reusable rectYExp; +set reusable rectWExp; +set reusable rectHExp; +set reusable openSoundExp; +set reusable closeSoundExp; +set count items itemCount; +set reusable expressionData; +reorder: + expressionData + window + font + onOpen + onClose + onCloseRequest + onESC + onKey + visibleExp + allowedBinding + soundName + rectXExp + rectYExp + rectWExp + rectHExp + openSoundExp + closeSoundExp + items; + +// windowDef_t +use windowDef_t; +set string name; +set string group; + +// MenuEventHandlerSet +set count MenuEventHandlerSet::eventHandlers eventHandlerCount; + +// MenuEventHandler +use MenuEventHandler; +set string eventData::unconditionalScript; +set condition eventData::unconditionalScript eventType == EVENT_UNCONDITIONAL; +set condition eventData::conditionalScript eventType == EVENT_IF; +set condition eventData::elseScript eventType == EVENT_ELSE; +set condition eventData::setLocalVarData eventType == EVENT_SET_LOCAL_VAR_BOOL + || eventType == EVENT_SET_LOCAL_VAR_INT + || eventType == EVENT_SET_LOCAL_VAR_FLOAT + || eventType == EVENT_SET_LOCAL_VAR_STRING; + +// ConditionalScript +use ConditionalScript; +set reusable eventExpression; +reorder: + eventExpression + eventHandlerSet; + +// SetLocalVarData +use SetLocalVarData; +set string localVarName; +set reusable expression; + +// Statement_s +use Statement_s; +set count entries numEntries; +set reusable supportingData; +set condition lastResult never; + +// expressionEntry +set condition expressionEntry::data::operand type == EET_OPERAND; + +// Operand +use Operand; +set reusable internals::function; +set condition internals::intVal dataType == VAL_INT; +set condition internals::floatVal dataType == VAL_FLOAT; +set condition internals::stringVal dataType == VAL_STRING; +set condition internals::function dataType == VAL_FUNCTION; + +// ExpressionString +set string ExpressionString::string; + +// itemDef_s +use itemDef_s; +set string text; +set condition parent never; +set string dvar; +set string dvarTest; +set string enableDvar; +set string localVar; +set count floatExpressions floatExpressionCount; +set reusable visibleExp; +set reusable disabledExp; +set reusable textExp; +set reusable materialExp; + +// itemDefData_t +use itemDefData_t; +set string enumDvarName; +set condition data never; +set condition listBox itemDef_s::type == 6; +set condition editField itemDef_s::type == 0 + || itemDef_s::type == 4 + || itemDef_s::type == 9 + || itemDef_s::type == 10 + || itemDef_s::type == 11 + || itemDef_s::type == 14 + || itemDef_s::type == 16 + || itemDef_s::type == 17 + || itemDef_s::type == 18 + || itemDef_s::type == 22 + || itemDef_s::type == 23; +set condition multi itemDef_s::type == 12; +set condition enumDvarName itemDef_s::type == 13; +set condition ticker itemDef_s::type == 20; +set condition scroll itemDef_s::type == 21; + +// multiDef_s +use multiDef_s; +set string dvarList; +set string dvarStr; + +// ItemFloatExpression +set reusable ItemFloatExpression::expression; + +// UIFunctionList +use UIFunctionList; +set count functions totalFunctions; +set reusable functions; // This statement makes both the array of pointers and the pointers in the array reusable. only the second one is correct however this shouldn't be a problem with vanilla fastfiles. + +// StaticDvarList +set count StaticDvarList::staticDvars numStaticDvars; + +// StaticDvar +use StaticDvar; +set condition dvar never; +set string dvarName; + +// StringList +use StringList; +set count strings totalStrings; +set string strings; \ No newline at end of file diff --git a/src/ZoneCode/Game/IW4/XAssets/snd_alias_list_t.txt b/src/ZoneCode/Game/IW4/XAssets/snd_alias_list_t.txt new file mode 100644 index 00000000..459a9cf5 --- /dev/null +++ b/src/ZoneCode/Game/IW4/XAssets/snd_alias_list_t.txt @@ -0,0 +1,29 @@ +// ========================================= +// snd_alias_list_t +// ========================================= +use snd_alias_list_t; +set string aliasName; +set name aliasName; +set reusable head; +set count head count; + +// snd_alias_t +use snd_alias_t; +set string aliasName; +set string subtitle; +set string secondaryAliasName; +set string chainAliasName; +set string mixerGroup; +set reusable soundFile; +set reusable speakerMap; + +// SoundFile +set condition SoundFile::u::loadSnd type == SAT_LOADED; + +// SpeakerMap +set string SpeakerMap::name; + +// StreamedSound +use StreamedSound; +set string dir; +set string name; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/T6_Commands.txt b/src/ZoneCode/Game/T6/T6_Commands.txt index c26c9c36..9d450680 100644 --- a/src/ZoneCode/Game/T6/T6_Commands.txt +++ b/src/ZoneCode/Game/T6/T6_Commands.txt @@ -60,1546 +60,53 @@ block delay XFILE_BLOCK_DELAY_PHYSICAL; block normal XFILE_BLOCK_VIRTUAL default; block normal XFILE_BLOCK_PHYSICAL; -// ========================================= -// XModelPieces -// ========================================= -use XModelPieces; -set string name; -set name name; -set count pieces numpieces; - -// ========================================= -// PhysPreset -// ========================================= -use PhysPreset; -set string name; -set name name; -set string sndAliasPrefix; - -// ========================================= -// PhysConstraints -// ========================================= -use PhysConstraints; -set string name; -set name name; - -use PhysConstraint; -set scriptstring targetname; -set scriptstring target_ent1; -set string target_bone1; -set scriptstring target_ent2; -set string target_bone2; - -// ========================================= -// DestructibleDef -// ========================================= -use DestructibleDef; -set string name; -set name name; -set count pieces numPieces; - -// DestructiblePiece -use DestructiblePiece; -set string damageSound; -set string burnSound; -set scriptstring enableLabel; - -// DestructibleStage -use DestructibleStage; -set string breakSound; -set string breakNotify; -set string loopSound; -set scriptstring showBone; - -// ========================================= -// XAnimParts -// ========================================= -use XAnimParts; -set string name; -set name name; -set scriptstring names; -set count names boneCount[9]; -set count notify notifyCount; -set count deltaPart 1; -set count dataByte dataByteCount; -set count dataShort dataShortCount; -set count dataInt dataIntCount; -set count randomDataShort randomDataShortCount; -set count randomDataByte randomDataByteCount; -set count randomDataInt randomDataIntCount; -set count indices::_1 indexCount; -set count indices::_2 indexCount; -set condition indices::_1 numframes < 256; -set condition indices::data never; -reorder: - name - names - notify - deltaPart - dataByte - dataShort - dataInt - randomDataShort - randomDataByte - randomDataInt - indices; - -// XAnimNotifyInfo -set scriptstring XAnimNotifyInfo::name; - -// XAnimDeltaPart -use XAnimDeltaPart; -set count trans 1; -set count quat2 1; -set count quat 1; - -// XAnimPartTrans -use XAnimPartTrans; -set condition u::frames size > 0; -set condition u::frames::indices::_1 XAnimParts::numframes < 256; -set arraysize u::frames::indices::_1 size + 1; -set arraysize u::frames::indices::_2 size + 1; -set condition u::frames::frames::_1 smallTrans; -set count u::frames::frames::_1 size + 1; -set count u::frames::frames::_2 size + 1; - -// XAnimPartTransFrames -reorder XAnimPartTransFrames: - indices - frames; - -// XAnimDeltaPartQuat2 -use XAnimDeltaPartQuat2; -set condition u::frames size > 0; -set condition u::frames::indices::_1 XAnimParts::numframes < 256; -set arraysize u::frames::indices::_1 size + 1; -set arraysize u::frames::indices::_2 size + 1; -set count u::frames::frames size + 1; - -// XAnimDeltaPartQuatDataFrames2 -reorder XAnimDeltaPartQuatDataFrames2: - indices - frames; - -// XAnimDeltaPartQuat -use XAnimDeltaPartQuat; -set condition u::frames size > 0; -set condition u::frames::indices::_1 XAnimParts::numframes < 256; -set arraysize u::frames::indices::_1 size + 1; -set arraysize u::frames::indices::_2 size + 1; -set count u::frames::frames size + 1; - -// XAnimDeltaPartQuatDataFrames -reorder XAnimDeltaPartQuatDataFrames: - indices - frames; - -// ========================================= -// XModel -// ========================================= -use XModel; -set string name; -set name name; -set scriptstring boneNames; -set reusable boneNames; -set count boneNames numBones; -set reusable parentList; -set count parentList numBones - numRootBones; -set reusable quats; -set count quats numBones - numRootBones; -set reusable trans; -set count trans numBones - numRootBones; -set reusable partClassification; -set count partClassification numBones; -set reusable baseMat; -set count baseMat numBones; -set count surfs numsurfs; -set count materialHandles numsurfs; -set count collSurfs numCollSurfs; -set count boneInfo numBones; -set count himipInvSqRadii numsurfs; -set count collmaps numCollmaps; - -// XSurface -use XSurface; -set condition verts0 !(flags & 1); -set reusable verts0; -set count verts0 vertCount; -set condition vb0 never; -set reusable vertList; -set count vertList vertListCount; -set reusable triIndices; -set count triIndices triCount; -set condition indexBuffer never; -reorder: - vertInfo - verts0 - vertList - triIndices; - -// XSurfaceVertexInfo -use XSurfaceVertexInfo; -set reusable vertsBlend; -set count vertsBlend vertCount[0] - + 3 * vertCount[1] - + 5 * vertCount[2] - + 7 * vertCount[3]; -set reusable tensionData; -set count tensionData vertCount[0] - + vertCount[1] - + vertCount[2] - + vertCount[3]; - -// XRigidVertList -set reusable XRigidVertList::collisionTree; - -// XSurfaceCollisionTree -use XSurfaceCollisionTree; -set count nodes nodeCount; -set count leafs leafCount; - -// XModelCollSurf_s -set count XModelCollSurf_s::collTris numCollTris; - -// Collmap -set count Collmap::geomList 1; - -// PhysGeomList -set count PhysGeomList::geoms count; - -// PhysGeomInfo -use PhysGeomInfo; -set reusable brush; -set count brush 1; - -// BrushWrapper -use BrushWrapper; -set count sides numsides; -set reusable verts; -set count verts numverts; -set reusable planes; -set count planes numsides; - -// cbrushside_t -use cbrushside_t; -set reusable plane; -set count plane 1; - -// ========================================= -// Material -// ========================================= -use Material; -set string info::name; -set name info::name; -set reusable textureTable; -set count textureTable textureCount; -set reusable constantTable; -set count constantTable constantCount; -set reusable stateBitsTable; -set count stateBitsTable stateBitsCount; - -// GfxStateBits -use GfxStateBits; -set condition blendState never; -set condition depthStencilState never; -set condition rasterizerState never; - -// ========================================= -// MaterialTechniqueSet -// ========================================= -use MaterialTechniqueSet; -set string name; -set name name; -set reusable techniques; - -// MaterialTechnique -use MaterialTechnique; -set string name; -set arraysize passArray passCount; -reorder: - passArray - name; - -// MaterialPass -use MaterialPass; -set count args perPrimArgCount + perObjArgCount + stableArgCount; -set reusable vertexShader; -set reusable vertexDecl; -set reusable pixelShader; -reorder: - vertexShader - vertexDecl - pixelShader - args; - -// MaterialVertexStreamRouting -set condition MaterialVertexStreamRouting::decl never; - -// MaterialVertexShader -set string MaterialVertexShader::name; - -// MaterialVertexShaderProgram -set condition MaterialVertexShaderProgram::vs never; - -// GfxVertexShaderLoadDef -set count GfxVertexShaderLoadDef::program programSize; - -// MaterialPixelShader; -set string MaterialPixelShader::name; - -// MaterialPixelShaderProgram -set condition MaterialPixelShaderProgram::ps never; - -// GfxPixelShaderLoadDef -set count GfxPixelShaderLoadDef::program programSize; - -// MaterialShaderArgument -use MaterialShaderArgument; -set condition u::literalConst type == MTL_ARG_LITERAL_VERTEX_CONST -|| type == MTL_ARG_LITERAL_PIXEL_CONST; -set reusable u::literalConst; - -// ========================================= -// GfxImage -// ========================================= -use GfxImage; -set action OnImageLoaded(GfxImage); -set string name; -set name name; -set condition pixels never; -reorder: - name - texture; - -// GfxTexture -use GfxTexture; -set reusable loadDef; -set block loadDef XFILE_BLOCK_TEMP; -set condition basemap never; -set condition texture never; - -// GfxImageLoadDef -use GfxImageLoadDef; -set action LoadImageData(GfxImageLoadDef, GfxImage); -set arraysize data resourceSize; - -// ========================================= -// SndBank -// ========================================= -use SndBank; -set string name; -set name name; -set count alias aliasCount; -set count aliasIndex aliasCount; -set count radverbs radverbCount; -set count ducks duckCount; -set count scriptIdLookups scriptIdLookupCount; - -// SndAliasList -use SndAliasList; -set string name; -set reusable head; -set count head count; - -// SndAlias -use SndAlias; -set string name; -set string subtitle; -set string secondaryname; -set string assetFileName; - -// SndDuck -use SndDuck; -set count attenuation 32; -set count filter 32; - -// SndRuntimeAssetBank -use SndRuntimeAssetBank; -set string zone; -set string language; - -// SndLoadedAssets -use SndLoadedAssets; -set string zone; -set string language; -set count entries entryCount; -set count data dataSize; - -// ========================================= -// SndPatch -// ========================================= -use SndPatch; -set string name; -set name name; -set count elements elementCount; - -// ========================================= -// clipMap_t -// ========================================= -use clipMap_t; -set string name; -set name name; -set block pInfo XFILE_BLOCK_TEMP; -set reusable pInfo; -set count staticModelList numStaticModels; -set count nodes numNodes; -set count leafs numLeafs; -set count verts vertCount; -set count triIndices triCount; -set count triEdgeIsWalkable ((3 * triCount + 31) / 32) * 4; -set count partitions partitionCount; -set count aabbTrees aabbTreeCount; -set count cmodels numSubModels; -set count visibility numClusters * clusterBytes; -set reusable box_brush; -set count dynEntDefList[0] dynEntCount[0]; -set count dynEntDefList[1] dynEntCount[1]; -set block dynEntPoseList XFILE_BLOCK_RUNTIME_VIRTUAL; -set count dynEntPoseList[0] dynEntCount[0]; -set count dynEntPoseList[1] dynEntCount[1]; -set block dynEntClientList XFILE_BLOCK_RUNTIME_VIRTUAL; -set count dynEntClientList[0] dynEntCount[0]; -set count dynEntClientList[1] dynEntCount[1]; -set block dynEntServerList XFILE_BLOCK_RUNTIME_VIRTUAL; -set count dynEntServerList[0] dynEntCount[2]; -set count dynEntServerList[1] dynEntCount[3]; -set block dynEntCollList XFILE_BLOCK_RUNTIME_VIRTUAL; -set count dynEntCollList[0] dynEntCount[0]; -set count dynEntCollList[1] dynEntCount[1]; -set count dynEntCollList[2] dynEntCount[2]; -set count dynEntCollList[3] dynEntCount[3]; -set count constraints num_constraints; -set block ropes XFILE_BLOCK_RUNTIME_VIRTUAL; -set count ropes max_ropes; - -// ClipInfo -use ClipInfo; -set reusable planes; -set count planes planeCount; -set reusable materials; -set count materials numMaterials; -set reusable brushsides; -set count brushsides numBrushSides; -set reusable leafbrushNodes; -set count leafbrushNodes leafbrushNodesCount; -set reusable leafbrushes; -set count leafbrushes numLeafBrushes; -set count brushVerts numBrushVerts; -set count uinds nuinds; -set reusable brushes; -set count brushes numBrushes; -set reusable brushBounds; -set count brushBounds numBrushes; -set reusable brushContents; -set count brushContents numBrushes; - -// ClipMaterial -set string ClipMaterial::name; - -// cbrushside_t -set reusable cbrushside_t::plane; - -// cLeafBrushNode_s -use cLeafBrushNode_s; -set condition data::leaf leafBrushCount > 0; -set reusable data::leaf::brushes; -set count data::leaf::brushes leafBrushCount; - -// cbrush_t -use cbrush_t; -set reusable sides; -set reusable verts; - -// cmodel_t -use cmodel_t; -set reusable info; -set block info XFILE_BLOCK_TEMP; - -// cNode_t -set reusable cNode_t::plane; - -// DynEntityDef -use DynEntityDef; -set reusable destroyPieces; -set scriptstring targetname; -set scriptstring target; - -// ========================================= -// ComWorld -// ========================================= -use ComWorld; -set string name; -set name name; -set count primaryLights primaryLightCount; - -// ComPrimaryLight -set string ComPrimaryLight::defName; - -// ========================================= -// GameWorldSp -// ========================================= -use GameWorldSp; -set string name; -set name name; - -// PathData -use PathData; -set count nodes nodeCount + 128; -set block basenodes XFILE_BLOCK_RUNTIME_VIRTUAL; -set count basenodes nodeCount + 128; -set count pathVis visBytes; -set count smoothCache smoothBytes; -set count nodeTree nodeTreeCount; - -// pathnode_t -set condition pathnode_t::transient never; - -// pathnode_constant_t -use pathnode_constant_t; -set scriptstring targetname; -set scriptstring script_linkName; -set scriptstring script_noteworthy; -set scriptstring target; -set scriptstring animscript; -set count Links totalLinkCount; - -// pathnode_tree_t -use pathnode_tree_t; -set condition u::s axis < 0; -set reusable u::child; - -// pathnode_tree_nodes_t -use pathnode_tree_nodes_t; -set count nodes nodeCount; - -// ========================================= -// GameWorldMp -// ========================================= -use GameWorldMp; -set string name; -set name name; - -// ========================================= -// MapEnts -// ========================================= -use MapEnts; -set string name; -set name name; -set count entityString numEntityChars; - -// MapTriggers -use MapTriggers; -set count models count; -set reusable models; -set count hulls hullCount; -set reusable hulls; -set count slabs slabCount; -set reusable slabs; - -// ========================================= -// GfxWorld -// ========================================= -use GfxWorld; -set string name; -set name name; -set string baseName; -set string skyBoxModel; -set reusable sunLight; -set count coronas coronaCount; -set count shadowMapVolumes shadowMapVolumeCount; -set count shadowMapVolumePlanes shadowMapVolumePlaneCount; -set count exposureVolumes exposureVolumeCount; -set count exposureVolumePlanes exposureVolumePlaneCount; -set count worldFogVolumes worldFogVolumeCount; -set count worldFogVolumePlanes worldFogVolumePlaneCount; -set count worldFogModifierVolumes worldFogModifierVolumeCount; -set count worldFogModifierVolumePlanes worldFogModifierVolumePlaneCount; -set count lutVolumes lutVolumeCount; -set count lutVolumePlanes lutVolumePlaneCount; -set count cells dpvsPlanes::cellCount; -set count models modelCount; -set count materialMemory materialMemoryCount; -set block cellCasterBits XFILE_BLOCK_RUNTIME_VIRTUAL; -set count cellCasterBits dpvsPlanes::cellCount * ((dpvsPlanes::cellCount + 31) / 32); -set block sceneDynModel XFILE_BLOCK_RUNTIME_VIRTUAL; -set count sceneDynModel dpvsDyn::dynEntClientCount[0]; -set block sceneDynBrush XFILE_BLOCK_RUNTIME_VIRTUAL; -set count sceneDynBrush dpvsDyn::dynEntClientCount[1]; -set block primaryLightEntityShadowVis XFILE_BLOCK_RUNTIME_VIRTUAL; -set count primaryLightEntityShadowVis (primaryLightCount - sunPrimaryLightIndex - 1) * 0x2000; -set block primaryLightDynEntShadowVis XFILE_BLOCK_RUNTIME_VIRTUAL; -set count primaryLightDynEntShadowVis[0] dpvsDyn::dynEntClientCount[0] * (primaryLightCount - sunPrimaryLightIndex - 1); -set count primaryLightDynEntShadowVis[1] dpvsDyn::dynEntClientCount[1] * (primaryLightCount - sunPrimaryLightIndex - 1); -set count siegeSkinInsts numSiegeSkinInsts; -set count shadowGeom primaryLightCount; -set count lightRegion primaryLightCount; -set count occluders numOccluders; -set count outdoorBounds numOutdoorBounds; -set count heroLights heroLightCount; -set count heroLightTree heroLightTreeCount; - -// GfxWorldStreamInfo -use GfxWorldStreamInfo; -set count aabbTrees aabbTreeCount; -set count leafRefs leafRefCount; - -// GfxWorldDpvsPlanes -use GfxWorldDpvsPlanes; -set reusable planes; -set count planes GfxWorld::planeCount; -set count nodes GfxWorld::nodeCount; -set block sceneEntCellBits XFILE_BLOCK_RUNTIME_VIRTUAL; -set count sceneEntCellBits cellCount * 0x200; - -// GfxCell -use GfxCell; -set count aabbTree aabbTreeCount; -set count portals portalCount; -set count reflectionProbes reflectionProbeCount; - -// GfxAabbTree -use GfxAabbTree; -set reusable smodelIndexes; -set count smodelIndexes smodelIndexCount; - -// GfxPortal -use GfxPortal; -set condition writable never; -set reusable cell; -set count vertices vertexCount; - -// GfxWorldDraw -use GfxWorldDraw; -set count reflectionProbes reflectionProbeCount; -set block reflectionProbeTextures XFILE_BLOCK_RUNTIME_VIRTUAL; -set count reflectionProbeTextures reflectionProbeCount; -set count lightmaps lightmapCount; -set block lightmapPrimaryTextures XFILE_BLOCK_RUNTIME_VIRTUAL; -set count lightmapPrimaryTextures lightmapCount; -set block lightmapSecondaryTextures XFILE_BLOCK_RUNTIME_VIRTUAL; -set count lightmapSecondaryTextures lightmapCount; -set count indices indexCount; -set condition indexBuffer never; - -// GfxReflectionProbe -use GfxReflectionProbe; -set count probeVolumes probeVolumeCount; - -// GfxWorldVertexData0 -use GfxWorldVertexData0; -set count data GfxWorldDraw::vertexDataSize0; -set condition vb never; - -// GfxWorldVertexData1 -use GfxWorldVertexData1; -set count data GfxWorldDraw::vertexDataSize1; -set condition vb never; - -// GfxLightGrid -use GfxLightGrid; -set count rowDataStart maxs[rowAxis] - mins[rowAxis] + 1; -set count rawRowData rawRowDataSize; -set count entries entryCount; -set count colors colorCount; -set count coeffs coeffCount; -set count skyGridVolumes skyGridVolumeCount; - -// SSkinInstance -use SSkinInstance; -set reusable shaders; -set reusable model; -set reusable anim; -set count instVerts model::numVerts; - -// SSkinShaders -use SSkinShaders; -set count pixelShaderAlign pixelShaderSize; -set count pixelShader pixelShaderSize; -set count vertexShader vertexShaderSize; - -// SSkinModel -use SSkinModel; -set count verts numVerts; -set count tris numTris; - -// SSkinAnim -use SSkinAnim; -set count data 4 * width * frames; - -// GfxShadowGeometry -use GfxShadowGeometry; -set count sortedSurfIndex surfaceCount; -set count smodelIndex smodelCount; - -// GfxLightRegion -use GfxLightRegion; -set count hulls hullCount; - -// GfxLightRegionHull -use GfxLightRegionHull; -set count axis axisCount; - -// GfxWorldDpvsStatic -use GfxWorldDpvsStatic; -set block smodelVisData XFILE_BLOCK_RUNTIME_VIRTUAL; -set count smodelVisData smodelVisDataCount; -set block surfaceVisData XFILE_BLOCK_RUNTIME_VIRTUAL; -set count surfaceVisData surfaceVisDataCount; -set block smodelVisDataCameraSaved XFILE_BLOCK_RUNTIME_VIRTUAL; -set count smodelVisDataCameraSaved smodelVisDataCount; -set block surfaceVisDataCameraSaved XFILE_BLOCK_RUNTIME_VIRTUAL; -set count surfaceVisDataCameraSaved surfaceVisDataCount; -set block surfaceCastsSunShadow XFILE_BLOCK_RUNTIME_VIRTUAL; -set count surfaceCastsSunShadow surfaceVisDataCount; -set block surfaceCastsShadow XFILE_BLOCK_RUNTIME_VIRTUAL; -set count surfaceCastsShadow surfaceVisDataCount; -set count smodelCastsShadow smodelVisDataCount; -set count sortedSurfIndex staticSurfaceCount; -set count smodelInsts smodelCount; -set count surfaces GfxWorld::surfaceCount; -set count smodelDrawInsts smodelCount; -set block surfaceMaterials XFILE_BLOCK_RUNTIME_VIRTUAL; -set count surfaceMaterials staticSurfaceCount; -reorder: - smodelVisData - surfaceVisData - smodelVisDataCameraSaved - surfaceVisDataCameraSaved - surfaceCastsSunShadow - surfaceCastsShadow - smodelCastsShadow - sortedSurfIndex - smodelInsts - surfaces - smodelDrawInsts - surfaceMaterials; - -// GfxStaticModelLmapVertexInfo -use GfxStaticModelLmapVertexInfo; -set count lmapVertexColors numLmapVertexColors; -set condition lmapVertexColorsVB never; - -// GfxWorldDpvsDynamic -use GfxWorldDpvsDynamic; -set block dynEntCellBits XFILE_BLOCK_RUNTIME_VIRTUAL; -set count dynEntCellBits[0] dynEntClientWordCount[0] * GfxWorld::dpvsPlanes::cellCount; -set count dynEntCellBits[1] dynEntClientWordCount[1] * GfxWorld::dpvsPlanes::cellCount; -set block dynEntVisData XFILE_BLOCK_RUNTIME_VIRTUAL; -set count dynEntVisData[0][0] 32 * dynEntClientWordCount[0]; -set count dynEntVisData[1][0] 32 * dynEntClientWordCount[1]; -set count dynEntVisData[0][1] 32 * dynEntClientWordCount[0]; -set count dynEntVisData[1][1] 32 * dynEntClientWordCount[1]; -set count dynEntVisData[0][2] 32 * dynEntClientWordCount[0]; -set count dynEntVisData[1][2] 32 * dynEntClientWordCount[1]; - -// GfxWaterBuffer -use GfxWaterBuffer; -set count buffer bufferSize / 16; - -// ========================================= -// GfxLightDef -// ========================================= -use GfxLightDef; -set string name; -set name name; - -// ========================================= -// Font_s -// ========================================= -use Font_s; -set string fontName; -set name fontName; -set reusable glyphs; -set count glyphs glyphCount; -set reusable kerningPairs; -set count kerningPairs kerningPairsCount; - -// ========================================= -// FontIcon -// ========================================= -use FontIcon; -set string name; -set name name; -set reusable fontIconEntry; -set count fontIconEntry numEntries; -set reusable fontIconAlias; -set count fontIconAlias numAliasEntries; - -// FontIconName -set string FontIconName::string; - -// ========================================= -// MenuList -// ========================================= -use MenuList; -set string name; -set name name; -set count menus menuCount; - -// ========================================= -// menuDef_t -// ========================================= -use menuDef_t; -set string window::name; -set name window::name; -set string font; -set string allowedBinding; -set string soundName; -set count items itemCount; - -// windowDef_t -use windowDef_t; -set string group; - -// GenericEventHandler -use GenericEventHandler; -set string name; - -// GenericEventScript -use GenericEventScript; -set string action; - -// ExpressionStatement -use ExpressionStatement; -set string filename; -set count rpn numRpn; -set reusable rpn; - -// expressionRpn -use expressionRpn; -set condition data::constant type == RPN_CONSTANT; -set condition data::cmd never; - -// Operand -use Operand; -set condition internals::intVal dataType == VAL_INT; -set condition internals::floatVal dataType == VAL_FLOAT; -set condition internals::string dataType == VAL_STRING; -set string internals::string; -set condition internals::dvar never; - -// itemDef_s -use itemDef_s; -set string dvar; -set string profileVar; -set string dvarTest; -set string enableDvar; -set condition parent never; -set condition typeData::textDef -type == 1 || type == 3 || type == 4 -|| type == 5 || type == 7 || type == 8 -|| type == 9 || type == 10 || type == 11 -|| type == 12 || type == 13 || type == 14 -|| type == 15 || type == 16 || type == 18 -|| type == 20 || type == 22; -set condition typeData::imageDef type == 2; -set condition typeData::blankButtonDef type == 19 || type == 21; -set condition typeData::ownerDrawDef type == 6; -set condition typeData::data never; - -// textDef_s -use textDef_s; -set string text; -set condition textTypeData::focusItemDef itemDef_s::type == 3 -|| itemDef_s::type == 4 || itemDef_s::type == 5 -|| itemDef_s::type == 7 || itemDef_s::type == 8 -|| itemDef_s::type == 9 || itemDef_s::type == 10 -|| itemDef_s::type == 11 || itemDef_s::type == 12 -|| itemDef_s::type == 13 || itemDef_s::type == 14 -|| itemDef_s::type == 16 || itemDef_s::type == 20 -|| itemDef_s::type == 21 || itemDef_s::type == 22 -|| itemDef_s::type == 30; -set condition textTypeData::gameMsgDef itemDef_s::type == 15; -set condition textTypeData::data never; - -// focusItemDef_s -use focusItemDef_s; -set string mouseEnterText; -set string mouseExitText; -set string mouseEnter; -set string mouseExit; -set condition focusTypeData::listBox itemDef_s::type == 4; -set condition focusTypeData::multi itemDef_s::type == 10; -set condition focusTypeData::profileMulti itemDef_s::type == 22; -set condition focusTypeData::editField itemDef_s::type == 5 -|| itemDef_s::type == 7 -|| itemDef_s::type == 8 -|| itemDef_s::type == 9 -|| itemDef_s::type == 12 -|| itemDef_s::type == 13 -|| itemDef_s::type == 14 -|| itemDef_s::type == 16 -|| itemDef_s::type == 30; -set condition focusTypeData::enumDvar itemDef_s::type == 11; -set condition focusTypeData::data never; - -// listBoxDef_s -use listBoxDef_s; -set count rows maxRows; - -// MenuRow -use MenuRow; -set count cells listBoxDef_s::numColumns; -set count eventName 32; -set count onFocusEventName 32; - -// MenuCell -use MenuCell; -set count stringValue maxChars; - -// multiDef_s -use multiDef_s; -set string dvarList; -set string dvarStr; - -// profileMultiDef_s -use profileMultiDef_s; -set string profileVarList; -set string profileVarStr; - -// enumDvarDef_s -set string enumDvarDef_s::enumDvarName; - -// UIAnimInfo -use UIAnimInfo; -set count animStates animStateCount; -set condition currentAnimState never; -set condition nextAnimState never; - -// animParamsDef_t -use animParamsDef_t; -set string name; - -// ========================================= -// LocalizeEntry -// ========================================= -use LocalizeEntry; -set string value; -set string name; -set name name; - -// ========================================= -// WeaponVariantDef -// ========================================= -use WeaponVariantDef; -set string szInternalName; -set name szInternalName; -set reusable weapDef; -set string szDisplayName; -set string szAltWeaponName; -set string szAttachmentUnique; -set count attachments 63; -set reusable attachments; -set count attachmentUniques 95; -set reusable attachmentUniques; -set string szXAnims; -set count szXAnims 88; -set reusable szXAnims; -set scriptstring hideTags; -set count hideTags 32; -set reusable hideTags; -set count attachViewModel 8; -set reusable attachViewModel; -set count attachWorldModel 8; -set reusable attachWorldModel; -set string attachViewModelTag; -set count attachViewModelTag 8; -set reusable attachViewModelTag; -set string attachWorldModelTag; -set count attachWorldModelTag 8; -set reusable attachWorldModelTag; -set string szAmmoDisplayName; -set string szAmmoName; -set string szClipName; - -// WeaponDef -use WeaponDef; -set string szOverlayName; -set count gunXModel 16; -set reusable gunXModel; -set string szModeName; -set scriptstring notetrackSoundMapKeys; -set count notetrackSoundMapKeys 20; -set reusable notetrackSoundMapKeys; -set scriptstring notetrackSoundMapValues; -set count notetrackSoundMapValues 20; -set reusable notetrackSoundMapValues; -set string parentWeaponName; -set string pickupSound; -set string pickupSoundPlayer; -set string ammoPickupSound; -set string ammoPickupSoundPlayer; -set string projectileSound; -set string pullbackSound; -set string pullbackSoundPlayer; -set string fireSound; -set string fireSoundPlayer; -set string fireLoopSound; -set string fireLoopSoundPlayer; -set string fireLoopEndSound; -set string fireLoopEndSoundPlayer; -set string fireStartSound; -set string fireStopSound; -set string fireKillcamSound; -set string fireStartSoundPlayer; -set string fireStopSoundPlayer; -set string fireKillcamSoundPlayer; -set string fireLastSound; -set string fireLastSoundPlayer; -set string emptyFireSound; -set string emptyFireSoundPlayer; -set string crackSound; -set string whizbySound; -set string meleeSwipeSound; -set string meleeSwipeSoundPlayer; -set string meleeHitSound; -set string meleeMissSound; -set string rechamberSound; -set string rechamberSoundPlayer; -set string reloadSound; -set string reloadSoundPlayer; -set string reloadEmptySound; -set string reloadEmptySoundPlayer; -set string reloadStartSound; -set string reloadStartSoundPlayer; -set string reloadEndSound; -set string reloadEndSoundPlayer; -set string rotateLoopSound; -set string rotateLoopSoundPlayer; -set string rotateStopSound; -set string rotateStopSoundPlayer; -set string deploySound; -set string deploySoundPlayer; -set string finishDeploySound; -set string finishDeploySoundPlayer; -set string breakdownSound; -set string breakdownSoundPlayer; -set string finishBreakdownSound; -set string finishBreakdownSoundPlayer; -set string detonateSound; -set string detonateSoundPlayer; -set string nightVisionWearSound; -set string nightVisionWearSoundPlayer; -set string nightVisionRemoveSound; -set string nightVisionRemoveSoundPlayer; -set string altSwitchSound; -set string altSwitchSoundPlayer; -set string raiseSound; -set string raiseSoundPlayer; -set string firstRaiseSound; -set string firstRaiseSoundPlayer; -set string adsRaiseSoundPlayer; -set string adsLowerSoundPlayer; -set string putawaySound; -set string putawaySoundPlayer; -set string overheatSound; -set string overheatSoundPlayer; -set string adsZoomSound; -set string shellCasing; -set string shellCasingPlayer; -set string bounceSound; -set count bounceSound 32; -set reusable bounceSound; -set string standMountedWeapdef; -set string crouchMountedWeapdef; -set string proneMountedWeapdef; -set count worldModel 16; -set reusable worldModel; -set string szSharedAmmoCapName; -set scriptstring explosionTag; -set string spinLoopSound; -set string spinLoopSoundPlayer; -set string startSpinSound; -set string startSpinSoundPlayer; -set string stopSpinSound; -set string stopSpinSoundPlayer; -set string stackSound; -set string szSpawnedGrenadeWeaponName; -set string szDualWieldWeaponName; -set string projExplosionSound; -set string projDudSound; -set string mortarShellSound; -set string tankShellSound; -set count parallelBounce 32; -set reusable parallelBounce; -set count perpendicularBounce 32; -set reusable perpendicularBounce; -set string projIgnitionSound; -set string accuracyGraphName0; -set string accuracyGraphName1; -set reusable accuracyGraphKnots0; -set reusable accuracyGraphKnots1; -set count accuracyGraphKnots0 accuracyGraphKnotCount[0]; -set count accuracyGraphKnots1 accuracyGraphKnotCount[1]; -set reusable originalAccuracyGraphKnots0; -set reusable originalAccuracyGraphKnots1; -set count originalAccuracyGraphKnots0 accuracyGraphKnotCount[0]; -set count originalAccuracyGraphKnots1 accuracyGraphKnotCount[1]; -set string szUseHintString; -set string dropHintString; -set string szScript; -set count locationDamageMultipliers 21; -set reusable locationDamageMultipliers; -set string fireRumble; -set string meleeImpactRumble; -set string reloadRumble; -set string explosionRumble; -set string flameTableFirstPerson; -set string flameTableThirdPerson; -set reusable flameTableFirstPersonPtr; -set reusable flameTableThirdPersonPtr; -set string throwBackType; - -reorder: -... -accuracyGraphName0 -accuracyGraphKnots0 -originalAccuracyGraphKnots0 -accuracyGraphName1 -accuracyGraphKnots1 -originalAccuracyGraphKnots1; - -reorder: -... -killIcon -indicatorIcon; - -// flameTable -use flameTable; -set string name; -set string flameOffLoopSound; -set string flameIgniteSound; -set string flameOnLoopSound; -set string flameCooldownSound; - -// ========================================= -// WeaponAttachment -// ========================================= -use WeaponAttachment; -set string szInternalName; -set name szInternalName; -set string szDisplayName; - -// ========================================= -// WeaponAttachmentUnique -// ========================================= -use WeaponAttachmentUnique; -set string szInternalName; -set name szInternalName; -set string szAltWeaponName; -set string szDualWieldWeaponName; -set scriptstring hideTags; -set count hideTags 32; -set reusable hideTags; -set string viewModelTag; -set string worldModelTag; -set string szXAnims; -set count szXAnims 88; -set reusable szXAnims; -set count locationDamageMultipliers 21; -set reusable locationDamageMultipliers; -set string fireSound; -set string fireSoundPlayer; -set string fireLoopSound; -set string fireLoopSoundPlayer; -set string fireLoopEndSound; -set string fireLoopEndSoundPlayer; -set string fireStartSound; -set string fireStopSound; -set string fireStartSoundPlayer; -set string fireStopSoundPlayer; -set string fireLastSound; -set string fireLastSoundPlayer; -set string fireKillcamSound; -set string fireKillcamSoundPlayer; - -// ========================================= -// WeaponCamo -// ========================================= -use WeaponCamo; -set string name; -set name name; -set count camoSets numCamoSets; -set count camoMaterials numCamoMaterials; - -// WeaponCamoMaterialSet -use WeaponCamoMaterialSet; -set count materials numMaterials; - -// WeaponCamoMaterial -use WeaponCamoMaterial; -set count baseMaterials numBaseMaterials; -set count camoMaterials numBaseMaterials; - -// ========================================= -// SndDriverGlobals -// ========================================= -use SndDriverGlobals; -set string name; -set name name; -set count groups groupCount; -set count curves curveCount; -set count pans panCount; -set count duckGroups duckGroupCount; -set count contexts contextCount; -set count masters masterCount; -set count voiceDucks voiceDuckCount; -set count futzes futzCount; - -// ========================================= -// FxEffectDef -// ========================================= -use FxEffectDef; -set string name; -set name name; -set count elemDefs elemDefCountLooping + elemDefCountOneShot + elemDefCountEmission; - -// FxElemDef -use FxElemDef; -set count velSamples velIntervalCount + 1; -set count visSamples visStateIntervalCount + 1; - -// FxElemDefVisuals -use FxElemDefVisuals; -set condition markArray FxElemDef::elemType == FX_ELEM_TYPE_DECAL; -set count markArray FxElemDef::visualCount; -set condition array FxElemDef::visualCount > 1; -set count array FxElemDef::visualCount; - -// FxElemVisuals -use FxElemVisuals; -set condition anonymous never; -set condition model FxElemDef::elemType == FX_ELEM_TYPE_MODEL; -set condition effectDef FxElemDef::elemType == FX_ELEM_TYPE_RUNNER; -set condition soundName FxElemDef::elemType == FX_ELEM_TYPE_SOUND; -set string soundName; -set condition lightDef FxElemDef::elemType == FX_ELEM_TYPE_SPOT_LIGHT; -set condition material FxElemDef::elemType == FX_ELEM_TYPE_SPRITE_BILLBOARD -|| FxElemDef::elemType == FX_ELEM_TYPE_SPRITE_ORIENTED -|| FxElemDef::elemType == FX_ELEM_TYPE_SPRITE_ROTATED -|| FxElemDef::elemType == FX_ELEM_TYPE_TAIL -|| FxElemDef::elemType == FX_ELEM_TYPE_LINE -|| FxElemDef::elemType == FX_ELEM_TYPE_TRAIL -|| FxElemDef::elemType == FX_ELEM_TYPE_CLOUD; - -// FxEffectDefRef -use FxEffectDefRef; -set condition handle never; -set string name; - -// FxElemExtendedDefPtr -use FxElemExtendedDefPtr; -set condition trailDef FxElemDef::elemType == FX_ELEM_TYPE_TRAIL; -set condition spotLightDef FxElemDef::elemType == FX_ELEM_TYPE_SPOT_LIGHT; - -// FxTrailDef -use FxTrailDef; -set count verts vertCount; -set count inds indCount; - -// FxElemSpawnSound -set string FxElemSpawnSound::spawnSound; - -// ========================================= -// FxImpactTable -// ========================================= -use FxImpactTable; -set string name; -set name name; -set count table 21; - -// ========================================= -// RawFile -// ========================================= -use RawFile; -set string name; -set name name; -set count buffer len + 1; - -// ========================================= -// StringTable -// ========================================= -use StringTable; -set string name; -set name name; -set count values columnCount * rowCount; -set count cellIndex columnCount * rowCount; - -// StringTableCell -set string StringTableCell::string; - -// ========================================= -// LeaderboardDef -// ========================================= -use LeaderboardDef; -set string name; -set name name; -set count columns columnCount; - -// LbColumnDef -use LbColumnDef; -set string name; -set string statName; -set string localization; - -// ========================================= -// XGlobals -// ========================================= -use XGlobals; -set string name; -set name name; -set arraycount gumps gumpsCount; -set condition gumps gumpsCount >= 0 && gumpsCount <= 32; -set arraycount overlays overlayCount; -set condition overlays overlayCount >= 0 && overlayCount <= 32; - -// gump_info_t -set string gump_info_t::name; - -// overlay_info_t -set string overlay_info_t::name; - -// ========================================= -// ddlRoot_t -// ========================================= -use ddlRoot_t; -set string name; -set name name; -set count ddlDef 1; - -// ddlDef_t -use ddlDef_t; -set count structList structCount; -set count enumList enumCount; -set count next 1; - -// ddlStructDef_t -use ddlStructDef_t; -set string name; -set count members memberCount; -set count hashTable memberCount; - -// ddlMemberDef_t -set string ddlMemberDef_t::name; - -// ddlEnumDef_t -use ddlEnumDef_t; -set string name; -set string members; -set count members memberCount; -set count hashTable memberCount; - -// ========================================= -// Glasses -// ========================================= -use Glasses; -set string name; -set name name; -set count glasses numGlasses; -set condition workMemory never; - -// Glass -use Glass; -set reusable glassDef; -set count outline numOutlineVerts; - -// GlassDef -use GlassDef; -set string name; -set string crackSound; -set string shatterShound; -set string autoShatterShound; - -// ========================================= -// EmblemSet -// ========================================= -use EmblemSet; -set count layers layerCount; -set count categories categoryCount; -set count iconTypes iconTypeCount; -set count bgCategories iconTypeCount; -set count icons iconTypeCount; -set count backgrounds backgroundCount; -set count backgroundLookup backgroundLookupCount; - -// EmblemCategory -use EmblemCategory; -set string name; -set string description; - -// EmblemIconType -use EmblemIconType; -set string name; -set string description; - -// EmblemBGCategory -use EmblemBGCategory; -set string name; -set string description; - -// EmblemIcon -use EmblemIcon; -set string description; - -// EmblemBackground -use EmblemBackground; -set string description; - -// ========================================= -// ScriptParseTree -// ========================================= -use ScriptParseTree; -set string name; -set name name; -set count buffer len + 1; - -// ========================================= -// KeyValuePairs -// ========================================= -use KeyValuePairs; -set string name; -set name name; -set count keyValuePairs numVariables; - -// KeyValuePair -set string KeyValuePair::value; - -// ========================================= -// VehicleDef -// ========================================= -use VehicleDef; -set string name; -set name name; -set string turretWeapon; -set string gunnerWeapon; -set string sndNames; -set string sndMaterialNames; -set string futzName; -set string animSet; -set scriptstring extraWheelTags; -set scriptstring driverHideTag; -set scriptstring attachmentTags; -set scriptstring deathAttachmentTags; -set scriptstring deathFxTag; -set string deathFxSound; -set scriptstring lightFxTag; -set scriptstring friendlyLightFxTag; -set scriptstring enemyLightFxTag; -set string shootShock; -set string shootRumble; -set string rumbleType; -set string compassIcon; -set string gasButtonName; -set string reverseBrakeButtonName; -set string handBrakeButtonName; -set string attackButtonName; -set string attackSecondaryButtonName; -set string boostButtonName; -set string moveUpButtonName; -set string moveDownButtonName; -set string switchSeatButtonName; -set string steerGraphName; -set condition steerGraph never; -set string accelGraphName; -set condition accelGraph never; -set string csvInclude; - -// VehicleParameter -use VehicleParameter; -set string m_name; - -// VehicleDriveBySound -use VehicleDriveBySound; -set string name; - -// VehicleEngineSound -use VehicleEngineSound; -set string name; - -// ========================================= -// MemoryBlock -// ========================================= -use MemoryBlock; -set string name; -set name name; - -// ========================================= -// AddonMapEnts -// ========================================= -use AddonMapEnts; -set string name; -set name name; -set count entityString numEntityChars; -set reusable info; -set count cmodels numSubModels; -set count models numSubModels; - -// cmodel_t2 -set reusable cmodel_t2::info; - -// MapTriggers: See MapEnts -// ClipInfo: See clipMap_t - -// GfxBrushModel: See GfxWorld - -// ========================================= -// TracerDef -// ========================================= -use TracerDef; -set string name; -set name name; - -// ========================================= -// SkinnedVertsDef -// ========================================= -use SkinnedVertsDef; -set string name; -set name name; - -// ========================================= -// Qdb -// ========================================= -use Qdb; -set string name; -set name name; -set count buffer len + 1; - -// ========================================= -// Slug -// ========================================= -use Slug; -set string name; -set name name; -set count buffer len + 1; - -// ========================================= -// FootstepTableDef -// ========================================= -use FootstepTableDef; -set string name; -set name name; - -// ========================================= -// FootstepFXTableDef -// ========================================= -use FootstepFXTableDef; -set string name; -set name name; - -// ========================================= -// ZBarrierDef -// ========================================= -use ZBarrierDef; -set string name; -set name name; -set scriptstring zombieTauntAnimState; -set scriptstring zombieReachThroughAnimState; - -// ZBarrierBoard -use ZBarrierBoard; -set string pTearAnim; -set string pBoardAnim; -set scriptstring zombieBoardTearStateName; -set scriptstring zombieBoardTearSubStateName; +// Asset commands +#include "XAssets/PhysPreset.txt" +#include "XAssets/PhysConstraints.txt" +#include "XAssets/DestructibleDef.txt" +#include "XAssets/XAnimParts.txt" +#include "XAssets/XModel.txt" +#include "XAssets/Material.txt" +#include "XAssets/MaterialTechniqueSet.txt" +#include "XAssets/GfxImage.txt" +#include "XAssets/SndBank.txt" +#include "XAssets/SndPatch.txt" +#include "XAssets/clipMap_t.txt" +#include "XAssets/ComWorld.txt" +#include "XAssets/GameWorldSp.txt" +#include "XAssets/GameWorldMp.txt" +#include "XAssets/MapEnts.txt" +#include "XAssets/GfxWorld.txt" +#include "XAssets/GfxLightDef.txt" +#include "XAssets/Font_s.txt" +#include "XAssets/FontIcon.txt" +#include "XAssets/MenuList.txt" +#include "XAssets/menuDef_t.txt" +#include "XAssets/LocalizeEntry.txt" +#include "XAssets/WeaponVariantDef.txt" +#include "XAssets/WeaponAttachment.txt" +#include "XAssets/WeaponAttachmentUnique.txt" +#include "XAssets/SndDriverGlobals.txt" +#include "XAssets/FxEffectDef.txt" +#include "XAssets/FxImpactTable.txt" +#include "XAssets/RawFile.txt" +#include "XAssets/StringTable.txt" +#include "XAssets/LeaderboardDef.txt" +#include "XAssets/XGlobals.txt" +#include "XAssets/ddlRoot_t.txt" +#include "XAssets/Glasses.txt" +#include "XAssets/EmblemSet.txt" +#include "XAssets/ScriptParseTree.txt" +#include "XAssets/KeyValuePairs.txt" +#include "XAssets/VehicleDef.txt" +#include "XAssets/MemoryBlock.txt" +#include "XAssets/AddonMapEnts.txt" +#include "XAssets/TracerDef.txt" +#include "XAssets/SkinnedVertsDef.txt" +#include "XAssets/Qdb.txt" +#include "XAssets/Slug.txt" +#include "XAssets/FootstepTableDef.txt" +#include "XAssets/FootstepFXTableDef.txt" +#include "XAssets/ZBarrierDef.txt" // EOF \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/AddonMapEnts.txt b/src/ZoneCode/Game/T6/XAssets/AddonMapEnts.txt new file mode 100644 index 00000000..bd5e831d --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/AddonMapEnts.txt @@ -0,0 +1,18 @@ +// ========================================= +// AddonMapEnts +// ========================================= +use AddonMapEnts; +set string name; +set name name; +set count entityString numEntityChars; +set reusable info; +set count cmodels numSubModels; +set count models numSubModels; + +// cmodel_t2 +set reusable cmodel_t2::info; + +// MapTriggers: See MapEnts +// ClipInfo: See clipMap_t + +// GfxBrushModel: See GfxWorld \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/ComWorld.txt b/src/ZoneCode/Game/T6/XAssets/ComWorld.txt new file mode 100644 index 00000000..494f2208 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/ComWorld.txt @@ -0,0 +1,10 @@ +// ========================================= +// ComWorld +// ========================================= +use ComWorld; +set string name; +set name name; +set count primaryLights primaryLightCount; + +// ComPrimaryLight +set string ComPrimaryLight::defName; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/DestructibleDef.txt b/src/ZoneCode/Game/T6/XAssets/DestructibleDef.txt new file mode 100644 index 00000000..e6353c17 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/DestructibleDef.txt @@ -0,0 +1,20 @@ +// ========================================= +// DestructibleDef +// ========================================= +use DestructibleDef; +set string name; +set name name; +set count pieces numPieces; + +// DestructiblePiece +use DestructiblePiece; +set string damageSound; +set string burnSound; +set scriptstring enableLabel; + +// DestructibleStage +use DestructibleStage; +set string breakSound; +set string breakNotify; +set string loopSound; +set scriptstring showBone; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/EmblemSet.txt b/src/ZoneCode/Game/T6/XAssets/EmblemSet.txt new file mode 100644 index 00000000..68d3d31d --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/EmblemSet.txt @@ -0,0 +1,34 @@ +// ========================================= +// EmblemSet +// ========================================= +use EmblemSet; +set count layers layerCount; +set count categories categoryCount; +set count iconTypes iconTypeCount; +set count bgCategories iconTypeCount; +set count icons iconTypeCount; +set count backgrounds backgroundCount; +set count backgroundLookup backgroundLookupCount; + +// EmblemCategory +use EmblemCategory; +set string name; +set string description; + +// EmblemIconType +use EmblemIconType; +set string name; +set string description; + +// EmblemBGCategory +use EmblemBGCategory; +set string name; +set string description; + +// EmblemIcon +use EmblemIcon; +set string description; + +// EmblemBackground +use EmblemBackground; +set string description; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/FontIcon.txt b/src/ZoneCode/Game/T6/XAssets/FontIcon.txt new file mode 100644 index 00000000..2efc6208 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/FontIcon.txt @@ -0,0 +1,13 @@ +// ========================================= +// FontIcon +// ========================================= +use FontIcon; +set string name; +set name name; +set reusable fontIconEntry; +set count fontIconEntry numEntries; +set reusable fontIconAlias; +set count fontIconAlias numAliasEntries; + +// FontIconName +set string FontIconName::string; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/Font_s.txt b/src/ZoneCode/Game/T6/XAssets/Font_s.txt new file mode 100644 index 00000000..8cedd629 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/Font_s.txt @@ -0,0 +1,10 @@ +// ========================================= +// Font_s +// ========================================= +use Font_s; +set string fontName; +set name fontName; +set reusable glyphs; +set count glyphs glyphCount; +set reusable kerningPairs; +set count kerningPairs kerningPairsCount; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/FootstepFXTableDef.txt b/src/ZoneCode/Game/T6/XAssets/FootstepFXTableDef.txt new file mode 100644 index 00000000..8d708572 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/FootstepFXTableDef.txt @@ -0,0 +1,6 @@ +// ========================================= +// FootstepFXTableDef +// ========================================= +use FootstepFXTableDef; +set string name; +set name name; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/FootstepTableDef.txt b/src/ZoneCode/Game/T6/XAssets/FootstepTableDef.txt new file mode 100644 index 00000000..e3a96a9a --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/FootstepTableDef.txt @@ -0,0 +1,6 @@ +// ========================================= +// FootstepTableDef +// ========================================= +use FootstepTableDef; +set string name; +set name name; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/FxEffectDef.txt b/src/ZoneCode/Game/T6/XAssets/FxEffectDef.txt new file mode 100644 index 00000000..fe3a19dc --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/FxEffectDef.txt @@ -0,0 +1,53 @@ +// ========================================= +// FxEffectDef +// ========================================= +use FxEffectDef; +set string name; +set name name; +set count elemDefs elemDefCountLooping + elemDefCountOneShot + elemDefCountEmission; + +// FxElemDef +use FxElemDef; +set count velSamples velIntervalCount + 1; +set count visSamples visStateIntervalCount + 1; + +// FxElemDefVisuals +use FxElemDefVisuals; +set condition markArray FxElemDef::elemType == FX_ELEM_TYPE_DECAL; +set count markArray FxElemDef::visualCount; +set condition array FxElemDef::visualCount > 1; +set count array FxElemDef::visualCount; + +// FxElemVisuals +use FxElemVisuals; +set condition anonymous never; +set condition model FxElemDef::elemType == FX_ELEM_TYPE_MODEL; +set condition effectDef FxElemDef::elemType == FX_ELEM_TYPE_RUNNER; +set condition soundName FxElemDef::elemType == FX_ELEM_TYPE_SOUND; +set string soundName; +set condition lightDef FxElemDef::elemType == FX_ELEM_TYPE_SPOT_LIGHT; +set condition material FxElemDef::elemType == FX_ELEM_TYPE_SPRITE_BILLBOARD +|| FxElemDef::elemType == FX_ELEM_TYPE_SPRITE_ORIENTED +|| FxElemDef::elemType == FX_ELEM_TYPE_SPRITE_ROTATED +|| FxElemDef::elemType == FX_ELEM_TYPE_TAIL +|| FxElemDef::elemType == FX_ELEM_TYPE_LINE +|| FxElemDef::elemType == FX_ELEM_TYPE_TRAIL +|| FxElemDef::elemType == FX_ELEM_TYPE_CLOUD; + +// FxEffectDefRef +use FxEffectDefRef; +set condition handle never; +set string name; + +// FxElemExtendedDefPtr +use FxElemExtendedDefPtr; +set condition trailDef FxElemDef::elemType == FX_ELEM_TYPE_TRAIL; +set condition spotLightDef FxElemDef::elemType == FX_ELEM_TYPE_SPOT_LIGHT; + +// FxTrailDef +use FxTrailDef; +set count verts vertCount; +set count inds indCount; + +// FxElemSpawnSound +set string FxElemSpawnSound::spawnSound; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/FxImpactTable.txt b/src/ZoneCode/Game/T6/XAssets/FxImpactTable.txt new file mode 100644 index 00000000..c4ab5f3b --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/FxImpactTable.txt @@ -0,0 +1,7 @@ +// ========================================= +// FxImpactTable +// ========================================= +use FxImpactTable; +set string name; +set name name; +set count table 21; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/GameWorldMp.txt b/src/ZoneCode/Game/T6/XAssets/GameWorldMp.txt new file mode 100644 index 00000000..de8e45ee --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/GameWorldMp.txt @@ -0,0 +1,6 @@ +// ========================================= +// GameWorldMp +// ========================================= +use GameWorldMp; +set string name; +set name name; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/GameWorldSp.txt b/src/ZoneCode/Game/T6/XAssets/GameWorldSp.txt new file mode 100644 index 00000000..28f29508 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/GameWorldSp.txt @@ -0,0 +1,36 @@ +// ========================================= +// GameWorldSp +// ========================================= +use GameWorldSp; +set string name; +set name name; + +// PathData +use PathData; +set count nodes nodeCount + 128; +set block basenodes XFILE_BLOCK_RUNTIME_VIRTUAL; +set count basenodes nodeCount + 128; +set count pathVis visBytes; +set count smoothCache smoothBytes; +set count nodeTree nodeTreeCount; + +// pathnode_t +set condition pathnode_t::transient never; + +// pathnode_constant_t +use pathnode_constant_t; +set scriptstring targetname; +set scriptstring script_linkName; +set scriptstring script_noteworthy; +set scriptstring target; +set scriptstring animscript; +set count Links totalLinkCount; + +// pathnode_tree_t +use pathnode_tree_t; +set condition u::s axis < 0; +set reusable u::child; + +// pathnode_tree_nodes_t +use pathnode_tree_nodes_t; +set count nodes nodeCount; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/GfxImage.txt b/src/ZoneCode/Game/T6/XAssets/GfxImage.txt new file mode 100644 index 00000000..e59e9746 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/GfxImage.txt @@ -0,0 +1,23 @@ +// ========================================= +// GfxImage +// ========================================= +use GfxImage; +set action OnImageLoaded(GfxImage); +set string name; +set name name; +set condition pixels never; +reorder: + name + texture; + +// GfxTexture +use GfxTexture; +set reusable loadDef; +set block loadDef XFILE_BLOCK_TEMP; +set condition basemap never; +set condition texture never; + +// GfxImageLoadDef +use GfxImageLoadDef; +set action LoadImageData(GfxImageLoadDef, GfxImage); +set arraysize data resourceSize; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/GfxLightDef.txt b/src/ZoneCode/Game/T6/XAssets/GfxLightDef.txt new file mode 100644 index 00000000..a587320e --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/GfxLightDef.txt @@ -0,0 +1,6 @@ +// ========================================= +// GfxLightDef +// ========================================= +use GfxLightDef; +set string name; +set name name; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/GfxWorld.txt b/src/ZoneCode/Game/T6/XAssets/GfxWorld.txt new file mode 100644 index 00000000..07145d72 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/GfxWorld.txt @@ -0,0 +1,199 @@ +// ========================================= +// GfxWorld +// ========================================= +use GfxWorld; +set string name; +set name name; +set string baseName; +set string skyBoxModel; +set reusable sunLight; +set count coronas coronaCount; +set count shadowMapVolumes shadowMapVolumeCount; +set count shadowMapVolumePlanes shadowMapVolumePlaneCount; +set count exposureVolumes exposureVolumeCount; +set count exposureVolumePlanes exposureVolumePlaneCount; +set count worldFogVolumes worldFogVolumeCount; +set count worldFogVolumePlanes worldFogVolumePlaneCount; +set count worldFogModifierVolumes worldFogModifierVolumeCount; +set count worldFogModifierVolumePlanes worldFogModifierVolumePlaneCount; +set count lutVolumes lutVolumeCount; +set count lutVolumePlanes lutVolumePlaneCount; +set count cells dpvsPlanes::cellCount; +set count models modelCount; +set count materialMemory materialMemoryCount; +set block cellCasterBits XFILE_BLOCK_RUNTIME_VIRTUAL; +set count cellCasterBits dpvsPlanes::cellCount * ((dpvsPlanes::cellCount + 31) / 32); +set block sceneDynModel XFILE_BLOCK_RUNTIME_VIRTUAL; +set count sceneDynModel dpvsDyn::dynEntClientCount[0]; +set block sceneDynBrush XFILE_BLOCK_RUNTIME_VIRTUAL; +set count sceneDynBrush dpvsDyn::dynEntClientCount[1]; +set block primaryLightEntityShadowVis XFILE_BLOCK_RUNTIME_VIRTUAL; +set count primaryLightEntityShadowVis (primaryLightCount - sunPrimaryLightIndex - 1) * 0x2000; +set block primaryLightDynEntShadowVis XFILE_BLOCK_RUNTIME_VIRTUAL; +set count primaryLightDynEntShadowVis[0] dpvsDyn::dynEntClientCount[0] * (primaryLightCount - sunPrimaryLightIndex - 1); +set count primaryLightDynEntShadowVis[1] dpvsDyn::dynEntClientCount[1] * (primaryLightCount - sunPrimaryLightIndex - 1); +set count siegeSkinInsts numSiegeSkinInsts; +set count shadowGeom primaryLightCount; +set count lightRegion primaryLightCount; +set count occluders numOccluders; +set count outdoorBounds numOutdoorBounds; +set count heroLights heroLightCount; +set count heroLightTree heroLightTreeCount; + +// GfxWorldStreamInfo +use GfxWorldStreamInfo; +set count aabbTrees aabbTreeCount; +set count leafRefs leafRefCount; + +// GfxWorldDpvsPlanes +use GfxWorldDpvsPlanes; +set reusable planes; +set count planes GfxWorld::planeCount; +set count nodes GfxWorld::nodeCount; +set block sceneEntCellBits XFILE_BLOCK_RUNTIME_VIRTUAL; +set count sceneEntCellBits cellCount * 0x200; + +// GfxCell +use GfxCell; +set count aabbTree aabbTreeCount; +set count portals portalCount; +set count reflectionProbes reflectionProbeCount; + +// GfxAabbTree +use GfxAabbTree; +set reusable smodelIndexes; +set count smodelIndexes smodelIndexCount; + +// GfxPortal +use GfxPortal; +set condition writable never; +set reusable cell; +set count vertices vertexCount; + +// GfxWorldDraw +use GfxWorldDraw; +set count reflectionProbes reflectionProbeCount; +set block reflectionProbeTextures XFILE_BLOCK_RUNTIME_VIRTUAL; +set count reflectionProbeTextures reflectionProbeCount; +set count lightmaps lightmapCount; +set block lightmapPrimaryTextures XFILE_BLOCK_RUNTIME_VIRTUAL; +set count lightmapPrimaryTextures lightmapCount; +set block lightmapSecondaryTextures XFILE_BLOCK_RUNTIME_VIRTUAL; +set count lightmapSecondaryTextures lightmapCount; +set count indices indexCount; +set condition indexBuffer never; + +// GfxReflectionProbe +use GfxReflectionProbe; +set count probeVolumes probeVolumeCount; + +// GfxWorldVertexData0 +use GfxWorldVertexData0; +set count data GfxWorldDraw::vertexDataSize0; +set condition vb never; + +// GfxWorldVertexData1 +use GfxWorldVertexData1; +set count data GfxWorldDraw::vertexDataSize1; +set condition vb never; + +// GfxLightGrid +use GfxLightGrid; +set count rowDataStart maxs[rowAxis] - mins[rowAxis] + 1; +set count rawRowData rawRowDataSize; +set count entries entryCount; +set count colors colorCount; +set count coeffs coeffCount; +set count skyGridVolumes skyGridVolumeCount; + +// SSkinInstance +use SSkinInstance; +set reusable shaders; +set reusable model; +set reusable anim; +set count instVerts model::numVerts; + +// SSkinShaders +use SSkinShaders; +set count pixelShaderAlign pixelShaderSize; +set count pixelShader pixelShaderSize; +set count vertexShader vertexShaderSize; + +// SSkinModel +use SSkinModel; +set count verts numVerts; +set count tris numTris; + +// SSkinAnim +use SSkinAnim; +set count data 4 * width * frames; + +// GfxShadowGeometry +use GfxShadowGeometry; +set count sortedSurfIndex surfaceCount; +set count smodelIndex smodelCount; + +// GfxLightRegion +use GfxLightRegion; +set count hulls hullCount; + +// GfxLightRegionHull +use GfxLightRegionHull; +set count axis axisCount; + +// GfxWorldDpvsStatic +use GfxWorldDpvsStatic; +set block smodelVisData XFILE_BLOCK_RUNTIME_VIRTUAL; +set count smodelVisData smodelVisDataCount; +set block surfaceVisData XFILE_BLOCK_RUNTIME_VIRTUAL; +set count surfaceVisData surfaceVisDataCount; +set block smodelVisDataCameraSaved XFILE_BLOCK_RUNTIME_VIRTUAL; +set count smodelVisDataCameraSaved smodelVisDataCount; +set block surfaceVisDataCameraSaved XFILE_BLOCK_RUNTIME_VIRTUAL; +set count surfaceVisDataCameraSaved surfaceVisDataCount; +set block surfaceCastsSunShadow XFILE_BLOCK_RUNTIME_VIRTUAL; +set count surfaceCastsSunShadow surfaceVisDataCount; +set block surfaceCastsShadow XFILE_BLOCK_RUNTIME_VIRTUAL; +set count surfaceCastsShadow surfaceVisDataCount; +set count smodelCastsShadow smodelVisDataCount; +set count sortedSurfIndex staticSurfaceCount; +set count smodelInsts smodelCount; +set count surfaces GfxWorld::surfaceCount; +set count smodelDrawInsts smodelCount; +set block surfaceMaterials XFILE_BLOCK_RUNTIME_VIRTUAL; +set count surfaceMaterials staticSurfaceCount; +reorder: + smodelVisData + surfaceVisData + smodelVisDataCameraSaved + surfaceVisDataCameraSaved + surfaceCastsSunShadow + surfaceCastsShadow + smodelCastsShadow + sortedSurfIndex + smodelInsts + surfaces + smodelDrawInsts + surfaceMaterials; + +// GfxStaticModelLmapVertexInfo +use GfxStaticModelLmapVertexInfo; +set count lmapVertexColors numLmapVertexColors; +set condition lmapVertexColorsVB never; + +// GfxWorldDpvsDynamic +use GfxWorldDpvsDynamic; +set block dynEntCellBits XFILE_BLOCK_RUNTIME_VIRTUAL; +set count dynEntCellBits[0] dynEntClientWordCount[0] * GfxWorld::dpvsPlanes::cellCount; +set count dynEntCellBits[1] dynEntClientWordCount[1] * GfxWorld::dpvsPlanes::cellCount; +set block dynEntVisData XFILE_BLOCK_RUNTIME_VIRTUAL; +set count dynEntVisData[0][0] 32 * dynEntClientWordCount[0]; +set count dynEntVisData[1][0] 32 * dynEntClientWordCount[1]; +set count dynEntVisData[0][1] 32 * dynEntClientWordCount[0]; +set count dynEntVisData[1][1] 32 * dynEntClientWordCount[1]; +set count dynEntVisData[0][2] 32 * dynEntClientWordCount[0]; +set count dynEntVisData[1][2] 32 * dynEntClientWordCount[1]; + +// GfxWaterBuffer +use GfxWaterBuffer; +set count buffer bufferSize / 16; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/Glasses.txt b/src/ZoneCode/Game/T6/XAssets/Glasses.txt new file mode 100644 index 00000000..e7913e73 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/Glasses.txt @@ -0,0 +1,20 @@ +// ========================================= +// Glasses +// ========================================= +use Glasses; +set string name; +set name name; +set count glasses numGlasses; +set condition workMemory never; + +// Glass +use Glass; +set reusable glassDef; +set count outline numOutlineVerts; + +// GlassDef +use GlassDef; +set string name; +set string crackSound; +set string shatterShound; +set string autoShatterShound; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/KeyValuePairs.txt b/src/ZoneCode/Game/T6/XAssets/KeyValuePairs.txt new file mode 100644 index 00000000..50cd661d --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/KeyValuePairs.txt @@ -0,0 +1,10 @@ +// ========================================= +// KeyValuePairs +// ========================================= +use KeyValuePairs; +set string name; +set name name; +set count keyValuePairs numVariables; + +// KeyValuePair +set string KeyValuePair::value; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/LeaderboardDef.txt b/src/ZoneCode/Game/T6/XAssets/LeaderboardDef.txt new file mode 100644 index 00000000..abf1ead9 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/LeaderboardDef.txt @@ -0,0 +1,13 @@ +// ========================================= +// LeaderboardDef +// ========================================= +use LeaderboardDef; +set string name; +set name name; +set count columns columnCount; + +// LbColumnDef +use LbColumnDef; +set string name; +set string statName; +set string localization; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/LocalizeEntry.txt b/src/ZoneCode/Game/T6/XAssets/LocalizeEntry.txt new file mode 100644 index 00000000..95c71e26 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/LocalizeEntry.txt @@ -0,0 +1,7 @@ +// ========================================= +// LocalizeEntry +// ========================================= +use LocalizeEntry; +set string value; +set string name; +set name name; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/MapEnts.txt b/src/ZoneCode/Game/T6/XAssets/MapEnts.txt new file mode 100644 index 00000000..a7db1dfb --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/MapEnts.txt @@ -0,0 +1,16 @@ +// ========================================= +// MapEnts +// ========================================= +use MapEnts; +set string name; +set name name; +set count entityString numEntityChars; + +// MapTriggers +use MapTriggers; +set count models count; +set reusable models; +set count hulls hullCount; +set reusable hulls; +set count slabs slabCount; +set reusable slabs; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/Material.txt b/src/ZoneCode/Game/T6/XAssets/Material.txt new file mode 100644 index 00000000..a079ca8e --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/Material.txt @@ -0,0 +1,18 @@ +// ========================================= +// Material +// ========================================= +use Material; +set string info::name; +set name info::name; +set reusable textureTable; +set count textureTable textureCount; +set reusable constantTable; +set count constantTable constantCount; +set reusable stateBitsTable; +set count stateBitsTable stateBitsCount; + +// GfxStateBits +use GfxStateBits; +set condition blendState never; +set condition depthStencilState never; +set condition rasterizerState never; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/MaterialTechniqueSet.txt b/src/ZoneCode/Game/T6/XAssets/MaterialTechniqueSet.txt new file mode 100644 index 00000000..2ec72626 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/MaterialTechniqueSet.txt @@ -0,0 +1,54 @@ +// ========================================= +// MaterialTechniqueSet +// ========================================= +use MaterialTechniqueSet; +set string name; +set name name; +set reusable techniques; + +// MaterialTechnique +use MaterialTechnique; +set string name; +set arraysize passArray passCount; +reorder: + passArray + name; + +// MaterialPass +use MaterialPass; +set count args perPrimArgCount + perObjArgCount + stableArgCount; +set reusable vertexShader; +set reusable vertexDecl; +set reusable pixelShader; +reorder: + vertexShader + vertexDecl + pixelShader + args; + +// MaterialVertexStreamRouting +set condition MaterialVertexStreamRouting::decl never; + +// MaterialVertexShader +set string MaterialVertexShader::name; + +// MaterialVertexShaderProgram +set condition MaterialVertexShaderProgram::vs never; + +// GfxVertexShaderLoadDef +set count GfxVertexShaderLoadDef::program programSize; + +// MaterialPixelShader; +set string MaterialPixelShader::name; + +// MaterialPixelShaderProgram +set condition MaterialPixelShaderProgram::ps never; + +// GfxPixelShaderLoadDef +set count GfxPixelShaderLoadDef::program programSize; + +// MaterialShaderArgument +use MaterialShaderArgument; +set condition u::literalConst type == MTL_ARG_LITERAL_VERTEX_CONST +|| type == MTL_ARG_LITERAL_PIXEL_CONST; +set reusable u::literalConst; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/MemoryBlock.txt b/src/ZoneCode/Game/T6/XAssets/MemoryBlock.txt new file mode 100644 index 00000000..5430863a --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/MemoryBlock.txt @@ -0,0 +1,6 @@ +// ========================================= +// MemoryBlock +// ========================================= +use MemoryBlock; +set string name; +set name name; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/MenuList.txt b/src/ZoneCode/Game/T6/XAssets/MenuList.txt new file mode 100644 index 00000000..bcc2bb31 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/MenuList.txt @@ -0,0 +1,7 @@ +// ========================================= +// MenuList +// ========================================= +use MenuList; +set string name; +set name name; +set count menus menuCount; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/PhysConstraints.txt b/src/ZoneCode/Game/T6/XAssets/PhysConstraints.txt new file mode 100644 index 00000000..386fa670 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/PhysConstraints.txt @@ -0,0 +1,13 @@ +// ========================================= +// PhysConstraints +// ========================================= +use PhysConstraints; +set string name; +set name name; + +use PhysConstraint; +set scriptstring targetname; +set scriptstring target_ent1; +set string target_bone1; +set scriptstring target_ent2; +set string target_bone2; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/PhysPreset.txt b/src/ZoneCode/Game/T6/XAssets/PhysPreset.txt new file mode 100644 index 00000000..7478bc2a --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/PhysPreset.txt @@ -0,0 +1,7 @@ +// ========================================= +// PhysPreset +// ========================================= +use PhysPreset; +set string name; +set name name; +set string sndAliasPrefix; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/Qdb.txt b/src/ZoneCode/Game/T6/XAssets/Qdb.txt new file mode 100644 index 00000000..b9b1b8cd --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/Qdb.txt @@ -0,0 +1,7 @@ +// ========================================= +// Qdb +// ========================================= +use Qdb; +set string name; +set name name; +set count buffer len + 1; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/RawFile.txt b/src/ZoneCode/Game/T6/XAssets/RawFile.txt new file mode 100644 index 00000000..242b2d68 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/RawFile.txt @@ -0,0 +1,7 @@ +// ========================================= +// RawFile +// ========================================= +use RawFile; +set string name; +set name name; +set count buffer len + 1; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/ScriptParseTree.txt b/src/ZoneCode/Game/T6/XAssets/ScriptParseTree.txt new file mode 100644 index 00000000..ce008f94 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/ScriptParseTree.txt @@ -0,0 +1,7 @@ +// ========================================= +// ScriptParseTree +// ========================================= +use ScriptParseTree; +set string name; +set name name; +set count buffer len + 1; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/SkinnedVertsDef.txt b/src/ZoneCode/Game/T6/XAssets/SkinnedVertsDef.txt new file mode 100644 index 00000000..2cf5c334 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/SkinnedVertsDef.txt @@ -0,0 +1,6 @@ +// ========================================= +// SkinnedVertsDef +// ========================================= +use SkinnedVertsDef; +set string name; +set name name; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/Slug.txt b/src/ZoneCode/Game/T6/XAssets/Slug.txt new file mode 100644 index 00000000..fd9cabaf --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/Slug.txt @@ -0,0 +1,7 @@ +// ========================================= +// Slug +// ========================================= +use Slug; +set string name; +set name name; +set count buffer len + 1; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/SndBank.txt b/src/ZoneCode/Game/T6/XAssets/SndBank.txt new file mode 100644 index 00000000..7818e60a --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/SndBank.txt @@ -0,0 +1,41 @@ +// ========================================= +// SndBank +// ========================================= +use SndBank; +set string name; +set name name; +set count alias aliasCount; +set count aliasIndex aliasCount; +set count radverbs radverbCount; +set count ducks duckCount; +set count scriptIdLookups scriptIdLookupCount; + +// SndAliasList +use SndAliasList; +set string name; +set reusable head; +set count head count; + +// SndAlias +use SndAlias; +set string name; +set string subtitle; +set string secondaryname; +set string assetFileName; + +// SndDuck +use SndDuck; +set count attenuation 32; +set count filter 32; + +// SndRuntimeAssetBank +use SndRuntimeAssetBank; +set string zone; +set string language; + +// SndLoadedAssets +use SndLoadedAssets; +set string zone; +set string language; +set count entries entryCount; +set count data dataSize; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/SndDriverGlobals.txt b/src/ZoneCode/Game/T6/XAssets/SndDriverGlobals.txt new file mode 100644 index 00000000..9223752c --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/SndDriverGlobals.txt @@ -0,0 +1,14 @@ +// ========================================= +// SndDriverGlobals +// ========================================= +use SndDriverGlobals; +set string name; +set name name; +set count groups groupCount; +set count curves curveCount; +set count pans panCount; +set count duckGroups duckGroupCount; +set count contexts contextCount; +set count masters masterCount; +set count voiceDucks voiceDuckCount; +set count futzes futzCount; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/SndPatch.txt b/src/ZoneCode/Game/T6/XAssets/SndPatch.txt new file mode 100644 index 00000000..14739cbd --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/SndPatch.txt @@ -0,0 +1,7 @@ +// ========================================= +// SndPatch +// ========================================= +use SndPatch; +set string name; +set name name; +set count elements elementCount; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/StringTable.txt b/src/ZoneCode/Game/T6/XAssets/StringTable.txt new file mode 100644 index 00000000..7620e719 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/StringTable.txt @@ -0,0 +1,11 @@ +// ========================================= +// StringTable +// ========================================= +use StringTable; +set string name; +set name name; +set count values columnCount * rowCount; +set count cellIndex columnCount * rowCount; + +// StringTableCell +set string StringTableCell::string; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/TracerDef.txt b/src/ZoneCode/Game/T6/XAssets/TracerDef.txt new file mode 100644 index 00000000..63ff7667 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/TracerDef.txt @@ -0,0 +1,6 @@ +// ========================================= +// TracerDef +// ========================================= +use TracerDef; +set string name; +set name name; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/VehicleDef.txt b/src/ZoneCode/Game/T6/XAssets/VehicleDef.txt new file mode 100644 index 00000000..4780632e --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/VehicleDef.txt @@ -0,0 +1,51 @@ +// ========================================= +// VehicleDef +// ========================================= +use VehicleDef; +set string name; +set name name; +set string turretWeapon; +set string gunnerWeapon; +set string sndNames; +set string sndMaterialNames; +set string futzName; +set string animSet; +set scriptstring extraWheelTags; +set scriptstring driverHideTag; +set scriptstring attachmentTags; +set scriptstring deathAttachmentTags; +set scriptstring deathFxTag; +set string deathFxSound; +set scriptstring lightFxTag; +set scriptstring friendlyLightFxTag; +set scriptstring enemyLightFxTag; +set string shootShock; +set string shootRumble; +set string rumbleType; +set string compassIcon; +set string gasButtonName; +set string reverseBrakeButtonName; +set string handBrakeButtonName; +set string attackButtonName; +set string attackSecondaryButtonName; +set string boostButtonName; +set string moveUpButtonName; +set string moveDownButtonName; +set string switchSeatButtonName; +set string steerGraphName; +set condition steerGraph never; +set string accelGraphName; +set condition accelGraph never; +set string csvInclude; + +// VehicleParameter +use VehicleParameter; +set string m_name; + +// VehicleDriveBySound +use VehicleDriveBySound; +set string name; + +// VehicleEngineSound +use VehicleEngineSound; +set string name; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/WeaponAttachment.txt b/src/ZoneCode/Game/T6/XAssets/WeaponAttachment.txt new file mode 100644 index 00000000..314fff50 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/WeaponAttachment.txt @@ -0,0 +1,7 @@ +// ========================================= +// WeaponAttachment +// ========================================= +use WeaponAttachment; +set string szInternalName; +set name szInternalName; +set string szDisplayName; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/WeaponAttachmentUnique.txt b/src/ZoneCode/Game/T6/XAssets/WeaponAttachmentUnique.txt new file mode 100644 index 00000000..898456fd --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/WeaponAttachmentUnique.txt @@ -0,0 +1,32 @@ +// ========================================= +// WeaponAttachmentUnique +// ========================================= +use WeaponAttachmentUnique; +set string szInternalName; +set name szInternalName; +set string szAltWeaponName; +set string szDualWieldWeaponName; +set scriptstring hideTags; +set count hideTags 32; +set reusable hideTags; +set string viewModelTag; +set string worldModelTag; +set string szXAnims; +set count szXAnims 88; +set reusable szXAnims; +set count locationDamageMultipliers 21; +set reusable locationDamageMultipliers; +set string fireSound; +set string fireSoundPlayer; +set string fireLoopSound; +set string fireLoopSoundPlayer; +set string fireLoopEndSound; +set string fireLoopEndSoundPlayer; +set string fireStartSound; +set string fireStopSound; +set string fireStartSoundPlayer; +set string fireStopSoundPlayer; +set string fireLastSound; +set string fireLastSoundPlayer; +set string fireKillcamSound; +set string fireKillcamSoundPlayer; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/WeaponCamo.txt b/src/ZoneCode/Game/T6/XAssets/WeaponCamo.txt new file mode 100644 index 00000000..704d7947 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/WeaponCamo.txt @@ -0,0 +1,17 @@ +// ========================================= +// WeaponCamo +// ========================================= +use WeaponCamo; +set string name; +set name name; +set count camoSets numCamoSets; +set count camoMaterials numCamoMaterials; + +// WeaponCamoMaterialSet +use WeaponCamoMaterialSet; +set count materials numMaterials; + +// WeaponCamoMaterial +use WeaponCamoMaterial; +set count baseMaterials numBaseMaterials; +set count camoMaterials numBaseMaterials; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/WeaponVariantDef.txt b/src/ZoneCode/Game/T6/XAssets/WeaponVariantDef.txt new file mode 100644 index 00000000..9f3e6d77 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/WeaponVariantDef.txt @@ -0,0 +1,193 @@ +// ========================================= +// WeaponVariantDef +// ========================================= +use WeaponVariantDef; +set string szInternalName; +set name szInternalName; +set reusable weapDef; +set string szDisplayName; +set string szAltWeaponName; +set string szAttachmentUnique; +set count attachments 63; +set reusable attachments; +set count attachmentUniques 95; +set reusable attachmentUniques; +set string szXAnims; +set count szXAnims 88; +set reusable szXAnims; +set scriptstring hideTags; +set count hideTags 32; +set reusable hideTags; +set count attachViewModel 8; +set reusable attachViewModel; +set count attachWorldModel 8; +set reusable attachWorldModel; +set string attachViewModelTag; +set count attachViewModelTag 8; +set reusable attachViewModelTag; +set string attachWorldModelTag; +set count attachWorldModelTag 8; +set reusable attachWorldModelTag; +set string szAmmoDisplayName; +set string szAmmoName; +set string szClipName; + +// WeaponDef +use WeaponDef; +set string szOverlayName; +set count gunXModel 16; +set reusable gunXModel; +set string szModeName; +set scriptstring notetrackSoundMapKeys; +set count notetrackSoundMapKeys 20; +set reusable notetrackSoundMapKeys; +set scriptstring notetrackSoundMapValues; +set count notetrackSoundMapValues 20; +set reusable notetrackSoundMapValues; +set string parentWeaponName; +set string pickupSound; +set string pickupSoundPlayer; +set string ammoPickupSound; +set string ammoPickupSoundPlayer; +set string projectileSound; +set string pullbackSound; +set string pullbackSoundPlayer; +set string fireSound; +set string fireSoundPlayer; +set string fireLoopSound; +set string fireLoopSoundPlayer; +set string fireLoopEndSound; +set string fireLoopEndSoundPlayer; +set string fireStartSound; +set string fireStopSound; +set string fireKillcamSound; +set string fireStartSoundPlayer; +set string fireStopSoundPlayer; +set string fireKillcamSoundPlayer; +set string fireLastSound; +set string fireLastSoundPlayer; +set string emptyFireSound; +set string emptyFireSoundPlayer; +set string crackSound; +set string whizbySound; +set string meleeSwipeSound; +set string meleeSwipeSoundPlayer; +set string meleeHitSound; +set string meleeMissSound; +set string rechamberSound; +set string rechamberSoundPlayer; +set string reloadSound; +set string reloadSoundPlayer; +set string reloadEmptySound; +set string reloadEmptySoundPlayer; +set string reloadStartSound; +set string reloadStartSoundPlayer; +set string reloadEndSound; +set string reloadEndSoundPlayer; +set string rotateLoopSound; +set string rotateLoopSoundPlayer; +set string rotateStopSound; +set string rotateStopSoundPlayer; +set string deploySound; +set string deploySoundPlayer; +set string finishDeploySound; +set string finishDeploySoundPlayer; +set string breakdownSound; +set string breakdownSoundPlayer; +set string finishBreakdownSound; +set string finishBreakdownSoundPlayer; +set string detonateSound; +set string detonateSoundPlayer; +set string nightVisionWearSound; +set string nightVisionWearSoundPlayer; +set string nightVisionRemoveSound; +set string nightVisionRemoveSoundPlayer; +set string altSwitchSound; +set string altSwitchSoundPlayer; +set string raiseSound; +set string raiseSoundPlayer; +set string firstRaiseSound; +set string firstRaiseSoundPlayer; +set string adsRaiseSoundPlayer; +set string adsLowerSoundPlayer; +set string putawaySound; +set string putawaySoundPlayer; +set string overheatSound; +set string overheatSoundPlayer; +set string adsZoomSound; +set string shellCasing; +set string shellCasingPlayer; +set string bounceSound; +set count bounceSound 32; +set reusable bounceSound; +set string standMountedWeapdef; +set string crouchMountedWeapdef; +set string proneMountedWeapdef; +set count worldModel 16; +set reusable worldModel; +set string szSharedAmmoCapName; +set scriptstring explosionTag; +set string spinLoopSound; +set string spinLoopSoundPlayer; +set string startSpinSound; +set string startSpinSoundPlayer; +set string stopSpinSound; +set string stopSpinSoundPlayer; +set string stackSound; +set string szSpawnedGrenadeWeaponName; +set string szDualWieldWeaponName; +set string projExplosionSound; +set string projDudSound; +set string mortarShellSound; +set string tankShellSound; +set count parallelBounce 32; +set reusable parallelBounce; +set count perpendicularBounce 32; +set reusable perpendicularBounce; +set string projIgnitionSound; +set string accuracyGraphName0; +set string accuracyGraphName1; +set reusable accuracyGraphKnots0; +set reusable accuracyGraphKnots1; +set count accuracyGraphKnots0 accuracyGraphKnotCount[0]; +set count accuracyGraphKnots1 accuracyGraphKnotCount[1]; +set reusable originalAccuracyGraphKnots0; +set reusable originalAccuracyGraphKnots1; +set count originalAccuracyGraphKnots0 accuracyGraphKnotCount[0]; +set count originalAccuracyGraphKnots1 accuracyGraphKnotCount[1]; +set string szUseHintString; +set string dropHintString; +set string szScript; +set count locationDamageMultipliers 21; +set reusable locationDamageMultipliers; +set string fireRumble; +set string meleeImpactRumble; +set string reloadRumble; +set string explosionRumble; +set string flameTableFirstPerson; +set string flameTableThirdPerson; +set reusable flameTableFirstPersonPtr; +set reusable flameTableThirdPersonPtr; +set string throwBackType; + +reorder: +... +accuracyGraphName0 +accuracyGraphKnots0 +originalAccuracyGraphKnots0 +accuracyGraphName1 +accuracyGraphKnots1 +originalAccuracyGraphKnots1; + +reorder: +... +killIcon +indicatorIcon; + +// flameTable +use flameTable; +set string name; +set string flameOffLoopSound; +set string flameIgniteSound; +set string flameOnLoopSound; +set string flameCooldownSound; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/XAnimParts.txt b/src/ZoneCode/Game/T6/XAssets/XAnimParts.txt new file mode 100644 index 00000000..b519c6d1 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/XAnimParts.txt @@ -0,0 +1,82 @@ +// ========================================= +// XAnimParts +// ========================================= +use XAnimParts; +set string name; +set name name; +set scriptstring names; +set count names boneCount[9]; +set count notify notifyCount; +set count deltaPart 1; +set count dataByte dataByteCount; +set count dataShort dataShortCount; +set count dataInt dataIntCount; +set count randomDataShort randomDataShortCount; +set count randomDataByte randomDataByteCount; +set count randomDataInt randomDataIntCount; +set count indices::_1 indexCount; +set count indices::_2 indexCount; +set condition indices::_1 numframes < 256; +set condition indices::data never; +reorder: + name + names + notify + deltaPart + dataByte + dataShort + dataInt + randomDataShort + randomDataByte + randomDataInt + indices; + +// XAnimNotifyInfo +set scriptstring XAnimNotifyInfo::name; + +// XAnimDeltaPart +use XAnimDeltaPart; +set count trans 1; +set count quat2 1; +set count quat 1; + +// XAnimPartTrans +use XAnimPartTrans; +set condition u::frames size > 0; +set condition u::frames::indices::_1 XAnimParts::numframes < 256; +set arraysize u::frames::indices::_1 size + 1; +set arraysize u::frames::indices::_2 size + 1; +set condition u::frames::frames::_1 smallTrans; +set count u::frames::frames::_1 size + 1; +set count u::frames::frames::_2 size + 1; + +// XAnimPartTransFrames +reorder XAnimPartTransFrames: + indices + frames; + +// XAnimDeltaPartQuat2 +use XAnimDeltaPartQuat2; +set condition u::frames size > 0; +set condition u::frames::indices::_1 XAnimParts::numframes < 256; +set arraysize u::frames::indices::_1 size + 1; +set arraysize u::frames::indices::_2 size + 1; +set count u::frames::frames size + 1; + +// XAnimDeltaPartQuatDataFrames2 +reorder XAnimDeltaPartQuatDataFrames2: + indices + frames; + +// XAnimDeltaPartQuat +use XAnimDeltaPartQuat; +set condition u::frames size > 0; +set condition u::frames::indices::_1 XAnimParts::numframes < 256; +set arraysize u::frames::indices::_1 size + 1; +set arraysize u::frames::indices::_2 size + 1; +set count u::frames::frames size + 1; + +// XAnimDeltaPartQuatDataFrames +reorder XAnimDeltaPartQuatDataFrames: + indices + frames; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/XGlobals.txt b/src/ZoneCode/Game/T6/XAssets/XGlobals.txt new file mode 100644 index 00000000..24a41e4c --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/XGlobals.txt @@ -0,0 +1,16 @@ +// ========================================= +// XGlobals +// ========================================= +use XGlobals; +set string name; +set name name; +set arraycount gumps gumpsCount; +set condition gumps gumpsCount >= 0 && gumpsCount <= 32; +set arraycount overlays overlayCount; +set condition overlays overlayCount >= 0 && overlayCount <= 32; + +// gump_info_t +set string gump_info_t::name; + +// overlay_info_t +set string overlay_info_t::name; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/XModel.txt b/src/ZoneCode/Game/T6/XAssets/XModel.txt new file mode 100644 index 00000000..68951a96 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/XModel.txt @@ -0,0 +1,90 @@ +// ========================================= +// XModel +// ========================================= +use XModel; +set string name; +set name name; +set scriptstring boneNames; +set reusable boneNames; +set count boneNames numBones; +set reusable parentList; +set count parentList numBones - numRootBones; +set reusable quats; +set count quats numBones - numRootBones; +set reusable trans; +set count trans numBones - numRootBones; +set reusable partClassification; +set count partClassification numBones; +set reusable baseMat; +set count baseMat numBones; +set count surfs numsurfs; +set count materialHandles numsurfs; +set count collSurfs numCollSurfs; +set count boneInfo numBones; +set count himipInvSqRadii numsurfs; +set count collmaps numCollmaps; + +// XSurface +use XSurface; +set condition verts0 !(flags & 1); +set reusable verts0; +set count verts0 vertCount; +set condition vb0 never; +set reusable vertList; +set count vertList vertListCount; +set reusable triIndices; +set count triIndices triCount; +set condition indexBuffer never; +reorder: + vertInfo + verts0 + vertList + triIndices; + +// XSurfaceVertexInfo +use XSurfaceVertexInfo; +set reusable vertsBlend; +set count vertsBlend vertCount[0] + + 3 * vertCount[1] + + 5 * vertCount[2] + + 7 * vertCount[3]; +set reusable tensionData; +set count tensionData vertCount[0] + + vertCount[1] + + vertCount[2] + + vertCount[3]; + +// XRigidVertList +set reusable XRigidVertList::collisionTree; + +// XSurfaceCollisionTree +use XSurfaceCollisionTree; +set count nodes nodeCount; +set count leafs leafCount; + +// XModelCollSurf_s +set count XModelCollSurf_s::collTris numCollTris; + +// Collmap +set count Collmap::geomList 1; + +// PhysGeomList +set count PhysGeomList::geoms count; + +// PhysGeomInfo +use PhysGeomInfo; +set reusable brush; +set count brush 1; + +// BrushWrapper +use BrushWrapper; +set count sides numsides; +set reusable verts; +set count verts numverts; +set reusable planes; +set count planes numsides; + +// cbrushside_t +use cbrushside_t; +set reusable plane; +set count plane 1; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/ZBarrierDef.txt b/src/ZoneCode/Game/T6/XAssets/ZBarrierDef.txt new file mode 100644 index 00000000..456ac914 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/ZBarrierDef.txt @@ -0,0 +1,15 @@ +// ========================================= +// ZBarrierDef +// ========================================= +use ZBarrierDef; +set string name; +set name name; +set scriptstring zombieTauntAnimState; +set scriptstring zombieReachThroughAnimState; + +// ZBarrierBoard +use ZBarrierBoard; +set string pTearAnim; +set string pBoardAnim; +set scriptstring zombieBoardTearStateName; +set scriptstring zombieBoardTearSubStateName; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/clipMap_t.txt b/src/ZoneCode/Game/T6/XAssets/clipMap_t.txt new file mode 100644 index 00000000..e2b567c7 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/clipMap_t.txt @@ -0,0 +1,96 @@ +// ========================================= +// clipMap_t +// ========================================= +use clipMap_t; +set string name; +set name name; +set block pInfo XFILE_BLOCK_TEMP; +set reusable pInfo; +set count staticModelList numStaticModels; +set count nodes numNodes; +set count leafs numLeafs; +set count verts vertCount; +set count triIndices triCount; +set count triEdgeIsWalkable ((3 * triCount + 31) / 32) * 4; +set count partitions partitionCount; +set count aabbTrees aabbTreeCount; +set count cmodels numSubModels; +set count visibility numClusters * clusterBytes; +set reusable box_brush; +set count dynEntDefList[0] dynEntCount[0]; +set count dynEntDefList[1] dynEntCount[1]; +set block dynEntPoseList XFILE_BLOCK_RUNTIME_VIRTUAL; +set count dynEntPoseList[0] dynEntCount[0]; +set count dynEntPoseList[1] dynEntCount[1]; +set block dynEntClientList XFILE_BLOCK_RUNTIME_VIRTUAL; +set count dynEntClientList[0] dynEntCount[0]; +set count dynEntClientList[1] dynEntCount[1]; +set block dynEntServerList XFILE_BLOCK_RUNTIME_VIRTUAL; +set count dynEntServerList[0] dynEntCount[2]; +set count dynEntServerList[1] dynEntCount[3]; +set block dynEntCollList XFILE_BLOCK_RUNTIME_VIRTUAL; +set count dynEntCollList[0] dynEntCount[0]; +set count dynEntCollList[1] dynEntCount[1]; +set count dynEntCollList[2] dynEntCount[2]; +set count dynEntCollList[3] dynEntCount[3]; +set count constraints num_constraints; +set block ropes XFILE_BLOCK_RUNTIME_VIRTUAL; +set count ropes max_ropes; + +// ClipInfo +use ClipInfo; +set reusable planes; +set count planes planeCount; +set reusable materials; +set count materials numMaterials; +set reusable brushsides; +set count brushsides numBrushSides; +set reusable leafbrushNodes; +set count leafbrushNodes leafbrushNodesCount; +set reusable leafbrushes; +set count leafbrushes numLeafBrushes; +set count brushVerts numBrushVerts; +set count uinds nuinds; +set reusable brushes; +set count brushes numBrushes; +set reusable brushBounds; +set count brushBounds numBrushes; +set reusable brushContents; +set count brushContents numBrushes; + +// ClipMaterial +set string ClipMaterial::name; + +// cbrushside_t +set reusable cbrushside_t::plane; + +// cLeafBrushNode_s +use cLeafBrushNode_s; +set condition data::leaf leafBrushCount > 0; +set reusable data::leaf::brushes; +set count data::leaf::brushes leafBrushCount; + +// cbrush_t +use cbrush_t; +set reusable sides; +set reusable verts; + +// cmodel_t +use cmodel_t; +set reusable info; +set block info XFILE_BLOCK_TEMP; + +// cNode_t +set reusable cNode_t::plane; + +// DynEntityDef +use DynEntityDef; +set reusable destroyPieces; +set scriptstring targetname; +set scriptstring target; + +// XModelPieces +use XModelPieces; +set string name; +set name name; +set count pieces numpieces; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/ddlRoot_t.txt b/src/ZoneCode/Game/T6/XAssets/ddlRoot_t.txt new file mode 100644 index 00000000..7d3c576b --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/ddlRoot_t.txt @@ -0,0 +1,29 @@ +// ========================================= +// ddlRoot_t +// ========================================= +use ddlRoot_t; +set string name; +set name name; +set count ddlDef 1; + +// ddlDef_t +use ddlDef_t; +set count structList structCount; +set count enumList enumCount; +set count next 1; + +// ddlStructDef_t +use ddlStructDef_t; +set string name; +set count members memberCount; +set count hashTable memberCount; + +// ddlMemberDef_t +set string ddlMemberDef_t::name; + +// ddlEnumDef_t +use ddlEnumDef_t; +set string name; +set string members; +set count members memberCount; +set count hashTable memberCount; \ No newline at end of file diff --git a/src/ZoneCode/Game/T6/XAssets/menuDef_t.txt b/src/ZoneCode/Game/T6/XAssets/menuDef_t.txt new file mode 100644 index 00000000..6c137220 --- /dev/null +++ b/src/ZoneCode/Game/T6/XAssets/menuDef_t.txt @@ -0,0 +1,133 @@ +// ========================================= +// menuDef_t +// ========================================= +use menuDef_t; +set string window::name; +set name window::name; +set string font; +set string allowedBinding; +set string soundName; +set count items itemCount; + +// windowDef_t +use windowDef_t; +set string group; + +// GenericEventHandler +use GenericEventHandler; +set string name; + +// GenericEventScript +use GenericEventScript; +set string action; + +// ExpressionStatement +use ExpressionStatement; +set string filename; +set count rpn numRpn; +set reusable rpn; + +// expressionRpn +use expressionRpn; +set condition data::constant type == RPN_CONSTANT; +set condition data::cmd never; + +// Operand +use Operand; +set condition internals::intVal dataType == VAL_INT; +set condition internals::floatVal dataType == VAL_FLOAT; +set condition internals::string dataType == VAL_STRING; +set string internals::string; +set condition internals::dvar never; + +// itemDef_s +use itemDef_s; +set string dvar; +set string profileVar; +set string dvarTest; +set string enableDvar; +set condition parent never; +set condition typeData::textDef +type == 1 || type == 3 || type == 4 +|| type == 5 || type == 7 || type == 8 +|| type == 9 || type == 10 || type == 11 +|| type == 12 || type == 13 || type == 14 +|| type == 15 || type == 16 || type == 18 +|| type == 20 || type == 22; +set condition typeData::imageDef type == 2; +set condition typeData::blankButtonDef type == 19 || type == 21; +set condition typeData::ownerDrawDef type == 6; +set condition typeData::data never; + +// textDef_s +use textDef_s; +set string text; +set condition textTypeData::focusItemDef itemDef_s::type == 3 +|| itemDef_s::type == 4 || itemDef_s::type == 5 +|| itemDef_s::type == 7 || itemDef_s::type == 8 +|| itemDef_s::type == 9 || itemDef_s::type == 10 +|| itemDef_s::type == 11 || itemDef_s::type == 12 +|| itemDef_s::type == 13 || itemDef_s::type == 14 +|| itemDef_s::type == 16 || itemDef_s::type == 20 +|| itemDef_s::type == 21 || itemDef_s::type == 22 +|| itemDef_s::type == 30; +set condition textTypeData::gameMsgDef itemDef_s::type == 15; +set condition textTypeData::data never; + +// focusItemDef_s +use focusItemDef_s; +set string mouseEnterText; +set string mouseExitText; +set string mouseEnter; +set string mouseExit; +set condition focusTypeData::listBox itemDef_s::type == 4; +set condition focusTypeData::multi itemDef_s::type == 10; +set condition focusTypeData::profileMulti itemDef_s::type == 22; +set condition focusTypeData::editField itemDef_s::type == 5 +|| itemDef_s::type == 7 +|| itemDef_s::type == 8 +|| itemDef_s::type == 9 +|| itemDef_s::type == 12 +|| itemDef_s::type == 13 +|| itemDef_s::type == 14 +|| itemDef_s::type == 16 +|| itemDef_s::type == 30; +set condition focusTypeData::enumDvar itemDef_s::type == 11; +set condition focusTypeData::data never; + +// listBoxDef_s +use listBoxDef_s; +set count rows maxRows; + +// MenuRow +use MenuRow; +set count cells listBoxDef_s::numColumns; +set count eventName 32; +set count onFocusEventName 32; + +// MenuCell +use MenuCell; +set count stringValue maxChars; + +// multiDef_s +use multiDef_s; +set string dvarList; +set string dvarStr; + +// profileMultiDef_s +use profileMultiDef_s; +set string profileVarList; +set string profileVarStr; + +// enumDvarDef_s +set string enumDvarDef_s::enumDvarName; + +// UIAnimInfo +use UIAnimInfo; +set count animStates animStateCount; +set condition currentAnimState never; +set condition nextAnimState never; + +// animParamsDef_t +use animParamsDef_t; +set string name; \ No newline at end of file