feat(Core/Config): make taxi flight speed configurable (#27183)

Co-authored-by: sogladev <sogladev@gmail.com>
This commit is contained in:
moostigre 2026-08-27 15:52:09 +02:00 committed by GitHub
parent 6198adc165
commit 7743cb31eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 14 additions and 3 deletions

View file

@ -1635,6 +1635,15 @@ DisableWaterBreath = 4
AllFlightPaths = 0
#
# TaxiFlightSpeed
# Description: Movement speed used while players travel along taxi flight paths.
# Range: >0.01-50.0
# Default: 32.0 - (Blizzlike)
# Note: Values above 50.0 are rejected and fall back to the default value of 32.0.
TaxiFlightSpeed = 32.0
#
# InstantFlightPaths
# Description: Flight paths will take players to their destination instantly instead

View file

@ -682,8 +682,6 @@ void FlightPathMovementGenerator::DoFinalize(Player* player)
player->RemovePlayerFlag(PLAYER_FLAGS_TAXI_BENCHMARK);
}
#define PLAYER_FLIGHT_SPEED 32.0f
void FlightPathMovementGenerator::DoReset(Player* player)
{
uint32 end = GetPathAtMapEnd();
@ -711,7 +709,7 @@ void FlightPathMovementGenerator::DoReset(Player* player)
}
init.SetFirstPointId(GetCurrentNode());
init.SetFly();
init.SetVelocity(PLAYER_FLIGHT_SPEED);
init.SetVelocity(sWorld->getFloatConfig(CONFIG_TAXI_FLIGHT_SPEED));
init.Launch();
}

View file

@ -261,6 +261,9 @@ void WorldConfig::BuildConfigCache()
SetConfigValue<uint32>(CONFIG_MAX_RECRUIT_A_FRIEND_BONUS_PLAYER_LEVEL_DIFFERENCE, "RecruitAFriend.MaxDifference", 4);
SetConfigValue<bool>(CONFIG_ALL_TAXI_PATHS, "AllFlightPaths", false);
// Keep the maximum aligned with the flying speed clamp in MoveSplineInit::Launch.
SetConfigValue<float>(CONFIG_TAXI_FLIGHT_SPEED, "TaxiFlightSpeed", 32.0f, ConfigValueCache::Reloadable::Yes,
[](float const& value) { return value > 0.01f && value <= 50.0f; }, "> 0.01 && <= 50");
SetConfigValue<uint32>(CONFIG_INSTANT_TAXI, "InstantFlightPaths", 0);
SetConfigValue<bool>(CONFIG_INSTANCE_IGNORE_LEVEL, "Instance.IgnoreLevel", false);

View file

@ -37,6 +37,7 @@ enum ServerConfigs
CONFIG_ALLOW_TWO_SIDE_INTERACTION_ARENA,
CONFIG_ALLOW_TWO_SIDE_INTERACTION_AUCTION,
CONFIG_ALL_TAXI_PATHS,
CONFIG_TAXI_FLIGHT_SPEED,
CONFIG_INSTANCE_IGNORE_LEVEL,
CONFIG_INSTANCE_IGNORE_RAID,
CONFIG_INSTANCE_GMSUMMON_PLAYER,