Fixes for interior scene change

This commit is contained in:
Vortrex
2023-02-22 16:27:13 -06:00
parent 51194882c1
commit b9f47539a8

View File

@@ -565,13 +565,6 @@ function processPlayerEnteringExitingProperty(client) {
fadePlayerCamera(client, true, 1000);
}
updateInteriorLightsForPlayer(client, propertyData.interiorLights);
}, 1000);
if (getPlayerData(client).enteringExitingProperty[0] == V_PROPERTY_TYPE_BUSINESS) {
if (propertyData.type == V_BIZ_TYPE_PAINTBALL) {
startPaintBall(client);
}
}
let radioStationIndex = propertyData.streamingRadioStationIndex;
if (radioStationIndex != -1) {
@@ -580,6 +573,13 @@ function processPlayerEnteringExitingProperty(client) {
getPlayerData(client).streamingRadioStation = radioStationIndex;
}
}
}, 1000);
if (getPlayerData(client).enteringExitingProperty[0] == V_PROPERTY_TYPE_BUSINESS) {
if (propertyData.type == V_BIZ_TYPE_PAINTBALL) {
startPaintBall(client);
}
}
getPlayerData(client).inProperty = [getPlayerData(client).enteringExitingProperty[0], getPlayerData(client).enteringExitingProperty[1]];
getPlayerData(client).enteringExitingProperty = null;