Add Commands for T5

This commit is contained in:
Jan
2021-05-12 19:23:27 +02:00
parent 4823fe036e
commit e3a3d012e6
39 changed files with 1950 additions and 48 deletions

View File

@ -30,6 +30,7 @@ asset FxEffectDef ASSET_TYPE_FX;
asset FxImpactTable ASSET_TYPE_IMPACT_FX;
asset RawFile ASSET_TYPE_RAWFILE;
asset StringTable ASSET_TYPE_STRINGTABLE;
asset PackIndex ASSET_TYPE_PACK_INDEX;
asset XGlobals ASSET_TYPE_XGLOBALS;
asset ddlRoot_t ASSET_TYPE_DDL;
asset Glasses ASSET_TYPE_GLASSES;
@ -72,6 +73,7 @@ block normal XFILE_BLOCK_PHYSICAL;
#include "XAssets/FxImpactTable.txt"
#include "XAssets/RawFile.txt"
#include "XAssets/StringTable.txt"
#include "XAssets/PackIndex.txt"
#include "XAssets/XGlobals.txt"
#include "XAssets/ddlRoot_t.txt"
#include "XAssets/Glasses.txt"

View File

@ -0,0 +1,16 @@
// =========================================
// ComWorld
// =========================================
use ComWorld;
set block XFILE_BLOCK_TEMP;
set string name;
set name name;
set count primaryLights primaryLightCount;
set count waterCells numWaterCells;
set count burnableCells numBurnableCells;
// ComPrimaryLight
set string ComPrimaryLight::defName;
// ComBurnableCell
set count ComBurnableCell::data 32;

View File

@ -0,0 +1,21 @@
// =========================================
// DestructibleDef
// =========================================
use DestructibleDef;
set block XFILE_BLOCK_TEMP;
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;

View File

@ -0,0 +1,21 @@
// =========================================
// EmblemSet
// =========================================
use EmblemSet;
set block XFILE_BLOCK_TEMP;
set count layers layerCount;
set count categories categoryCount;
set count icons iconCount;
set count backgrounds backgroundCount;
set count backgroundLookup backgroundLookupCount;
// EmblemCategory
use EmblemCategory;
set string name;
set string description;
// EmblemIcon
set string EmblemIcon::description;
// EmblemBackground
set string EmblemBackground::description;

View File

@ -0,0 +1,9 @@
// =========================================
// Font_s
// =========================================
use Font_s;
set block XFILE_BLOCK_TEMP;
set string fontName;
set name fontName;
set reusable glyphs;
set count glyphs glyphCount;

View File

@ -0,0 +1,48 @@
// =========================================
// FxEffectDef
// =========================================
use FxEffectDef;
set block XFILE_BLOCK_TEMP;
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 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;
// FxTrailDef
use FxTrailDef;
set count verts vertCount;
set count inds indCount;
// FxElemSpawnSound
set string FxElemSpawnSound::spawnSound;

View File

@ -0,0 +1,8 @@
// =========================================
// FxImpactTable
// =========================================
use FxImpactTable;
set block XFILE_BLOCK_TEMP;
set string name;
//set name name;
set count table 21;

View File

@ -0,0 +1,7 @@
// =========================================
// GameWorldMp
// =========================================
use GameWorldMp;
set block XFILE_BLOCK_TEMP;
set string name;
set name name;

View File

@ -0,0 +1,38 @@
// =========================================
// GameWorldSp
// =========================================
use GameWorldSp;
set block XFILE_BLOCK_TEMP;
set string name;
set name name;
// PathData
use PathData;
set count nodes nodeCount + 128;
set block basenodes XFILE_BLOCK_RUNTIME;
set count basenodes nodeCount + 128;
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_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;

View File

@ -0,0 +1,23 @@
// =========================================
// GfxImage
// =========================================
use GfxImage;
set block XFILE_BLOCK_TEMP;
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 texture never;
// GfxImageLoadDef
use GfxImageLoadDef;
set action LoadImageData(GfxImageLoadDef, GfxImage);
set arraysize data resourceSize;

View File

@ -0,0 +1,7 @@
// =========================================
// GfxLightDef
// =========================================
use GfxLightDef;
set block XFILE_BLOCK_TEMP;
set string name;
set name name;

View File

