Commit Graph

237 Commits

Author SHA1 Message Date
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
hondacrx 871928ebb7 Core/Creatures: Taxi improvements
* Fixed flight master minimap icon
* Fixed crash on Argus
* Implemented teleport taxi nodes
Port From (https://github.com/TrinityCore/TrinityCore/commit/73e0b3e77c04a7821f58d79211f344b9129602f1)
2024-02-02 10:20:04 -05:00
hondacrx d2edbdeecc Core/MMaps: Implemented a way to enable/disable certain terrain types for movement on the entire map
Port From (https://github.com/TrinityCore/TrinityCore/commit/da0ba86694010fcb1adb5ed88cbc212dd4a33ab5)
2024-02-01 11:34:50 -05:00
hondacrx cda53c8e7f Some cleanups. (might break build for scripts as they are a WIP) 2023-10-08 10:35:31 -04:00
hondacrx f7ae161e3d Core/MMaps: Fixed pathing for objects that have terrain swaps active
Port From (https://github.com/TrinityCore/TrinityCore/commit/86725ed9267803506d8a5cab04c2c5641a234dd9)
2023-09-13 20:46:16 -04:00
hondacrx 5e5e17e23c Core/Spells: Fixed effects targeting the caster not hitting him immediately on spell launch if the spell targets a dest
Port From (https://github.com/TrinityCore/TrinityCore/commit/295c8f63269d966812f37a8bd8e988a9f2dc1235)
2023-05-02 15:40:21 -04:00
hondacrx bd2eb5baab Core/Creature: Implemented sparring with max health percent thresholds
Port From (https://github.com/TrinityCore/TrinityCore/commit/0750b7f8455df39a64462636ca296c6f2aa2b048)
2023-04-25 08:38:55 -04:00
hondacrx 4b4b49dacf Core/Movement: Allow passing tier transition id (db2 id) to land/takeoff movement
Port From (https://github.com/TrinityCore/TrinityCore/commit/8bf3bc071ba0de9405f9e573541251d5fcd63cf3)
2023-04-05 08:13:02 -04:00
hondacrx bd437fc87a Fixes/Crashes:
command "cometome"
Using call pet on hunter
crash when casting some spells.
2023-03-20 05:50:18 -04:00
hondacrx bc12537c67 Core/Movement: Refactor TimedFleeingMovementGenerator to use TimeSpan
Port From (https://github.com/TrinityCore/TrinityCore/commit/4300c3edd3b2fe4c0f5a01807271e663b6750ebb)
2023-03-14 02:12:21 -04:00
hondacrx aeaf5da3a2 Core/Movement: New waypoint movement features
Port From (https://github.com/TrinityCore/TrinityCore/commit/cf2e0e2faad78617012e8259352d08e7a62e6026)
2023-03-14 01:51:43 -04:00
hondacrx 351e05104d Core/Movement: Refactor jump speed calculation out of spell code
Port From (https://github.com/TrinityCore/TrinityCore/commit/705d5701bf17f1787d2646c55c994b0404659991)
2023-03-13 03:29:40 -04:00
hondacrx cd42942a7c Core/Units: Added Unit::SetFacingToPoint function
Port From (https://github.com/TrinityCore/TrinityCore/commit/cdc09d29bc8fcb85d97846027ddf589478e21139)
2023-03-13 03:24:45 -04:00
hondacrx 888ed91c82 Core/Movement: Allow specifying timeout for follow movement
Port From (https://github.com/TrinityCore/TrinityCore/commit/39b76cfbc2022b9ba21786d235927fa3bbdf04eb)
2023-03-13 03:20:01 -04:00
hondacrx 62c3c90017 Core/Movement: Extend MovePoint with new arguments
Port From (https://github.com/TrinityCore/TrinityCore/commit/0026706e8333c79f8baae341b94e65e1eac484ca)
2023-03-13 03:15:43 -04:00
hondacrx 3db8d740f9 Core/Movement: Allow specifying timeout for random movement
Port From (https://github.com/TrinityCore/TrinityCore/commit/66b29fba44be39609fb79f2b35d82078b6656f91)
2023-03-13 03:00:03 -04:00
hondacrx f51dbf95ec Fixes creatures falling under map when chasing a player though water. 2023-02-21 19:18:28 -05:00
hondacrx 149fadccab Make PreparedStatements static for each database. 2023-02-04 20:55:14 -05:00
hondacrx f73e64396f Update license headers for all files. 2023-01-18 17:25:32 -05:00
hondacrx 54a507e284 Core/Maps: Fixed retrieving terrain info when on child maps
Port From (https://github.com/TrinityCore/TrinityCore/commit/704142f15a51055c4fa064b1286b65d78b795e05)
2023-01-06 16:38:58 -05:00
hondacrx 0b9faa25cf Core/Movement: Don't compute orientation for vertical splines
Port From (https://github.com/TrinityCore/TrinityCore/commit/8d83c78618d5cde9f09e68e193ecb366b52b8381)
2023-01-06 16:01:16 -05:00
hondacrx 02452aaa3d Forgot to change updater to look for newest full DBs 2022-08-09 11:03:35 -04:00
hondacrx dacf9b1992 Fixes getting random disconnect. 2022-08-08 18:02:47 -04:00
hondacrx 695f212be6 Core/Units: Removed spline speed limit for MoveJumpWithGravity
Port From (https://github.com/TrinityCore/TrinityCore/commit/96295cfc5fdd6790313eda694da99ee661f3c0f0)
2022-07-25 22:13:03 -04:00
hondacrx efd2f4cb49 Core/Maps: Removed MapInstanced - no longer neccessary for grid data reference counting (moved to TerrainInfo)
Port From (https://github.com/TrinityCore/TrinityCore/commit/fbe0b8efebca3bc2662b477bdf45627f9783d6c2)
2022-07-24 17:50:51 -04:00
hondacrx 3cd58e4a17 Core/Maps: Move terrain data handling out of Map class
Port From (https://github.com/TrinityCore/TrinityCore/commit/16a06346aea16ffd6ee84081cedfdb0c75ac0b38)
2022-07-24 16:31:00 -04:00
hondacrx 17f3eab338 Fixes falling though map when using charge on a hill. 2022-07-20 01:39:25 -04:00
hondacrx acb9db8891 Fixes creatures aggro range, Wrong check on pathpoints, and a crash when there is no unitCaster. 2022-07-17 22:49:28 -04:00
hondacrx 206c5afcca Core/Formation: Fixes creature formation movement not syncing with leader. 2022-07-11 22:21:27 -04:00
hondacrx 077ac3988d Core/Movement: Some movement fixes 2022-07-11 22:20:56 -04:00
hondacrx 8cfd263fea Start adding missing scripts Part2 2022-07-05 15:39:49 -04:00
hondacrx d42733e3b4 More cleanups, transports still not working. working on a fix. 2022-06-21 15:43:35 -04:00
hondacrx ed85b3ae55 Core/Movement: Allow waypoints to use 0 as valid facing value
Port From (https://github.com/TrinityCore/TrinityCore/commit/8501fb572a38b7d278c6e37d7b32164c63771550)
2022-06-15 18:12:42 -04:00
hondacrx f91230ae33 Core/Movement: Delay creating MoveSplineInit objects used by GenericMovementGenerator to spline launch time
Port From (https://github.com/TrinityCore/TrinityCore/commit/36dde87249e87c5693162a6e890875d828f93d6d)
2022-06-15 15:48:07 -04:00
hondacrx bbe99e3be8 Core/Transports: Path generation rewrite v2 (needs testing)
Port From (https://github.com/TrinityCore/TrinityCore/commit/a2c1b699e6e4d30c752b65241bc23191920a86fd)
2022-06-14 00:40:57 -04:00
hondacrx 9c015e71fa Core/Movement: Allow overwriting number of steps for spline length calculations
Port From (https://github.com/TrinityCore/TrinityCore/commit/b9353041a6cce58d972b63d5138517274a1bb6d6)
2022-06-12 00:37:30 -04:00
hondacrx 40444525b2 Core/GameObjects: Transport (type 11) improvements
Port From (https://github.com/TrinityCore/TrinityCore/commit/630b60eb0dcd3d9ce41582664ab822b049365431)
2022-06-03 16:20:41 -04:00
hondacrx da944ab528 Core/Scripts: Begin unifying triggering gameevents (not the game_event db stuff)
Port From (https://github.com/TrinityCore/TrinityCore/commit/41a04a0c496c8c0c521eeaa76e34fbeb531cc1d9)
2022-05-31 19:42:40 -04:00
hondacrx 442da7511f Core/Misc: Rename AddXXXFlag updatefield functions to SetXXXFlag
Port From (https://github.com/TrinityCore/TrinityCore/commit/b47185cabfbdeeaf492bf2303635db07ce703785)
2022-05-30 16:12:11 -04:00
hondacrx 965aeb7425 Updates some enums
Port From (https://github.com/TrinityCore/TrinityCore)
2022-05-29 22:53:33 -04:00