.rec file 1005: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
Line 75: Line 75:
</div>
</div>
<div style="float: left; width: 33%;">
<div style="float: left; width: 33%;">
===spawn data (5 bytes)===
===spawn data (3 bytes)===
{| class="wikitable" style="margin:auto align:left"
{| class="wikitable" style="margin:auto align:left"
! Offset* || Value ||Type
! Offset* || Value ||Type

Revision as of 15:45, 18 December 2023

New Structure of Rec Files

Offset Name type
0-3 Version Unsigned Integer
4-7 Recording Type Unsigned Integer
8-11 Flags Unsigned Integer
12-35^ Name if (Flags&1) == 1 char*, 24 bytes.
36-40 (or 12-16) General Datablock See General Datablock section
41- _ (or 17- _) One of SpawnData, CommandData, PickupData, PrivMsgData, CheckpointData, ObjectTouchData, ObjectShotData, DeathData,VechicleEnterData See appropriate sections
... ...

General Datablock

Offset* Name type
0-4 Time Unsigned Integer
5 Packet Type 1 for Spawn Data, 2 for Death Data,.. See table Packet Types

Packet Types

Value of Packet Type Corresponds to has trail data
1 Spawn Data
2 Death Data
3 Vehicle Exit Data
4 Vehicle Enter Request
5 Vehicle Entered Data
6 on-foot update data
7 on-foot update aim
8 driver update
9 passenger update
10 player command data yes
11 player chat data yes
12 player pm data yes
13 clientscript data yes
14 pickup picked data
15 checkpoint entered
16 checkpoint exited
17 object touch
18 object shot data
19 disconnection data

spawn data (3 bytes)

Offset* Value Type
0 team unsigned char
1-2 skin unsigned short