IS_CPP Struct Reference

Cam Pos Pack. More...

#include <ispackets.h>


Data Fields

byte Size
 32
byte Type
 ISP_CPP
byte ReqI
 instruction : 0 / or reply : ReqI as received in the TINY_SCP
byte Zero
Vec Pos
 Position vector.
word H
 heading - 0 points along Y axis
word P
 pitch - 0 means looking at horizon
word R
 roll - 0 means no roll
byte ViewPLID
 Unique ID of viewed player (0 = none).
byte InGameCam
 InGameCam (as reported in StatePack)
float FOV
 4-byte float : FOV in degrees
word Time
 Time to get there (0 means instant + reset).
word Flags
 ISS state flags (see below)


Detailed Description

Cam Pos Pack.

Full camera packet (in car OR SHIFT+U mode)

The ISS state flags that can be set are :

On receiving this packet, LFS will set up the camera to match the values in the packet, including switching into or out of SHIFT+U mode depending on the ISS_SHIFTU flag.

If ISS_SHIFTU is not set, then ViewPLID and InGameCam will be used.

If ISS_VIEW_OVERRIDE is set, the in-car view Heading Pitch and Roll will be taken from the values in this packet. Otherwise normal in game control will be used.

Position vector (Vec Pos) - in SHIFT+U mode, Pos can be either relative or absolute.

If ISS_SHIFTU_FOLLOW is set, it's a following camera, so the position is relative to the selected car. Otherwise, the position is absolute, as used in normal SHIFT+U mode.

NOTE :
Set InGameCam or ViewPLID to 255 to leave that option unchanged.

Definition at line 1901 of file ispackets.h.


Field Documentation

32

Definition at line 1903 of file ispackets.h.

ISP_CPP

Definition at line 1904 of file ispackets.h.

instruction : 0 / or reply : ReqI as received in the TINY_SCP

Definition at line 1905 of file ispackets.h.

Definition at line 1906 of file ispackets.h.

Position vector.

Definition at line 1908 of file ispackets.h.

word IS_CPP::H

heading - 0 points along Y axis

Definition at line 1910 of file ispackets.h.

word IS_CPP::P

pitch - 0 means looking at horizon

Definition at line 1911 of file ispackets.h.

word IS_CPP::R

roll - 0 means no roll

Definition at line 1912 of file ispackets.h.

Unique ID of viewed player (0 = none).

Definition at line 1914 of file ispackets.h.

InGameCam (as reported in StatePack)

Definition at line 1915 of file ispackets.h.

float IS_CPP::FOV

4-byte float : FOV in degrees

Definition at line 1917 of file ispackets.h.

Time to get there (0 means instant + reset).

Definition at line 1919 of file ispackets.h.

ISS state flags (see below)

Definition at line 1920 of file ispackets.h.


The documentation for this struct was generated from the following file:

Generated on Wed Apr 28 11:50:47 2010 for InSim by  doxygen 1.5.8