Commit Graph

276 Commits

Author SHA1 Message Date
Hondacrx 04ae85c5be Fixes a index out of range crash 2025-08-31 13:26:11 -04:00
Hondacrx 0f9b44e44b Core/Commands: Waypoint command fixes
Port From (https://github.com/TrinityCore/TrinityCore/commit/e284dc0a8025c5e4da65271914c88d9afac95667)
2025-08-18 20:45:05 -04:00
Hondacrx ebd9c9e636 Core: Updated to 11.1.7
Port From (https://github.com/TrinityCore/TrinityCore/commit/ceb8d561b44579118b109a9ff71ba415df53bbdc)
2025-08-18 14:47:48 -04:00
Hondacrx 5f6329665a Core/Movement: Spline code cleanup
Port From (https://github.com/TrinityCore/TrinityCore/commit/e02e8a474244c229cc34c4efb987e24b6dd417f5)
2025-08-18 11:03:03 -04:00
Hondacrx 6995976f3c Core/Misc: Remove extremely forgettable tiny utility function
Port From (https://github.com/TrinityCore/TrinityCore/commit/6502efbae802c2164c80769ff4c5389e4142d3b6)
2025-08-18 10:50:56 -04:00
Hondacrx 51fbf8e33e Core/Movement: Fix WaypointMgr::GetNode infinite recursion (function isn't used anywhere currently)
Port From (https://github.com/TrinityCore/TrinityCore/commit/7e27c42a2fe5e88e33cb8adede9a50b2785a5d65)
2025-08-18 10:15:53 -04:00
Hondacrx b444c2f23c Core/Movement: Fixed orientation calculation when using MoveSpline::ComputePosition(int32 time_offset) overload
Port From (https://github.com/TrinityCore/TrinityCore/commit/3596ecaf311819cd0b34c511b7cdc9b09a411f6d)
2025-08-18 09:54:18 -04:00
Hondacrx 59b507e93d Fixed Server starting. 2025-06-09 00:04:23 -04:00
Hondacrx 447c222665 Core/PacketIO: Named a bunch of unknown/unused fields
Port From (https://github.com/TrinityCore/TrinityCore/commit/806611075659ddde60f3003763e442a46d70f993)
2024-11-17 13:07:52 -05:00
Hondacrx 406aa5e445 Fix login 2024-11-16 23:05:45 -05:00
Hondacrx 60ad9da7b5 Core/Movement: Implemented cyclic waypoint movement
Port From (https://github.com/TrinityCore/TrinityCore/commit/222a80a6d62410eae6fa46dbdc60309f1728653a)
2024-11-10 21:52:46 -05:00
Hondacrx ba2aa0d0c0 Core/Movement: Made fixed ChaseAngle optional and added possibility to ignore setting walk/run depending on target
Port From (https://github.com/TrinityCore/TrinityCore/commit/51872d50ff250df0bad130ab7843b69ea921a1f1)
2024-09-02 22:31:06 -04:00
Hondacrx 3c6b3bd455 Core/Movement: Defined and implemented new spline flag - JumpOrientationFixed
Port From (https://github.com/TrinityCore/TrinityCore/commit/bd9fb4a56303e2bd8046e77d425250b9757aa74c)
2024-08-31 17:16:04 -04:00
Hondacrx 7a43203e0c Core/Movement: Allow setting position or object facing targets for jump movement
Port From (https://github.com/TrinityCore/TrinityCore/commit/ac73edc268bc8d5bbda9f4b05168e3e24c25ca45)
2024-08-26 16:48:36 -04:00
Hondacrx 5508d53db2 Core/Movement: Migrate scripts using GetMotionMaster()->MoveSmoothPath to GetMotionMaster()->MovePath and kill it (they now have the same capabilities)
Port From (https://github.com/TrinityCore/TrinityCore/commit/dad976beb4f1a865e5df5d6f03da1d00d266e1fc)
2024-08-19 11:37:07 -04:00
Hondacrx a162bf0eb7 Core/Movement: Enable Catmullrom spline flag by default for flying waypoint paths
Port From (https://github.com/TrinityCore/TrinityCore/commit/e0e1b6a4098badb6f48ba1d5cb1cc1739e310959)
2024-08-18 22:11:34 -04:00
Hondacrx 73ff8e4585 Core/Movement: Fixed spline packed deltas validation check
Port From (https://github.com/TrinityCore/TrinityCore/commit/ad6ef5237d0bd2d18e15462c9b55576ebb68fb22)
2024-08-18 22:10:32 -04:00
Hondacrx 116cfcdcf9 Core/Movement: Change default spline flags - Steering replaces SmoothGroundPath
Port From (https://github.com/TrinityCore/TrinityCore/commit/3af5cafec782ab4d5d5d8478927caae0e6258174)
2024-08-18 22:08:08 -04:00
Hondacrx 7d83729d84 Core/Movement: Switch to uncompressed paths in spline packets automatically when too large or too small delta between points is detected
Port From (https://github.com/TrinityCore/TrinityCore/commit/377b51f76828befaaf6a6e7c3a9405fc8798d93d)
2024-08-18 21:07:00 -04:00
Hondacrx da8b685c14 Core/Movement: Implemented alternative method of smoothing waypoint paths (send new point 1.5 before arrival) and make that the default
Port From (https://github.com/TrinityCore/TrinityCore/commit/cf1ab7b4142f1d070d999c4141109a6c6c46d06d)
2024-08-18 18:22:59 -04:00
Hondacrx a51d7d3e05 Core/Movement: Merge waypoints without delay into a single movement packet
Port From (https://github.com/TrinityCore/TrinityCore/commit/204f65684c2a027baa7a3c2d647f0e735a368c62)
2024-08-18 17:55:28 -04:00
Hondacrx 35cc0006c8 Core/Movement: Added functions to MoveSplineInit to enable steering flag
Port From (https://github.com/TrinityCore/TrinityCore/commit/cf4c3b5467fde04f53636443a7a8b392aa527cf5)
2024-08-12 16:16:29 -04:00
Hondacrx 8805432cee Core/Movement: Store delay in WaypointNode as Milliseconds instead of raw integer
Port From (https://github.com/TrinityCore/TrinityCore/commit/e1f43900d110e50a2021d605c61cfe7c436bcc54)
2024-08-12 16:13:15 -04:00
Hondacrx 194ca97e93 Core/Movement: Fixed pauses on waypoint movement happening at wrong times when FollowPathBackwardsFromEndToStart is set and creature is going from end to start
Port From (https://github.com/TrinityCore/TrinityCore/commit/c5097114d1d08d6d6f7d2adc9f5f3f52f75c5818)
2024-08-12 16:04:52 -04:00
Hondacrx 698b7452ed Fix build 2024-08-11 22:07:02 -04:00
Hondacrx 5b7818464a Core/Pathfinding: Allow using PathGenerator with any source location, not only objects current position
Port From (https://github.com/TrinityCore/TrinityCore/commit/e5beb25d2529cee9f7d83f227b06ce3d47f6d2c2)
2024-08-11 22:05:44 -04:00
Hondacrx 2f71dbfda0 Core/SAI: Implement waiting for actions on action list to finish before continuing the action list
Port From (https://github.com/TrinityCore/TrinityCore/commit/5dfac0ef142c1b59e41c51ab2cca48083be4cb9e)
2024-08-08 17:28:27 -04:00
Hondacrx 39198d0ffc Core/Movement: Ensure land and takeoff animations even if gravity enabled/disabled state is not what spline generator expects
Port From (https://github.com/TrinityCore/TrinityCore/commit/be3ae90dc488894afea8e4cca74d9105558fff53)
2024-08-05 14:17:54 -04:00
Hondacrx 708df58712 Core/Scripts: Integrate new ActionResultSetter with movement generators and spells
Port From (https://github.com/TrinityCore/TrinityCore/commit/b265c49977235dea5e7e69d7b6fb93f4943bf87a)
2024-08-05 14:12:00 -04:00
Hondacrx 22fbfd8360 Core/Movement: Allow overriding speed for taxi movement generator
Port From (https://github.com/TrinityCore/TrinityCore/commit/038f995ad6ce6a26f71367cae3eb7ae107527a18)
2024-08-04 17:18:56 -04:00
Hondacrx 65007add12 Core/Movement: Added Velocity field to waypoint_path table
Port From (https://github.com/TrinityCore/TrinityCore/commit/e8f7d4153622aea70ac74fb73e134d51cdac821d)
2024-08-04 16:40:44 -04:00
Hondacrx e9b21a91be Core/Battlegrounds: Move to scripts And a lot of misc commits i couldn't recover.
Port From (https://github.com/TrinityCore/TrinityCore/commit/d0d5d309bb5877dc2fcb27f6cb123707a31ec1e8)
2024-08-04 15:18:22 -04:00
hondacrx 1e421b9f53 Misc fixes 2024-03-19 17:21:32 -04:00
hondacrx 5237c49b77 Fixes creatures that would still random move after casting a spell 2024-03-19 17:18:06 -04:00
hondacrx 00f2e84fe6 Core/Movement: FIxed followPathBackwardsFromEndToStart parameter of MotionMaster::MovePath
Port From (https://github.com/TrinityCore/TrinityCore/commit/ca656f4254e979f049c3cf34e39d5d975e02f2d6)
2024-03-14 11:04:55 -04:00
hondacrx 7fd318d306 Core/Movement: Removed default arg values from MovementGenerator Pause and Resume functions
Port From (https://github.com/TrinityCore/TrinityCore/commit/6c533482c6ae1a4dd9e525bd225197d4e65e735f)
2024-03-14 10:58:01 -04:00
hondacrx 5a2ef185c4 Fixes creatures moving to different cells/grids, Some work on fixing pets. 2024-03-13 23:35:24 -04:00
hondacrx ccf73e23e3 Core/vmaps: Removed vmap lookup functions duplicating functionality of each other
Port From (https://github.com/TrinityCore/TrinityCore/commit/45ee989c70682c001d4467d97bf1ecedcf7dbcc3)
2024-03-12 23:04:13 -04:00
hondacrx 974ca273ae Core/Creatures: Implemented CREATURE_STATIC_FLAG_6_ALWAYS_STAND_ON_TOP_OF_TARGET
Port From (https://github.com/TrinityCore/TrinityCore/commit/7a46f81fd134c41eb58ea66205ec9100a1013b3b)
2024-03-04 11:55:02 -05:00
hondacrx ff4769df1a Core/Movement: require a minimum wander_distance value of 0.1 and check the path length of generated random movement
this serves as a means to reduce the console spam caused by failed spline validation
Port From (https://github.com/TrinityCore/TrinityCore/commit/fb3e6737da7795be651d36ce7493c07c7ecbdfeb)
2024-02-29 17:11:17 -05:00
hondacrx db05394d99 Core/Creatures: implemented most movement related static flags and migrated existing movement data into static flags
* implemented CREATURE_STATIC_FLAG_AQUATIC - creatures cannot leave liquids
* implemented CREATURE_STATIC_FLAG_AMPHIBIOUS - creatures can enter and leave liquids but remain on the ocean floor when swimming is not enabled until engaged
* implemented CREATURE_STATIC_FLAG_FLOATING - creatures have their gravity on spawn / reset disabled
* implemented CREATURE_STATIC_FLAG_SESSILE - creatures are rooted in place
* implemented CREATURE_STATIC_FLAG_CAN_SWIM - creature can swim in liquids
* implemented CREATURE_STATIC_FLAG_3_CANNOT_SWIM - Amphibious creatures cannot toggle on swimming
* implemented CREATURE_STATIC_FLAG_3_CANNOT_TURN - Creatures cannot turn at all
* implemented CREATURE_STATIC_FLAG_4_PREVENT_SWIM - Amphibious creatures won't toggle on swimming until their victim starts leaving the ocean floor
* partially implemented CREATURE_STATIC_FLAG_3_CANNOT_PENETRATE_WATER
* deprecated CREATURE_FLAG_EXTRA_NO_MOVE_FLAGS_UPDATE as this flag was a hackfix to a wrong implementation that is now gone
Port From (https://github.com/TrinityCore/TrinityCore/commit/c541eda54d7e0dddeec329a6beac2948e0b0a40b)
2024-02-29 17:08:30 -05:00
hondacrx 7b248d5d15 Core/Movement: MoveRotate improvements
* Allow overriding rotation speed
* Allow limiting rotation using total rotation angle instead of duration
Port From (https://github.com/TrinityCore/TrinityCore/commit/59f92412d0f2172772155591ee7fa98a54dab06a)
2024-02-28 18:19:31 -05:00
hondacrx dcfcbd779a Core/Creatures: Implemented CREATURE_STATIC_FLAG_5_NO_LEAVECOMBAT_STATE_RESTORE
Port From (https://github.com/TrinityCore/TrinityCore/commit/be3dc89c32e5b60df4c026d8b19505e529e199b6)
2024-02-27 13:49:15 -05:00
hondacrx 18d20e0a75 Core/Movement: Removed template from FleeingMovementGenerator
Port From (https://github.com/TrinityCore/TrinityCore/commit/cc47fd75b44fcfc749cbbdc250295422e8838971)
2024-02-24 15:26:23 -05:00
hondacrx 9d1589afd4 Core/Creatures: Implemented CREATURE_STATIC_FLAG_4_NO_MELEE_APPROACH and fixed CREATURE_STATIC_FLAG_NO_MELEE_FLEE implementation (should cause fleeing from melee range)
Port From (https://github.com/TrinityCore/TrinityCore/commit/a748fddfa47216e1f516303e3bca9b5a86823748)
2024-02-24 15:18:07 -05:00
hondacrx a9b13b7891 Core/Movement: MoveCirclePath new features
* Duration limit
* Customizable speed
Port From (https://github.com/TrinityCore/TrinityCore/commit/88242a42ceabed65520dfccb6e32ff5d8ce63012)
2024-02-21 21:02:28 -05:00
hondacrx 771cbadc69 Core/Waypoints: Refactor to split data into path and node related info in db
Port From (https://github.com/TrinityCore/TrinityCore/commit/12186ef8573f60abeff4747da58767ee71092600)
2024-02-05 17:22:55 -05:00
hondacrx 14e29e9df4 Core/Waypoints: Also facing when orientation is set and node is last of path
Port From (https://github.com/TrinityCore/TrinityCore/commit/6a183e7c647e8a3192b91514862343dd9a89ba6e)
2024-02-05 13:25:40 -05:00
hondacrx 85d4043217 Core/Maps: Fixed pathgenerator always returning NAV_GROUND from GetNavTerrain
Port From (https://github.com/TrinityCore/TrinityCore/commit/a24e3a9511d8b60baf51a4e81aa3e4731746ffe4)
2024-02-04 13:48:05 -05:00
hondacrx 284cb628c9 Core/Waypoints: Drop waypoint_scripts table
Port From (https://github.com/TrinityCore/TrinityCore/commit/3f6f683ce4b5f4a95a2d70921de2c80de6b3a8fe)
2024-02-03 11:47:02 -05:00