From ea1a9214e95ec7f18f53573bae5e214139ba6ea4 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Tue, 5 Jan 2021 01:24:35 -0600 Subject: [PATCH] Disable ambience on enter/exit property --- scripts/server/misc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/server/misc.js b/scripts/server/misc.js index b17d0e7a..55097bae 100644 --- a/scripts/server/misc.js +++ b/scripts/server/misc.js @@ -129,6 +129,7 @@ function enterExitPropertyCommand(command, params, client) { } meActionToNearbyPlayers(client, "opens the door and exits the house"); fadeCamera(client, false, 1.0); + disableCityAmbienceForPlayer(client); setTimeout(function() { setPlayerPosition(client, inHouse.entrancePosition); setPlayerHeading(client, inHouse.entranceRotation); @@ -143,7 +144,6 @@ function enterExitPropertyCommand(command, params, client) { }, 1000); }, 1100); removeEntityData(client, "ag.inHouse"); - } return true; } @@ -157,6 +157,7 @@ function enterExitPropertyCommand(command, params, client) { } meActionToNearbyPlayers(client, "opens the door and exits the business"); fadeCamera(client, false, 1.0); + disableCityAmbienceForPlayer(client); setTimeout(function() { setPlayerPosition(client, inBusiness.entrancePosition); setPlayerHeading(client, inBusiness.entranceRotation); @@ -227,7 +228,6 @@ function enterExitPropertyCommand(command, params, client) { meActionToNearbyPlayers(client, "opens the door and enters the house"); - fadeCamera(client, false, 1.0); disableCityAmbienceForPlayer(client); setTimeout(function() {