OverviewPacketsCameraSpline ID 0x152 · 338Server → ClientGraphics
Sent by the server to clients for initializing custom spline data that can be played later through the camera command.
camera-spline.bin
struct CameraSpline {
varuint32 [] · CameraSplineDefinition[] Splines;
}Structure
| Field | Type | Description |
|---|
| Splines | varuint32 count + CameraSplineDefinition[] | Length-prefixed sequence. |
Structure of CameraSplineDefinition
| Field | Type | Description |
|---|
| Name | string | |
| Total Time | float32 (LE) | |
| Spline Type | string | |
| Spline Control Points | varuint32 count + CameraSplineControlPoint[] | Length-prefixed sequence. |
| Spline Progress Frames | varuint32 count + CameraSplineProgressKeyFrame[] | Length-prefixed sequence. |
| Spline Rotation Frames | varuint32 count + CameraSplineRotationKeyFrame[] | Length-prefixed sequence. |
Structure of CameraSplineControlPoint
| Field | Type | Description |
|---|
| Position | Vec3 | |
Structure of CameraSplineProgressKeyFrame
| Field | Type | Description |
|---|
| Alpha | float32 (LE) | |
| Time Seconds | float32 (LE) | |
| Easing Type | string | |
Structure of CameraSplineRotationKeyFrame
| Field | Type | Description |
|---|
| Rotation | Vec3 | |
| Time Seconds | float32 (LE) | |
| Easing Type | string | |
Structure of Vec3
| Field | Type | Description |
|---|
| X | float32 (LE) | |
| Y | float32 (LE) | |
| Z | float32 (LE) | |
Notes