Use new custom fade camera
This commit is contained in:
@@ -376,7 +376,7 @@ function enterExitPropertyCommand(command, params, client) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isFadeCameraSupported()) {
|
if (isFadeCameraSupported()) {
|
||||||
fadeCamera(client, false, 1.0);
|
fadePlayerCamera(client, false, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
@@ -411,7 +411,7 @@ function enterExitPropertyCommand(command, params, client) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isFadeCameraSupported()) {
|
if (isFadeCameraSupported()) {
|
||||||
fadeCamera(client, false, 1.0);
|
fadePlayerCamera(client, false, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
@@ -927,7 +927,7 @@ function processPlayerDeath(client) {
|
|||||||
updatePlayerSpawnedState(client, false);
|
updatePlayerSpawnedState(client, false);
|
||||||
setPlayerControlState(client, false);
|
setPlayerControlState(client, false);
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
fadePlayerCamera(client, false, 1000);
|
fadePlayerCamera(client, false, 2000);
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
if (isPlayerInPaintBall(client)) {
|
if (isPlayerInPaintBall(client)) {
|
||||||
respawnPlayerForPaintBall(client);
|
respawnPlayerForPaintBall(client);
|
||||||
@@ -944,7 +944,7 @@ function processPlayerDeath(client) {
|
|||||||
|
|
||||||
spawnPlayer(client, closestJail.position, closestJail.heading, getGameConfig().skins[getGame()][getPlayerCurrentSubAccount(client).skin][0]);
|
spawnPlayer(client, closestJail.position, closestJail.heading, getGameConfig().skins[getGame()][getPlayerCurrentSubAccount(client).skin][0]);
|
||||||
|
|
||||||
fadePlayerCamera(client, true, 1000);
|
fadePlayerCamera(client, true, 2000);
|
||||||
updatePlayerSpawnedState(client, true);
|
updatePlayerSpawnedState(client, true);
|
||||||
makePlayerStopAnimation(client);
|
makePlayerStopAnimation(client);
|
||||||
setPlayerControlState(client, true);
|
setPlayerControlState(client, true);
|
||||||
@@ -960,7 +960,7 @@ function processPlayerDeath(client) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
spawnPlayer(client, closestHospital.position, closestHospital.heading, getGameConfig().skins[getGame()][getPlayerCurrentSubAccount(client).skin][0]);
|
spawnPlayer(client, closestHospital.position, closestHospital.heading, getGameConfig().skins[getGame()][getPlayerCurrentSubAccount(client).skin][0]);
|
||||||
fadePlayerCamera(client, true, 1000);
|
fadePlayerCamera(client, true, 2000);
|
||||||
updatePlayerSpawnedState(client, true);
|
updatePlayerSpawnedState(client, true);
|
||||||
makePlayerStopAnimation(client);
|
makePlayerStopAnimation(client);
|
||||||
setPlayerControlState(client, true);
|
setPlayerControlState(client, true);
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ function respawnPlayerForPaintBall(client) {
|
|||||||
|
|
||||||
spawnPlayer(client, getBusinessData(businessId).exitPosition, 0.0, getPlayerSkin(client), getBusinessData(businessId).exitInterior, getBusinessData(businessId).exitDimension);
|
spawnPlayer(client, getBusinessData(businessId).exitPosition, 0.0, getPlayerSkin(client), getBusinessData(businessId).exitInterior, getBusinessData(businessId).exitDimension);
|
||||||
if (isFadeCameraSupported()) {
|
if (isFadeCameraSupported()) {
|
||||||
fadeCamera(client, true, 0.5);
|
fadePlayerCamera(client, true, 500);
|
||||||
}
|
}
|
||||||
updatePlayerSpawnedState(client, true);
|
updatePlayerSpawnedState(client, true);
|
||||||
makePlayerStopAnimation(client);
|
makePlayerStopAnimation(client);
|
||||||
|
|||||||
@@ -272,7 +272,7 @@ function checkPlayerPedStates() {
|
|||||||
|
|
||||||
function showConnectCameraToPlayer(client) {
|
function showConnectCameraToPlayer(client) {
|
||||||
if (isFadeCameraSupported()) {
|
if (isFadeCameraSupported()) {
|
||||||
fadeCamera(client, true, 1);
|
fadePlayerCamera(client, true, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isCustomCameraSupported()) {
|
if (isCustomCameraSupported()) {
|
||||||
@@ -562,7 +562,7 @@ function processPlayerEnteringExitingProperty(client) {
|
|||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
if (isFadeCameraSupported()) {
|
if (isFadeCameraSupported()) {
|
||||||
fadeCamera(client, true, 1.0);
|
fadePlayerCamera(client, true, 1000);
|
||||||
}
|
}
|
||||||
updateInteriorLightsForPlayer(client, propertyData.interiorLights);
|
updateInteriorLightsForPlayer(client, propertyData.interiorLights);
|
||||||
}, 1000);
|
}, 1000);
|
||||||
@@ -622,7 +622,7 @@ function processPlayerEnteringExitingProperty(client) {
|
|||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
if (getGame() != V_GAME_MAFIA_ONE && getGame() != V_GAME_GTA_IV) {
|
if (getGame() != V_GAME_MAFIA_ONE && getGame() != V_GAME_GTA_IV) {
|
||||||
if (isFadeCameraSupported()) {
|
if (isFadeCameraSupported()) {
|
||||||
fadeCamera(client, true, 1.0);
|
fadePlayerCamera(client, true, 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
updateInteriorLightsForPlayer(client, (inProperty != false) ? inProperty.interiorLights : true);
|
updateInteriorLightsForPlayer(client, (inProperty != false) ? inProperty.interiorLights : true);
|
||||||
|
|||||||
Reference in New Issue
Block a user