Add camera process CS event handler

This commit is contained in:
Vortrex
2021-04-04 23:15:59 -05:00
parent e70e6dd048
commit c8bc28b347

View File

@@ -50,6 +50,8 @@ function addAllEventHandlers() {
addEventHandler("OnLostFocus", onLostFocus); addEventHandler("OnLostFocus", onLostFocus);
addEventHandler("OnFocus", onFocus); addEventHandler("OnFocus", onFocus);
addEventHandler("OnCameraProcess", onCameraProcess);
} }
// =========================================================================== // ===========================================================================
@@ -82,6 +84,8 @@ function onResourceReady(event, resource) {
// =========================================================================== // ===========================================================================
function onProcess(event, deltaTime) { function onProcess(event, deltaTime) {
DeltaTime = deltaTime;
if(gta.game != GAME_GTA_IV) { if(gta.game != GAME_GTA_IV) {
gta.clearMessages(); gta.clearMessages();
} }
@@ -94,7 +98,6 @@ function onProcess(event, deltaTime) {
return false; return false;
} }
processMouseCamera();
destroyAutoCreatedPickups(); destroyAutoCreatedPickups();
processLocalPlayerControlState(); processLocalPlayerControlState();
clearLocalPlayerWantedLevel(); clearLocalPlayerWantedLevel();
@@ -123,8 +126,8 @@ function onDrawnHUD(event) {
} }
processSmallGameMessageRendering(); processSmallGameMessageRendering();
processScoreboardRendering(); processScoreBoardRendering();
process3DLabelRendering(); processLabelRendering();
processLogoRendering(); processLogoRendering();
processItemActionRendering(); processItemActionRendering();
processSkinSelectRendering(); processSkinSelectRendering();
@@ -221,3 +224,8 @@ function onLocalPlayerSwitchWeapon(oldWeapon, newWeapon) {
} }
// =========================================================================== // ===========================================================================
function onCameraProcess(event) {
}
// ===========================================================================