branchrust_reboot/main/Twitch_Rivals_IV/racingcancel
2 Commits over 0 Days - ∞cph!
Added a timeout for races (WaypointRace.raceTimeout convar, defaults to 15 minutes)
Move WaypointRace component to vehicle position every frame so the player will never leave network range
Tighten up toast wording
Added a Waypoint Race system
Can be started via WayPointRace.startRace convar
Will look for a series of waypoints based on a passed string, eg. calling "startRace air_race" will make a race out of the named waypoints with the air_race prefix (air_race0, air_race1, etc)
All vehicles within 20m of the starting waypoint will be considered participants
Players receive a toast with a time at each checkpoint, a toast when they end the race with their final position and time and when all players have finished the race a timing sheet for everyone is sent via chat
Added a helipad start point to craggy island with an example set of waypoints