#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) |
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.
Definition at line 1901 of file ispackets.h.
byte IS_CPP::Size |
byte IS_CPP::Type |
byte IS_CPP::ReqI |
instruction : 0 / or reply : ReqI as received in the TINY_SCP
Definition at line 1905 of file ispackets.h.
byte IS_CPP::Zero |
Definition at line 1906 of file ispackets.h.
Vec IS_CPP::Pos |
word IS_CPP::H |
word IS_CPP::P |
word IS_CPP::R |
byte IS_CPP::ViewPLID |
byte IS_CPP::InGameCam |
float IS_CPP::FOV |
word IS_CPP::Time |
word IS_CPP::Flags |