Add camera process CS event handler
This commit is contained in:
@@ -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();
|
||||||
@@ -220,4 +223,9 @@ function onFocus(event) {
|
|||||||
function onLocalPlayerSwitchWeapon(oldWeapon, newWeapon) {
|
function onLocalPlayerSwitchWeapon(oldWeapon, newWeapon) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
|
function onCameraProcess(event) {
|
||||||
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
Reference in New Issue
Block a user