mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-07-04 21:36:04 -04:00
[modding] Implement Vehicles & Fix Animations (#109)
* Train works * Fix minimap * Fix highway * Fix * Refactor train and boat * Update * Implement Trucks * Fix tanker * Finish implementing vehicles * Fix animations * Fix spawn players * Fix spawn players * Fix loading custom data --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#include <libultraship.h>
|
||||
#include "Utils.h"
|
||||
|
||||
extern "C" {
|
||||
#include "macros.h"
|
||||
#include "defines.h"
|
||||
#include "code_80005FD0.h"
|
||||
}
|
||||
|
||||
uint32_t CalculateWaypointDistribution(size_t i, uint32_t numVehicles, size_t numWaypoints, uint32_t centerWaypoint) {
|
||||
return (uint32_t)(((i * numWaypoints) / numVehicles) + centerWaypoint) % numWaypoints;
|
||||
}
|
||||
Reference in New Issue
Block a user