UI-only Client_RPG; no top-down camera hijack

This commit is contained in:
RallyBlock committed 2026-11-10 06:31:06 -05:00
1 parent 836fb2ac3a
commit 1c4fd6110a
1 file changed
+14 -3
+14 -3
View File
@@ -471,13 +471,24 @@ function RPGClient_CamInputAllowed()
return 1;
}
function RPGClient_BootPlay()
function RPGClient_BootUI()
{
if (!isObject(ServerConnection))
{
return;
}
$RPGClient::Server = 1;
RPGClient_BindKeys();
RPGClient_Hud_Ensure();
}
function RPGClient_BootPlay()
{
if (!isObject(ServerConnection))
{
return;
}
RPGClient_BootUI();
$RPGClient::Active = 1;
$RPGClient::CamTickOn = 1;
$RPGClient::PlayBooted = 1;
@@ -895,7 +906,7 @@ function clientCmdRPG_Welcome(%serverProto, %accepted)
{
$RPGClient::HelloPending = 0;
$RPGClient::Server = 1;
schedule(0, 0, RPGClient_BootPlay);
schedule(0, 0, RPGClient_BootUI);
schedule(2500, 0, RPGClient_TopDownWatch);
}
else if (!%accepted)
@@ -998,7 +1009,7 @@ function clientCmdRPG_TopDown(%on, %yaw, %dist)
function clientCmdRPG_Hud(%hp, %maxHp, %silver, %load, %cap, %skillId, %skillValue, %blocking, %tHp, %tMax)
{
RPGClient_BootPlay();
RPGClient_BootUI();
RPGClient_Hud_Update(%hp, %maxHp, %silver, %load, %cap, %skillId, %skillValue, %tHp, %tMax);
}