From e3ced3c0213e34b54217045b04d9e22348e296ce Mon Sep 17 00:00:00 2001 From: ricardoofnl Date: Sat, 18 Jul 2026 15:13:56 +0700 Subject: [PATCH] [saco] Implement/match `cmdSetWeather` --- saco/cmdprocs.cpp | 7 ++++++- saco/game/game.h | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/saco/cmdprocs.cpp b/saco/cmdprocs.cpp index e339d88..5fc3bc0 100644 --- a/saco/cmdprocs.cpp +++ b/saco/cmdprocs.cpp @@ -211,7 +211,12 @@ void cmdSelectVehicle(PCHAR szCmd) void cmdSetWeather(PCHAR szCmd) { - // TODO: cmdSetWeather .text:10068ED0 + if(!strlen(szCmd)) + { + pChatWindow->AddDebugMessage("Usage: set_weather (weather number)"); + return; + } + pGame->SetWeather(atoi(szCmd)); } void cmdSetTime(PCHAR szCmd) diff --git a/saco/game/game.h b/saco/game/game.h index da66354..60cba0e 100644 --- a/saco/game/game.h +++ b/saco/game/game.h @@ -56,6 +56,7 @@ public: void InitGame(); BOOL IsGameLoaded(); + void SetWeather(int iWeather); // .text:100A0B40 void SetFrameLimiter(int iLimit); // .text:100A0BB0 void RequestModel(int iModelID, int iLoadingStream = 2);