Apply camera on arrow keys and mouse yaw

This commit is contained in:
RallyBlock committed 2026-11-09 21:01:33 -05:00
1 parent 52edfe59d3
commit b46e31f0d1
1 file changed
+7 -12
+7 -12
View File
@@ -650,13 +650,10 @@ function RPGClient_YawLeft(%val)
invLeft(%val);
return;
}
$RPGClient::MvL = %val;
if (%val)
{
$RPGClient::MvL = %val;
}
else
{
$RPGClient::MvL = 0;
RPGClient_ApplyCamera(1);
}
}
@@ -667,13 +664,10 @@ function RPGClient_YawRight(%val)
invRight(%val);
return;
}
$RPGClient::MvR = %val;
if (%val)
{
$RPGClient::MvR = %val;
}
else
{
$RPGClient::MvR = 0;
RPGClient_ApplyCamera(1);
}
}
@@ -1096,8 +1090,9 @@ package RPGClient_Input
{
if ($RPGClient::CamTickOn && %val != 0)
{
$sens = $pref::Input::MouseSensitivity;
$RPGClient::Yaw += %val * %sens * 0.004;
%sens = $pref::Input::MouseSensitivity;
$RPGClient::Yaw = $RPGClient::Yaw + %val * %sens * 0.004;
RPGClient_ApplyCamera(1);
return;
}
Parent::yaw(%val);