Use new custom fade camera

This commit is contained in:
Vortrex
2023-02-15 03:19:32 -06:00
parent 8ca2e84e62
commit 297ce51323
3 changed files with 9 additions and 9 deletions

View File

@@ -376,7 +376,7 @@ function enterExitPropertyCommand(command, params, client) {
}
if (isFadeCameraSupported()) {
fadeCamera(client, false, 1.0);
fadePlayerCamera(client, false, 1000);
}
setTimeout(function () {
@@ -411,7 +411,7 @@ function enterExitPropertyCommand(command, params, client) {
}
if (isFadeCameraSupported()) {
fadeCamera(client, false, 1.0);
fadePlayerCamera(client, false, 1000);
}
setTimeout(function () {
@@ -927,7 +927,7 @@ function processPlayerDeath(client) {
updatePlayerSpawnedState(client, false);
setPlayerControlState(client, false);
setTimeout(function () {
fadePlayerCamera(client, false, 1000);
fadePlayerCamera(client, false, 2000);
setTimeout(function () {
if (isPlayerInPaintBall(client)) {
respawnPlayerForPaintBall(client);
@@ -944,7 +944,7 @@ function processPlayerDeath(client) {
spawnPlayer(client, closestJail.position, closestJail.heading, getGameConfig().skins[getGame()][getPlayerCurrentSubAccount(client).skin][0]);
fadePlayerCamera(client, true, 1000);
fadePlayerCamera(client, true, 2000);
updatePlayerSpawnedState(client, true);
makePlayerStopAnimation(client);
setPlayerControlState(client, true);
@@ -960,7 +960,7 @@ function processPlayerDeath(client) {
}
spawnPlayer(client, closestHospital.position, closestHospital.heading, getGameConfig().skins[getGame()][getPlayerCurrentSubAccount(client).skin][0]);
fadePlayerCamera(client, true, 1000);
fadePlayerCamera(client, true, 2000);
updatePlayerSpawnedState(client, true);
makePlayerStopAnimation(client);
setPlayerControlState(client, true);

View File

@@ -177,7 +177,7 @@ function respawnPlayerForPaintBall(client) {
spawnPlayer(client, getBusinessData(businessId).exitPosition, 0.0, getPlayerSkin(client), getBusinessData(businessId).exitInterior, getBusinessData(businessId).exitDimension);
if (isFadeCameraSupported()) {
fadeCamera(client, true, 0.5);
fadePlayerCamera(client, true, 500);
}
updatePlayerSpawnedState(client, true);
makePlayerStopAnimation(client);

View File

@@ -272,7 +272,7 @@ function checkPlayerPedStates() {
function showConnectCameraToPlayer(client) {
if (isFadeCameraSupported()) {
fadeCamera(client, true, 1);
fadePlayerCamera(client, true, 1000);
}
if (isCustomCameraSupported()) {
@@ -562,7 +562,7 @@ function processPlayerEnteringExitingProperty(client) {
setTimeout(function () {
if (isFadeCameraSupported()) {
fadeCamera(client, true, 1.0);
fadePlayerCamera(client, true, 1000);
}
updateInteriorLightsForPlayer(client, propertyData.interiorLights);
}, 1000);
@@ -622,7 +622,7 @@ function processPlayerEnteringExitingProperty(client) {
setTimeout(function () {
if (getGame() != V_GAME_MAFIA_ONE && getGame() != V_GAME_GTA_IV) {
if (isFadeCameraSupported()) {
fadeCamera(client, true, 1.0);
fadePlayerCamera(client, true, 1000);
}
}
updateInteriorLightsForPlayer(client, (inProperty != false) ? inProperty.interiorLights : true);