InSim  0.6c
Documentation of Live for Speed InSim Protocol
Data Fields
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 in ms to get there (0 means instant)
word Flags
 set ISS state flags

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_VIEW_OVERRIDE is set, the in-car view Heading Pitch and Roll (but not FOV) 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 2277 of file ispackets.h.


Field Documentation

set ISS state flags

Definition at line 2296 of file ispackets.h.

float IS_CPP::FOV

4-byte float : FOV in degrees

Definition at line 2293 of file ispackets.h.

word IS_CPP::H

heading - 0 points along Y axis

Definition at line 2286 of file ispackets.h.

InGameCam (as reported in StatePack)

Definition at line 2291 of file ispackets.h.

word IS_CPP::P

pitch - 0 means looking at horizon

Definition at line 2287 of file ispackets.h.

Position vector.

Definition at line 2284 of file ispackets.h.

word IS_CPP::R

roll - 0 means no roll

Definition at line 2288 of file ispackets.h.

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

Definition at line 2281 of file ispackets.h.

32

Definition at line 2279 of file ispackets.h.

Time in ms to get there (0 means instant)

Definition at line 2295 of file ispackets.h.

ISP_CPP

Definition at line 2280 of file ispackets.h.

Unique ID of viewed player (0 = none)

Definition at line 2290 of file ispackets.h.

Definition at line 2282 of file ispackets.h.


The documentation for this struct was generated from the following file:
 All Data Structures Files Variables Enumerator Defines