From b65c76347d0da590f54fe5d0706e060c46737169 Mon Sep 17 00:00:00 2001 From: Ziggy Date: Sun, 19 Jan 2025 19:27:45 +0100 Subject: [PATCH] Stop setting customization variables that don't exist on vehicles, as this causes most of the variables to be ignored by the client --- .../services/gameplay/world/travel/PlayerMountService.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/com/projectswg/holocore/services/gameplay/world/travel/PlayerMountService.kt b/src/main/java/com/projectswg/holocore/services/gameplay/world/travel/PlayerMountService.kt index 777564226..6db639bc8 100644 --- a/src/main/java/com/projectswg/holocore/services/gameplay/world/travel/PlayerMountService.kt +++ b/src/main/java/com/projectswg/holocore/services/gameplay/world/travel/PlayerMountService.kt @@ -256,7 +256,6 @@ class PlayerMountService : Service() { mount.setTurnScale(vehicleInfo.turnRateMax.toDouble()) mount.setAccelScale(vehicleInfo.accelMax) mount.putCustomization("/private/index_speed_max", (vehicleInfo.speed * 10.0).toInt()) - mount.putCustomization("/private/index_speed_min", (vehicleInfo.minSpeed * 10.0).toInt()) mount.putCustomization("/private/index_turn_rate_min", vehicleInfo.turnRate) mount.putCustomization("/private/index_turn_rate_max", vehicleInfo.turnRateMax) mount.putCustomization("/private/index_accel_min", (vehicleInfo.accelMin * 10.0).toInt()) @@ -269,7 +268,6 @@ class PlayerMountService : Service() { mount.putCustomization("/private/index_banking", vehicleInfo.bankingAngle.toInt()) mount.putCustomization("/private/index_hover_height", (vehicleInfo.hoverHeight * 10.0).toInt()) mount.putCustomization("/private/index_auto_level", (vehicleInfo.autoLevel * 100.0).toInt()) - mount.putCustomization("/private/index_strafe", if (vehicleInfo.isStrafe) 1 else 0) ObjectCreatedIntent(mount).broadcast() StandardLog.onPlayerTrace(this, player, "called mount %s at %s %s", mount, mount.terrain, mount.location.position)