Commit Graph

187 Commits

Author SHA1 Message Date
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
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 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 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 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 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 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 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
hondacrx 558e976a5e Core/Movement: remove redundant method MovementGenerator::NotifyAIOnFinalize and use existing Finalize - MovementInform implementation
Port From (https://github.com/TrinityCore/TrinityCore/commit/0e0deaefd4e84c8069f6249778774f605fc5e628)
2022-05-26 20:08:35 -04:00
hondacrx a89977ad99 Core/Unit: Fix movement hiccups in water
Port From (https://github.com/TrinityCore/TrinityCore/commit/6b242eee130f1ac405187a03cefaf595d857ad99)
2022-05-24 18:20:46 -04:00
hondacrx 17feb111df Core/PathFinding: Fix GetPathPolyByPosition() using only 2D distance instead of 3D
Port From (https://github.com/TrinityCore/TrinityCore/commit/1a073e2df05c8ded3ce8afc89eaf29c7f5d506ce)
2022-05-24 10:02:04 -04:00
hondacrx 42046011e7 Core/Movement: Corrected Animation Tier handling
Port From (https://github.com/TrinityCore/TrinityCore/commit/ee620856ad2918ae7ce91a37a980d9f2129a074a)
2022-05-03 13:29:52 -04:00
hondacrx 7a7c3a3a1f Core/Scripts: Remove now-unused WaypointPathStarted hook. WaypointStarted does everything it used to do, anyway.
Port From (https://github.com/TrinityCore/TrinityCore/commit/fc094509e9df59e055840936ba3389504fba87df)
2022-04-28 10:37:51 -04:00
hondacrx 45a7c342c3 Core/Movement: Fix RandomMovementGenerator for swimming creatures
Port From (https://github.com/TrinityCore/TrinityCore/commit/1f34964df45520da16e5acc139a3ed179acd0569)
2022-03-11 09:49:10 -05:00
hondacrx 712dd7b9de Core/Common: Merge TimeTrackerSmall with TimeTracker
Port From (https://github.com/TrinityCore/TrinityCore/commit/8809d54ca2daa230b1439f012c8b10ee88d6beae)
2022-03-02 14:06:04 -05:00