@ -0,0 +1,159 @@
// =========================================
// GfxWorld
// =========================================
use GfxWorld;
set block XFILE_BLOCK_TEMP;
set string name;
set name name;
set string baseName;
set count skyStartSurfs skySurfCount;
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 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 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 - sunPrimaryLightIndex - 1) * 0x2000;
set block primaryLightDynEntShadowVis XFILE_BLOCK_RUNTIME;
set count primaryLightDynEntShadowVis[0] dpvsDyn::dynEntClientCount[0] * (primaryLightCount - sunPrimaryLightIndex - 1);
set count primaryLightDynEntShadowVis[1] dpvsDyn::dynEntClientCount[1] * (primaryLightCount - sunPrimaryLightIndex - 1);
set block nonSunPrimaryLightForModelDynEnt XFILE_BLOCK_RUNTIME;
set count nonSunPrimaryLightForModelDynEnt dpvsDyn::dynEntClientCount[0];
set count shadowGeom primaryLightCount;
set count lightRegion primaryLightCount;
set count worldLodChains worldLodChainCount;
set count worldLodInfos worldLodInfoCount;
set count worldLodSurfaces worldLodSurfaceCount;
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;
set count sceneEntCellBits cellCount * 0x200;
// GfxCell
use GfxCell;
set count aabbTree aabbTreeCount;
set count portals portalCount;
set count cullGroups cullGroupCount;
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;
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 block lightmapSecondaryTexturesB XFILE_BLOCK_RUNTIME;
set count lightmapSecondaryTexturesB lightmapCount;
set count indices indexCount;
// GfxReflectionProbe
use GfxReflectionProbe;
set count probeVolumes probeVolumeCount;
// GfxWorldVertexData
use GfxWorldVertexData;
set count vertices GfxWorldDraw::vertexCount;
set condition worldVb never;
// GfxWorldVertexLayerData
use GfxWorldVertexLayerData;
set count data GfxWorldDraw::vertexLayerDataSize;
set condition layerVb never;
// 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
use GfxLightRegion;
set count hulls hullCount;
// GfxLightRegionHull
use GfxLightRegionHull;
set count 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 block smodelVisDataCameraSaved XFILE_BLOCK_RUNTIME;
set count smodelVisDataCameraSaved smodelCount;
set block surfaceVisDataCameraSaved XFILE_BLOCK_RUNTIME;
set count surfaceVisDataCameraSaved staticSurfaceCount;
set block lodData XFILE_BLOCK_RUNTIME;
set count lodData 2 * smodelVisDataCount;
set count sortedSurfIndex staticSurfaceCount;
set count smodelInsts smodelCount;
set count surfaces GfxWorld::surfaceCount;
set count cullGroups GfxWorld::cullGroupCount;
set count smodelDrawInsts smodelCount;
set block surfaceMaterials XFILE_BLOCK_RUNTIME;
set count surfaceMaterials staticSurfaceCount;
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];
// GfxWaterBuffer
use GfxWaterBuffer;
set count buffer bufferSize / 16;

View File

@ -0,0 +1,21 @@
// =========================================
// Glasses
// =========================================
use Glasses;
set block XFILE_BLOCK_TEMP;
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;

View File

@ -0,0 +1,8 @@
// =========================================
// LocalizeEntry
// =========================================
use LocalizeEntry;
set block XFILE_BLOCK_TEMP;
set string value;
set string name;
set name name;

View File

@ -0,0 +1,8 @@
// =========================================
// MapEnts
// =========================================
use MapEnts;
set block XFILE_BLOCK_TEMP;
set string name;
set name name;
set count entityString numEntityChars;

View File

@ -0,0 +1,23 @@
// =========================================
// Material
// =========================================
use Material;
set block XFILE_BLOCK_TEMP;
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;

View File

@ -0,0 +1,50 @@
// =========================================
// MaterialTechniqueSet
// =========================================
use MaterialTechniqueSet;
set block XFILE_BLOCK_TEMP;
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;
// 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;

View File

@ -0,0 +1,8 @@
// =========================================
// MenuList
// =========================================
use MenuList;
set block XFILE_BLOCK_TEMP;
set string name;
set name name;
set count menus menuCount;

View File

@ -0,0 +1,8 @@
// =========================================
// PackIndex
// =========================================
use PackIndex;
set block XFILE_BLOCK_TEMP;
set string name;
set name name;
set count entries header::count;

View File

@ -0,0 +1,14 @@
// =========================================
// PhysConstraints
// =========================================
use PhysConstraints;
set block XFILE_BLOCK_TEMP;
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;

View File

@ -0,0 +1,8 @@
// =========================================
// PhysPreset
// =========================================
use PhysPreset;
set block XFILE_BLOCK_TEMP;
set string name;
set name name;
set string sndAliasPrefix;

View File

@ -0,0 +1,8 @@
// =========================================
// RawFile
// =========================================
use RawFile;
set block XFILE_BLOCK_TEMP;
set string name;
set name name;
set count buffer len + 1;

View File

@ -0,0 +1,50 @@
// =========================================
// SndBank
// =========================================
use SndBank;
set block XFILE_BLOCK_TEMP;
set string name;
set name name;
set count alias aliasCount;
set count aliasIndex aliasCount;
set count radverbs radverbCount;
set count snapshots snapshotCount;
// snd_alias_list_t
use snd_alias_list_t;
set string name;
set reusable head;
set count head count;
// snd_alias_t
use snd_alias_t;
set string name;
set string subtitle;
set string secondaryname;
set reusable soundFile;
// SoundFile
use SoundFile;
set condition u::loadSnd type == SAT_LOADED;
set reusable u::loadSnd;
set reusable u::streamSnd;
// LoadedSound
set string LoadedSound::name;
// snd_asset
use snd_asset;
set count seek_table seek_table_count;
set count data data_size;
set block data XFILE_BLOCK_PHYSICAL;
// StreamedSound
use StreamedSound;
set string filename;
set reusable primeSnd;
// PrimedSound
use PrimedSound;
set string name;
set count buffer size;
set block buffer XFILE_BLOCK_LARGE;

