* initial work
* fix query
* load
* clean up
* remove from startup
* ACE
* remove static
* Update MySQLThreading.cpp
* not used
* Update MySQLThreading.cpp
* unit testing
* Update WorldMock.h
* show Boost ver
* Update WorldMock.h
* include
* Now we have boost::filesystem woo
* fix build
* fix typo
* Add AsUnderlyingType function to cast enum value to its underlying type (avoids repeating std::underlying_type everywhere)
(cherry picked from commit fdd9227b23)
Co-Authored-By: Shauren <shauren.trinity@gmail.com>
Npc positioning
Implemented slope check to avoid unwanted climbing for some kind of movements (backwards, repositioning etc.)
Implemented backwards movement
Re-implemented circle repositioning algorithm (smartest than retail, but with the same feeling)
Fixed random position of summoned minions
Improved pet following movement. Also, they attack NPC from behind now. Thanks to @Footman
Swimming creatures
Fixed max_z coordinate for swimming creatures. Now only part of their body is allowed to be out of the water level
Fixed pathfinder for swimming creatures creating shortcuts for specific segments, now they swim underwater to reach the seashore instead of flying above the water level.
Creatures with water InhabitType but no swimming flag now, when not in combat, will walk on water depth instead of swimming. Thanks @jackpoz for the original code
UNIT_FLAG_SWIMMING in UpdateEnvironmentIfNeeded to show the swimming animation correctly when underwater
Implemented HasEnoughWater check to avoid swimming creatures to go where the water level is too low but also to properly enable swimming animation only when a creature has enough water to swim.
Walking creatures
Extended the DetourNavMeshQuery adding area cost based on walkability (slope angle + source height) to find better paths at runtime instead of completely remove them from mmaps
improve Z height in certain conditions (see #4205, #4203, #4247 )
Flying creatures
Rewriting of the hover system
Removed hacks and improved the UpdateEnvironmentIfNeeded. Now creatures can properly switch from flying to walk etc.
Spells
LOS on spell effect must be calculated on CollisionHeight and HitSpherePoint instead of position coords.
Improved position for object/creature spawned via spells
Improved checks for Fleeing movements (fear spells)
Other improvements
Implemented method to calculate the CollisionWidth from dbc (used by repositioning algorithm etc.)
Improved raycast and collision checks
Co-authored-by: Footman <p.alexej@freenet.de>
Co-authored-by: Helias <stefanoborzi32@gmail.com>
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
* Update AuctionHouseHandler.cpp
* feat(warden): block PQR
* wip
* Update Warden.cpp
* Core/Warden: minor preperation
* Core/Misc: implemented some needed container wrapper functions
* Core/Warden: more preperations
* Core/Warden: more rework
* LUA checks now are splitted to seperate config
* LUA checks are always in front of queue
* Fixed "Other" checks
* Fixed PQR detection
* Core/Warden: adjusted and optimized
* Core/Warden: optimization
* Core/Warden: more optimization
* Core/Warden: use warden comments in ban reason
* Core/Warden: more warden work
* Core/Warden: more optimizations
* Core/Warden: more refactors
* Core/Warden: some more refactors + use default SHA definitions
* Core/Warden: more refactoring
* Core/Warden: fixed PQR detection again
* Core/Warden: improved detection logging
* Core/Misc: removed SmartEnums - we do not need it here + maybe should go as seperate commit
* Core/Warden: fixed some warnings
* Core/Warden: codestyle
* Core/Warden: include warden check comment to console logs
* Core/Warden: minor adjustment for previous commit
* Core/Warden: fixed static analysis warning
* Core/Warden: compilers, you're drunk this time... function is not unused...
* Core/Warden: minor correction for logs
* Core/Warden: one more improvement for logs
* Core/Warden: added missing overrides
* Core/Warden: some codestyle
* Core/Misc: more codestyle
* Core/Misc: more codestyle!
* Core/Warden: restored default config options... (if you change it, change in core source too)
* Core/Warden: addition to previous commit
* DB/Warden: added EWT and WOWPlus checks (provided by lineagedr)
* DB/Warden: addition to previous commit
* fix: codestyle
* Core/Warden: fixed build when extra logs are enabled in cmake
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
+ tangent equation to find correct angle and distance when moving
+ implemented proper backward
* Improved performance + random angle margin
* chore: add tollerance calculation in instance
* improved LOS checks with movements
* implemented collisions using raycast (imported by TC)
+ improved collision detection for CanReachPositionAndGetCoords
+ improved collision check
+ set correct flags for the backward movement
+ first implementation of slope angle (to improve)
Co-authored-by: Yehonal <yehonal.azeroth@gmail.com>