Files
OpenAssetTools/src/ZoneCode/Game/T6/T6_Commands.txt

247 lines
6.7 KiB
Plaintext

// Game: Black Ops 2 (T6)
game T6;
// Game Assets
asset PhysPreset ASSET_TYPE_PHYSPRESET;
asset PhysConstraints ASSET_TYPE_PHYSCONSTRAINTS;
asset DestructibleDef ASSET_TYPE_DESTRUCTIBLEDEF;
asset XAnimParts ASSET_TYPE_XANIMPARTS;
asset XModel ASSET_TYPE_XMODEL;
asset Material ASSET_TYPE_MATERIAL;
asset MaterialTechniqueSet ASSET_TYPE_TECHNIQUE_SET;
asset GfxImage ASSET_TYPE_IMAGE;
asset SndBank ASSET_TYPE_SOUND;
asset SndPatch ASSET_TYPE_SOUND_PATCH;
asset clipMap_t ASSET_TYPE_CLIPMAP_PVS;
asset ComWorld ASSET_TYPE_COMWORLD;
asset GameWorldSp ASSET_TYPE_GAMEWORLD_SP;
asset GameWorldMp ASSET_TYPE_GAMEWORLD_MP;
asset MapEnts ASSET_TYPE_MAP_ENTS;
asset GfxWorld ASSET_TYPE_GFXWORLD;
asset GfxLightDef ASSET_TYPE_LIGHT_DEF;
asset Font_s ASSET_TYPE_FONT;
asset FontIcon ASSET_TYPE_FONTICON;
asset MenuList ASSET_TYPE_MENULIST;
asset menuDef_t ASSET_TYPE_MENU;
asset LocalizeEntry ASSET_TYPE_LOCALIZE_ENTRY;
asset WeaponVariantDef ASSET_TYPE_WEAPON;
asset WeaponAttachment ASSET_TYPE_ATTACHMENT;
asset WeaponAttachmentUnique ASSET_TYPE_ATTACHMENT_UNIQUE;
asset WeaponCamo ASSET_TYPE_WEAPON_CAMO;
asset SndDriverGlobals ASSET_TYPE_SNDDRIVER_GLOBALS;
asset FxEffectDef ASSET_TYPE_FX;
asset FxImpactTable ASSET_TYPE_IMPACT_FX;
asset RawFile ASSET_TYPE_RAWFILE;
asset StringTable ASSET_TYPE_STRINGTABLE;
asset LeaderboardDef ASSET_TYPE_LEADERBOARD;
asset XGlobals ASSET_TYPE_XGLOBALS;
asset ddlRoot_t ASSET_TYPE_DDL;
asset Glasses ASSET_TYPE_GLASSES;
asset EmblemSet ASSET_TYPE_EMBLEMSET;
asset ScriptParseTree ASSET_TYPE_SCRIPTPARSETREE;
asset KeyValuePairs ASSET_TYPE_KEYVALUEPAIRS;
asset VehicleDef ASSET_TYPE_VEHICLEDEF;
asset MemoryBlock ASSET_TYPE_MEMORYBLOCK;
asset AddonMapEnts ASSET_TYPE_ADDON_MAP_ENTS;
asset TracerDef ASSET_TYPE_TRACER;
asset SkinnedVertsDef ASSET_TYPE_SKINNEDVERTS;
asset Qdb ASSET_TYPE_QDB;
asset Slug ASSET_TYPE_SLUG;
asset FootstepTableDef ASSET_TYPE_FOOTSTEP_TABLE;
asset FootstepFXTableDef ASSET_TYPE_FOOTSTEPFX_TABLE;
asset ZBarrierDef ASSET_TYPE_ZBARRIER;
// Setup blocks
block temp XFILE_BLOCK_TEMP default;
block runtime XFILE_BLOCK_RUNTIME_VIRTUAL default;
block runtime XFILE_BLOCK_RUNTIME_PHYSICAL;
block delay XFILE_BLOCK_DELAY_VIRTUAL default;
block delay XFILE_BLOCK_DELAY_PHYSICAL;
block normal XFILE_BLOCK_VIRTUAL default;
block normal XFILE_BLOCK_PHYSICAL;
// =========================================
// XModelPieces
// =========================================
use XModelPieces;
set string name;
set count pieces numpieces;
// =========================================
// PhysPreset
// =========================================
set string PhysPreset::name;
// =========================================
// PhysConstraints
// =========================================
set string PhysConstraints::name;
use PhysConstraint;
set scriptstring targetname;
set scriptstring target_ent1;
set scriptstring target_ent2;
// =========================================
// DestructibleDef
// =========================================
use DestructibleDef;
set string name;
set count pieces numPieces;
// DestructiblePiece
set scriptstring DestructiblePiece::enableLabel;
// DestructibleStage
set scriptstring DestructibleStage::showBone;
// =========================================
// XAnimParts
// =========================================
use XAnimParts;
set string 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:
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;
// =========================================
// XModel
// =========================================
use XModel;
set string name;
set scriptstring boneNames;
set count boneNames numBones;
set count parentList numBones - numRootBones;
set count quats numBones - numRootBones;
set count trans numBones - numRootBones;
set count partClassification numBones;
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 count verts0 vertCount;
set count vb0 0;
set count vertList vertListCount;
set count triIndices triCount;
set count indexBuffer 0;
reorder:
vertInfo
verts0
vertList
triIndices;
// XSurfaceVertexInfo
use XSurfaceVertexInfo;
set count vertsBlend vertCount[0]
+ 3 * vertCount[1]
+ 5 * vertCount[2]
+ 7 * vertCount[3];
set count tensionData vertCount[0]
+ 3 * vertCount[1]
+ 5 * vertCount[2]
+ 7 * vertCount[3];
// XRigidVertList
set count XRigidVertList::collisionTree 1;
// 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
set count PhysGeomInfo::brush 1;
// BrushWrapper
use BrushWrapper;
set count sides numsides;
set count verts numverts;
set count planes numsides;
// cbrushside_t
set count cbrushside_t::plane 1;
// EOF