View File

@ -0,0 +1,13 @@
// =========================================
// SndDriverGlobals
// =========================================
use SndDriverGlobals;
set block XFILE_BLOCK_TEMP;
set string name;
set name name;
set count groups groupCount;
set count curves curveCount;
set count pans panCount;
set count snapshotGroups snapshotGroupCount;
set count contexts contextCount;
set count masters masterCount;

View File

@ -0,0 +1,10 @@
// =========================================
// SndPatch
// =========================================
use SndPatch;
set block XFILE_BLOCK_TEMP;
set string name;
set name name;
set count elements elementCount;
set count files fileCount;
set reusable files;

View File

@ -0,0 +1,12 @@
// =========================================
// StringTable
// =========================================
use StringTable;
set block XFILE_BLOCK_TEMP;
set string name;
set name name;
set count values columnCount * rowCount;
set count cellIndex columnCount * rowCount;
// StringTableCell
set string StringTableCell::string;

View File

@ -0,0 +1,166 @@
// =========================================
// WeaponVariantDef
// =========================================
use WeaponVariantDef;
set block XFILE_BLOCK_TEMP;
set string szInternalName;
set name szInternalName;
set reusable weapDef;
set string szDisplayName;
set string szAltWeaponName;
set string szXAnims;
set count szXAnims NUM_WEAP_ANIMS;
set reusable szXAnims;
set scriptstring hideTags;
set count hideTags 32;
set reusable hideTags;
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 fireStopSound;
set string fireStopSoundPlayer;
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 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 putawaySound;
set string putawaySoundPlayer;
set string overheatSound;
set string overheatSoundPlayer;
set string adsZoomSound;
set string bounceSound;
set count bounceSound SURF_TYPE_NUM;
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 SURF_TYPE_NUM;
set reusable parallelBounce;
set count perpendicularBounce SURF_TYPE_NUM;
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 HITLOC_NUM;
set reusable locationDamageMultipliers;
set string fireRumble;
set string meleeImpactRumble;
set string reloadRumble;
set string flameTableFirstPerson;
set string flameTableThirdPerson;
set reusable flameTableFirstPersonPtr;
set reusable flameTableThirdPersonPtr;
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;

View File

@ -0,0 +1,69 @@
// =========================================
// XAnimParts
// =========================================
use XAnimParts;
set block XFILE_BLOCK_TEMP;
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 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;
// 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;

View File

@ -0,0 +1,7 @@
// =========================================
// XGlobals
// =========================================
use XGlobals;
set block XFILE_BLOCK_TEMP;
set string name;
set name name;

View File

@ -0,0 +1,90 @@
// =========================================
// XModel
// =========================================
use XModel;
set block XFILE_BLOCK_TEMP;
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 streamInfo::highMipBounds numsurfs;
set count collmaps numCollmaps;
// XSurface
use XSurface;
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;

View File

@ -0,0 +1,85 @@
// =========================================
// clipMap_t
// =========================================
use clipMap_t;
set block XFILE_BLOCK_TEMP;
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 nodes numNodes;
set count leafs numLeafs;
set count leafbrushes numLeafBrushes;
set count leafbrushNodes leafbrushNodesCount;
set count leafsurfaces numLeafSurfaces;
set count verts vertCount;
set count brushVerts numBrushVerts;
set count uinds nuinds;
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 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;
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 dynEntServerList XFILE_BLOCK_RUNTIME;
set count dynEntServerList[0] dynEntCount[2];
set count dynEntServerList[1] dynEntCount[3];
set block dynEntCollList XFILE_BLOCK_RUNTIME;
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;
set count ropes max_ropes;
reorder:
leafs
leafbrushes
leafbrushNodes
leafsurfaces;
// cbrushside_t
set reusable cbrushside_t::plane;
// 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
set reusable CollisionPartition::borders;
// cbrush_t
use cbrush_t;
set reusable sides;
set reusable verts;
// 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;

View File

@ -0,0 +1,28 @@
// =========================================
// ddlRoot_t
// =========================================
use ddlRoot_t;
set block XFILE_BLOCK_TEMP;
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;
// ddlMemberDef_t
set string ddlMemberDef_t::name;
// ddlEnumDef_t
use ddlEnumDef_t;
set string name;
set string members;
set count members memberCount;

View File

@ -0,0 +1,127 @@
// =========================================
// menuDef_t
// =========================================
use menuDef_t;
set block XFILE_BLOCK_TEMP;
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;
// itemDef_s
use itemDef_s;
set string dvar;
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::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 == 22
|| 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;
// 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;