Does anyone understand how the positioning of the speed limit & location names positioned?
I see that it has something to do with the coordinates. I'm confused as to how to create my own "zones" for a track that doesn't currently have them. It appears that there is one X coordinate, and 2 y coordinates??
I'm assuming you use the coordinates to create a "box" around the area that you want to zone off. You use two x,y coordinates to create that box.
But, thats where I'm completely lost.
I'm new to programming, but I'd really like to give it a shot. I've been digging through the source for hours to try to understand it, along with using the program that the creator of this OSS server also made (the coordinate viewer), and I just can't understand how it works.
In the meantime, I'll continue working on my own modifications to the code.
I see that it has something to do with the coordinates. I'm confused as to how to create my own "zones" for a track that doesn't currently have them. It appears that there is one X coordinate, and 2 y coordinates??
case "AS5":
for (int i = 0; i < Players.Count; i++)
{
if ((MCI.Info[i].Node >= 731) && ((MCI.Info[i].X / 196608) <= -203) && ((MCI.Info[i].Y / 196608) <= -63) && ((MCI.Info[i].Y / 196608) >= -147))
{
InSim.Send_BTN_CreateButton("^2Pit Lane", Flags.ButtonStyles.ISB_DARK, 5, 25, 0, 64, 171, (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID), 2, false);
I'm assuming you use the coordinates to create a "box" around the area that you want to zone off. You use two x,y coordinates to create that box.
But, thats where I'm completely lost.
I'm new to programming, but I'd really like to give it a shot. I've been digging through the source for hours to try to understand it, along with using the program that the creator of this OSS server also made (the coordinate viewer), and I just can't understand how it works.
In the meantime, I'll continue working on my own modifications to the code.