Small fixes
This commit is contained in:
@@ -29,14 +29,14 @@ function setLocalPlayerControlState(controlState, cursorState = false) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function fadeLocalCamera(state, duration, colour) {
|
function fadeLocalCamera(state, duration, colour) {
|
||||||
logToConsole(LOG_DEBUG, `[V.RP.Utilities] Fading camera ${(state) ? "in" : "out"} for ${time}ms`);
|
logToConsole(LOG_DEBUG, `[V.RP.Utilities] Fading camera ${(state) ? "in" : "out"} for ${duration}ms`);
|
||||||
|
|
||||||
cameraFadeDuration = duration;
|
cameraFadeDuration = duration;
|
||||||
cameraFadeStart = sdl.ticks;
|
cameraFadeStart = sdl.ticks;
|
||||||
cameraFadeEnabled = true;
|
|
||||||
cameraFadeIn = state;
|
cameraFadeIn = state;
|
||||||
cameraFadeColour = colour;
|
cameraFadeColour = colour;
|
||||||
cameraFadeAlpha = (state) ? 255 : 0;
|
cameraFadeAlpha = (state) ? 255 : 0;
|
||||||
|
cameraFadeEnabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
@@ -403,7 +403,9 @@ function processLocalPlayerVehicleControlState() {
|
|||||||
if (localPlayer.vehicle != null) {
|
if (localPlayer.vehicle != null) {
|
||||||
if (doesEntityDataExist(localPlayer.vehicle, "v.rp.engine")) {
|
if (doesEntityDataExist(localPlayer.vehicle, "v.rp.engine")) {
|
||||||
if (getEntityData(localPlayer.vehicle, "v.rp.engine") == false) {
|
if (getEntityData(localPlayer.vehicle, "v.rp.engine") == false) {
|
||||||
localPlayer.vehicle.engine = false;
|
if (localPlayer.vehicle.engine == true) {
|
||||||
|
localPlayer.vehicle.engine = false;
|
||||||
|
}
|
||||||
//localPlayer.vehicle.netFlags.sendSync = false;
|
//localPlayer.vehicle.netFlags.sendSync = false;
|
||||||
if (!localPlayer.vehicle.engine) {
|
if (!localPlayer.vehicle.engine) {
|
||||||
if (typeof localPlayer.vehicle.velocity != "undefined") {
|
if (typeof localPlayer.vehicle.velocity != "undefined") {
|
||||||
|
|||||||
Reference in New Issue
Block a user