Skip to content

Camera movement event x1

Graylin Kim edited this page Jan 18, 2012 · 1 revision

Camera Movement Event - Code 0x[0-F]1

This event has Type = 0x03 and Code = 0x[0-F]1 and is of variable length with the following logic:

bytes.skip(3)
flag = bytes.getBigInt(1)

if flag & 0x10 != 0:
    bytes.skip(1)
    flag = bytes.getBigInt(1)

if flag & 0x20 != 0:
    bytes.skip(1)
    flag = bytes.getBigInt(1)

if flag & 0x40 != 0:
    bytes.skip(2)

People at the phpsc2replay project believe that each parameter is 2 bytes in the following order:

  • X value
  • Y value
  • Zoom value
  • Zoom value 2?
  • Camera Rotation value

I've been unable to confirm this myself.

Clone this wiki locally