EvilEngine/CCRV: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
(format)
No edit summary
Line 43: Line 43:
| 0x18 || float32 || '''mTransitionTime''' ||
| 0x18 || float32 || '''mTransitionTime''' ||
|-
|-
| 0x1C || uint32 || '''mCurveID1''' ||
| 0x1C || [[AssetID]] || '''mCurveID1''' ||
|-
|-
| 0x20 || uint32 || '''mCurveID2''' ||
| 0x20 || [[AssetID]] || '''mCurveID2''' ||
|-
|-
| 0x24 || int32 || '''mNumBeads''' ||
| 0x24 || int32 || '''mNumBeads''' ||

Revision as of 18:40, 15 September 2023

CCRV
Camera Curve
TypeBase
Base Type0x8D
Games usedRise of the Underminer
Ratatouille Prototype

Format

CCRV are base assets, so they start with their 0x8 byte header, then are followed by:

struct zCameraCurveAsset : xBaseAsset
{
    uint8 mVersion;
    uint8 pad[3];
    int32 mCameraType;
    uint32 mFlags;
    int32 mTransitionType;
    float32 mTransitionTime;
    uint32 mCurveID[2];
    int32 mNumBeads;
};

zCameraCurveAsset

Offset Type Variable Description
0x08 uint8 mVersion
0x09 uint8[3] padding
0x0C int32 mCameraType
0x10 uint32 mFlags
0x14 int32 mTransitionType
0x18 float32 mTransitionTime
0x1C AssetID mCurveID1
0x20 AssetID mCurveID2
0x24 int32 mNumBeads
struct zCameraCurveBead
{
    float32 mCurveU[2];
    float32 mDistanceAdjust;
    float32 mPitchOffset;
    float32 mTargetRadius;
    float32 mTargetMarginAngle;
    float32 mLeadOffset;
    float32 mYOffset;
    float32 mNearWallAdjust;
    float32 mFarWallAdjust;
};

zCameraCurveBead

Offset Type Variable Description
0x28 float32 mCurveU1
0x2C float32 mCurveU2
0x30 float32 mDistanceAdjust
0x34 float32 mPitchOffset
0x38 float32 mTargetRadius
0x3C float32 mTargetMarginAngle
0x40 float32 mLeadOffset
0x44 float32 mYOffset
0x48 float32 mNearWallAdjust
0x4C float32 mFarWallAdjust