Commit Graph
694 Commits
Author SHA1 Message Date
Ovahlord 15f09fb82b Core/Misc: fixed warnings and building connection patcher with boost versions below 1.61 2019-11-06 00:51:04 +01:00
Artamedes f8f1701189 Core/Movement: Fix SMSG_MOVE_UPDATE_SWIM_SPEED structure (#14)
* Core/MovementStructures: Fix SMSG_MOVE_UPDATE_SWIM_SPEED structure

* Change spacing

* rename a movement status element and add a comment to a nyi movement status element
2019-10-31 03:06:22 +01:00
Ovahlord 7b5ee673fb Core/Movement: renamed MSEHasTransportTime3 to MSEHasVehicleId 2019-10-31 01:51:14 +01:00
Ovahlord a2654c32fc Core/Movement: fixed linux build 2019-10-25 13:05:52 +02:00
ccrs 83c0bb1f93 Core/Movement: handle Resume/Pause on RandomMovementGenerator 2019-10-17 03:44:29 +02:00
Artamedes 57992c4f0d Core/PacketIO: Update UpdateFlags for SMSG_UPDATE_OBJECT movement update (#9)
* Core/PacketIO: Update UpdateFlags for SMSG_UPDATE_OBJECT movement update

* 1

* Core/NetworkOI: corrected connection type for SMSG_MOVE_UPDATE

* suggestions
2019-10-15 19:11:15 +02:00
Ovahlord 5cd48b2afc Core/Movement: fixed a typo in MoveTakeoff that was causing flying creatures not lifting off properly 2019-10-06 06:57:18 +02:00
Treeston 3edbb05425 Core/Movement: Properly resume chase/follow movement if it was paused by a spell cast 2019-10-06 06:32:51 +02:00
ccrs 94980ab362 Core/Movement: move MoveSplineInit (#21857)
The number of edge cases in which weirdness is seen on "effect movements" will be kinda reduced, plus consistency, plus movementInform on custom movement spline initalizations.

Core/Movement: use helpers for validation

Core/Movement: crashfix workaround
2019-10-06 04:55:46 +02:00
Ovahlord b40b738975 Core/Movement: fixed an issue in the spline synch packet that was causing cyclic splines to get asynch 2019-10-05 07:47:29 +02:00
Ovahlord e135d35551 Core/Movement: implement cyclic path motion master helper to allow creatures to move along hardcoded spline points that are perfect circles 2019-10-05 06:30:55 +02:00
Ovahlord 8bec6af24a Core/NetworkIO: implement 2nd connection 2019-10-03 22:32:24 +02:00
Ovahlord 3a4e9d3c91 Core/Taxis: teleport players to the taxi node coordinates instead of their current position 2019-09-26 19:23:59 +02:00
Ovahlord 6f1c532cd9 Core/Movement: fixed flight paths ending prematurely
* fixed teleporting players to their flight end location
2019-09-26 18:24:33 +02:00
Ovahlord 4f68443817 Core/Movement: provide an additional spline vertex for taxi paths so taxi path nodes will no longer get lost in the process 2019-09-22 14:11:23 +02:00
Giacomo Pozzoni fd8e20893d Core/MovementGenerator: 680e1cb follow-up 2019-09-22 13:55:47 +02:00
Giacomo Pozzoni 2bacebe93b Core/MovementGenerator: Fix crash in taxi paths
Fix a crash in taxi paths happening when joining a battleground/dungeon while on a taxi path after second last node but close to last node, then leaving/finishing the battleground.
2019-09-17 15:56:42 +02:00
Ovahlord a1edcd0aed Kill a whitespace from last commit 2019-09-14 18:25:27 +02:00
Ovahlord 9a0fe48e70 Core/Movement: fixed packet structure for SMSG_MOVE_SET_CAN_TRANSITION_BETWEEN_SWIM_AND_FLY and SMSG_MOVE_UNSET_CAN_TRANSITION_BETWEEN_SWIM_AND_FLY
* enabled CMSG_MOVE_SET_CAN_TRANSITION_BETWEEN_SWIM_AND_FLY_ACK
2019-09-14 18:23:58 +02:00
Giacomo Pozzoni e8b9723b02 Core/Movement: Fix LoS issue of NPCs chasing targets
Add Line of Sight checks to ChaseMovementGenerator::Update(), fixing to ChaseMovementGenerator not reaching a point with valid LoS to the target.

Fix re-implements 8927a04253 after 2a84562dc85516f432bb1e5de9add23c28b26ce4 partially removed it.

Fix #23724
2019-09-14 02:58:53 +02:00
Ovahlord d7e79d1892 Core/Movement: fixed build 2019-08-18 12:53:29 +02:00
jackpoz 8a1828aa43 Core/Misc: Fix linux build 2019-08-18 11:53:01 +02:00
jackpoz b407e6da1c Core/MMaps: Fix mobs evading when target is out of MMap meshes
Fix mobs evading when target is out of MMap meshes causes by an overzealous check added in c602220e02bed1ad76c9e60064eeec5fd97bfe80 when trying to fix an infinite loop in Recast.
If the target is outside of the MMap mesh (for example very close to a wall which is an un-walkable area with current TrinityCore settings and that might be changed in the future) Detour will not be able to find the height of the poly and getPolyHeight() will return DT_FAILURE | DT_INVALID_PARAM . Most of the time this is ok and can be ignored and it's still better than having the Unit evade.
Fix #23613
2019-08-18 11:52:54 +02:00
Ovahlord c5d906c3aa Core/Movement: fixed packet structure for CMSG_MOVE_WATER_WALK_ACK 2019-08-16 23:27:56 +02:00
Ovahlord 3821779d24 Core/Movement: enabled SMSG_MOVE_UPDATE_FLIGHT_BACK_SPEED and added movement structure for it. Todo: test for errors 2019-08-13 22:00:43 +02:00
Ovahlord f526fc9768 Core/Movement: fixed a crash in MotionMaster that was caused in combination with MovementInform and DoZoneInCombat 2019-08-04 03:24:19 +02:00
Ovahlord 75541245c5 Core/Movement: ported a crashfix for spline chain movement generators to fix an issue that was causing a crash when the spline chain movement generator was trying to move to an spline point that did not exist 2019-07-10 22:38:56 +02:00
Ovahlord 3b5c7f40e2 Core/Movement: spline chains will now properly handle flying spline chains 2019-07-08 21:03:33 +02:00
Ovahlord 14a2770f2b Core/Movement: add velocity argument for spline chains to control their speed since there are some cases (especially for flying units) that use a different velocity than their current speed values allow 2019-07-08 13:12:55 +02:00
Ovahlord b6cbd70533 Core/Movement: added a velocity argument for MoveSmoothPath motion master 2019-07-06 23:09:13 +02:00
Ovahlord 35d95a7b87 Core/FlightPath: teleport players at destination on floor Z when the flight ends, instead of having them fall from the air
(ported commit: 6a0a800535f6de9f6028a5375abfaf1dae8c7c28)
2019-07-06 14:03:45 +02:00
Ovahlord dfbf50234d Core/Packets: Port packet handling rework from 335 branch 2019-05-30 16:59:37 +02:00
Ovahlord 5501502a03 Core/Movement: ported some movement flag updates from master branch in order to properly fix swim movement for creatures 2019-05-30 13:14:07 +02:00
Ovahlord f351eac0af Core/Movement: Liftoff and Takeoff will now always use fly and catmullrom movement flags 2019-05-28 20:27:07 +02:00
Ovahlord a13dc7013d Core/Vehicles: Fix accessories disappearing on reset (ported commit: 6dae4a747da558ca46a777186d4519c32fc1bf04) 2019-05-12 01:28:09 +02:00
Shauren 96faf78409 Core/Movement: Use correct root check 2019-05-12 01:26:20 +02:00
Shauren e610b8440c Core/Movement: Prevent rooted units from falling
* Fixes a client freeze

Closes #23042
2019-05-12 01:26:00 +02:00
Ovahlord ab95871811 Core/Objects: replaced another IsFlying check with CanFly to make sure that hovering creatures will get their ground height returned properly
*also fixed a small typo in path generator
2019-05-06 02:30:24 +02:00
Shauren 28da58ea8b Core/Misc: Fixed -Wcast-function-type warning 2019-04-29 08:45:26 +02:00
jackpoz 4da12422eb Core/MMaps: Revert PATHFIND_INCOMPLETE handling change in ChaseMovementGenerator in 386b5a6fd948b4866cbd9a8a9892e8777922e9c9 since the current hp reset code in Creature::Update() will reset the hp of bosses as soon as CanNotReachTarget() is true. In case of boss mechanics like Abub'Rekhan at Naxx where the boss throws the player in the air, a PATHFIND_INCOMPLETE path is returned.
The code in Creature::Update() should be modified to wait a few seconds before resetting the hp. PATHFIND_NOPATH / PATHFIND_INCOMPLETE don't really mean that the Creature can't attack the player anyway either.

# Conflicts:
#	src/server/game/Movement/MovementGenerators/ChaseMovementGenerator.cpp
2019-04-29 08:44:37 +02:00
jackpoz 237901719a Core/MMaps: Fix crash added in 386b5a6fd948b4866cbd9a8a9892e8777922e9c9
# Conflicts:
#	src/server/game/Movement/MovementGenerators/ChaseMovementGenerator.cpp

* fixed cherrypick conflicts
2019-04-14 12:27:49 +02:00
Ovahlord aa62a9c75f Core/Movement: solve cherrypick conflicts 2019-04-14 12:15:11 +02:00
jackpoz 5cb3e69e1e Core/MMaps: Simplify d182e5f7e73e614185f4470429467befd6e03981 and handle PATHFIND_INCOMPLETE in ChaseMovementGenerator as "cannot reach the target"
# Conflicts:
#	src/server/game/Movement/MovementGenerators/ChaseMovementGenerator.cpp
2019-04-14 12:13:59 +02:00
jackpoz 6552a00208 Core/MMaps: Fallback to shortcut for flying units if Detour returned an incomplete path.
Fallback to shortcut for flying units if Detour returned an incomplete path. This is needed when a flying unit should fly to the floor below to reach the target, but since Recastnavigation doesn't support "jumping down" the unit would not find a path to the target.
2019-04-14 12:12:15 +02:00
Ovahlord 13f7ee4235 Core/Logs: merged path generator log category cleanup 2019-04-04 17:36:26 +02:00
Ovahlord bd58cb3ab1 Core/MMaps: Fix infinite loop in Detour (ported commit: c602220e02bed1ad76c9e60064eeec5fd97bfe80) 2019-03-03 05:27:55 +01:00
Ovahlord b0c37b25cc Core/Movement: ported some undermap fixups from a TC pull request 2019-02-23 22:37:17 +01:00
Ovahlord f763095de9 Core: merged some analysis issue fixup commits from master and 335 2019-02-18 04:15:05 +01:00
Ovahlord eb15db4522 Core/Movement: first part of porting the new creature hover handling 2019-02-18 01:52:15 +01:00
Ovahlord 50a91bd590 Core/Movement: merged Collision height handling from 335 branch to reduce the probability that creatures are falling under the map 2019-02-17 23:40:24 +01:00