The online racing simulator
IS_CON contact grade
Hello. How to detect the grade of contact between 2 cars, like in cargames.nl server?
Example: "Player A hits Player B in 9.5 grades", "Player C hits Player D in 7.0 grades"
/docs/insim.txt

// CONTACT - reports contacts between two cars if the closing speed is above 0.25 m/s
// =======
// Set the ISF_CON flag in the IS_ISI to receive car contact reports

struct IS_CON
{
...
word SpClose;
...
CarContact A;
CarContact B;
}
No no, I need grades of hit code, like 7.0, 2.5. When car hits other car, I need to get grades of hit from 0 to 10 points.
Calculate a value based on what you get in the IS_CON packet. There is no hit grade in InSim, because it's a third party feature.
You have to use SpClose (closing speed (10 = 1 m/s)) and calculate points yourself in whatever calculation you have in mind.
Thanks Bose321.

FGED GREDG RDFGDR GSFDG