Add checkpoint developer tool (doesn't work perfectly)

This commit is contained in:
Garrett Cox
2024-11-24 23:40:00 -06:00
committed by Alejandro Asenjo Nitti
parent 0e39eed609
commit e34419b38e
2 changed files with 23 additions and 0 deletions
+7
View File
@@ -4647,6 +4647,13 @@ void Player_Setup(Player* playerx) {
gDisplayedHitCount = gHitCount;
D_hud_80161730 = 0;
if (CVarGetInteger("gCheckpoint.Set", 0)) {
gSavedGroundSurface = CVarGetInteger("gCheckpoint.gSavedGroundSurface", gSavedGroundSurface);
gSavedPathProgress = CVarGetFloat("gCheckpoint.gSavedPathProgress", gSavedPathProgress);
gSavedObjectLoadIndex = CVarGetInteger("gCheckpoint.gSavedObjectLoadIndex", gSavedObjectLoadIndex);
}
gMissedZoSearchlight = gSavedZoSearchlightStatus;
gObjectLoadIndex = gSavedObjectLoadIndex;
gGroundSurface = gSavedGroundSurface;