The online racing simulator
how to detect "force cockpit view"
with patch X10 the "force cockpit view" option was introduced, but I can not find any related flag, packet, or whatever in the insim.txt.
So I wonder how my insim application can detect, if this option is active?

thx and regards
Sören
The IS_RST packet has a flags bitfield.

If you check the "Race flags" entry in InSim.txt, you should see that the bit corresponding to FCV is: 256. Just check to see if it's set
struct IS_RST // Race STart
{
byte Size; // 28
byte Type; // ISP_RST
byte ReqI; // 0 unless this is a reply to an TINY_RST request
byte Zero;
byte RaceLaps; // 0 if qualifying
byte QualMins; // 0 if race
byte NumP; // number of players in race
byte Spare;
char Track[6]; // short track name
byte Weather;
byte Wind;
word Flags; // race flags (must pit, can reset, etc - see below)
word NumNodes; // total number of nodes in the path
word Finish; // node index - finish line
word Split1; // node index - split 1
word Split2; // node index - split 2
word Split3; // node index - split 3
};

// Race flags

// HOSTF_CAN_VOTE 1
// HOSTF_CAN_SELECT 2
// HOSTF_MID_RACE 32
// HOSTF_MUST_PIT 64
// HOSTF_CAN_RESET 128
// HOSTF_FCV 256



thank you for your fast help. I did a search for the word "force" in the file but did not get the idea to search for "fcv".

thx and regards
Sören

FGED GREDG RDFGDR GSFDG