Commit Graph

93 Commits

Author SHA1 Message Date
Yehonal
c8f43d8584 feat(Core/Movement): Improved pathfinding, collisions and movements (#4220)
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>
2021-02-01 01:34:27 +01:00
Kitzunu
da4edd547d chore(core): remove malformed whitespaces (#4244)
* from https://www.codefactor.io/repository/github/azerothcore/azerothcore-wotlk/issues?category=Style&groupId=838&lang=5&page=75
2021-01-10 14:27:55 +01:00
Kargatum
ea93a5c1a1 feat(CI/Codestyle): added codestyle check (#3668) 2021-01-09 11:59:50 +01:00
Hacaw
086ad6c9c2 fix(DB/Quest): Text for quest "When the Cows Come Home" (#3840) 2020-12-13 13:35:18 -06:00
Francesco Borzì
d4a58700d4 refactor(Core): apply clang-tidy modernize-use-override (#3817) 2020-12-06 18:04:55 +01:00
Andrius Peleckas
ab5933effa fix(Core/Util): EventMap::RepeatEvent when eventId is retrieved by ExecuteEvent() call (#3426) 2020-10-17 14:59:22 +02:00
Kargatum
5e20b46812 refactor(Core/Scripts): restyle scripts lib with astyle (#3467) 2020-10-11 10:35:34 +02:00
Francesco Borzì
b61ae8abcd fix(Core/Misc): all GCC warnings (#3457) 2020-09-14 17:31:12 +02:00
Kitzunu
1f89282b22 refactor(Core): NULL -> nullptr (#3275)
* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
2020-08-31 11:55:09 +02:00
Stefano Borzì
78a02c8fd1 fix(quest): improve quest force of neltharaku (#3203)
* Update AuctionHouseHandler.cpp

* chore(quest): improve quest force of neltharaku

Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
2020-08-23 15:49:18 +02:00
Ercules76
3f8abc6bc2 refactor(CORE/Instance): Move Pandemonius script from SAI to Core script (#3165) 2020-08-19 16:15:43 +02:00
Ercules76
106f6f94a7 fix(Scripts/DB): Add Prison to spawn Yor, move Yor AI from SAI (#3163) 2020-08-19 11:10:41 +02:00
Francesco Borzì
d2cc3fcbc2 feat(Docker): update to Ubuntu 20.04 + more improvements (#3277) 2020-08-13 00:25:20 +02:00
Kaev
999d588c37 fix(Core): Fixed a few crashes/bugs that were found via static code analysis (#2617) 2020-01-25 14:26:38 +01:00
Stoabrogga
03c791e127 fix(Core/CreatureScript): Grand Warlock Nethekurse (#2507) 2019-12-25 09:33:44 +01:00
Viste
e22d78ecd6 refactor(Core): rename namespaces and macros to acore (#2454) 2019-12-01 13:13:31 +01:00
Shard
97c55c6152 fix(Core/Item): Random item properties generation (#2331) 2019-10-28 08:08:37 +01:00
Stoabrogga
bd4f8b5b14 fix(Core/CreatureScript): Quest "Kindness" (#2272) 2019-09-21 12:51:30 +02:00
Francesco Borzì
3a43e8c415 feat(Core): enable C++17 (#2234)
Co-authored-by: Winfidonarleyan <dowlandtop@yandex.com>
2019-09-02 13:54:10 +07:00
Poszer
178315f8e2 fix(Core/Quest): Scratches (#2090)
- Correctly despawn NPC Kaliri totem when the quest is completed.
2019-07-27 01:49:37 +02:00
Stoabrogga
b880f007a7 fix(DB/CreatureScript): The Lurker Below (#2083)
- Fix "The Lurker Below" not spawning.
2019-07-24 11:26:37 +02:00
Stoabrogga
d025a90a69 fix(DB/CreatureScript): Deathblow to the Legion (#2080)
* fix(DB/CreatureScript): Deathblow to the Legion

* Implement the event which takes place during the "Deathblow to the Legion" quest. This is based on PR #1834 but had to be heavily modified as the original scripts contained many bugs and inconsistencies.
2019-07-23 00:21:24 +02:00
Alan
5021f2e861 fix(DB/Quest): Fix Fire At Will! (#1699) 2019-07-05 23:10:15 +02:00
Poszer
eae2214d7c fix(Core/Creature): Mature Netherwing Drake (#1987)
* fix(Core/Creature): Mature Netherwing Drake

- After eating, Mature Netherwing Drake will fly back into the air.
2019-06-26 09:58:25 +02:00
Stoabrogga
a89f2f1626 Fix(DB/Core): Dragonmaw Peon AI (#1722) 2019-04-17 21:49:15 -03:00
Kargatum
b6cb9247ba Refactor(Core/Gossip): Replacing old macros with new (#1338)
* Correct support new macro
2019-03-25 21:10:57 +07:00
Nefertumm
c15206fc15 Revert "feat(core): Ensure that all actions are compared to fixed point in time (#1236) (#1458)" (#1471)
This reverts commit 51b8773528.
2019-02-15 15:14:49 -03:00
Viste(Кирилл)
51b8773528 feat(core): Ensure that all actions are compared to fixed point in time (#1236) (#1458)
i.e. world update start
2019-02-14 19:22:17 +01:00
Stoabrogga
7a9f09341f chore(PCH): remove "ScriptPCH.h" from cpp scripts (#1423)
remove "ScriptPCH.h" from cpp scripts as it is intended to be used as precompiled header for the build process only
2019-02-10 14:50:44 +01:00
Trystanosaurus
74e8e79e54 Gruul: Add a minimum cooldown for Cave In (#893) 2018-12-17 16:46:34 -03:00
Yehonal
d17e1da32a Missing override keyword 2018-04-09 07:11:44 +00:00
Yehonal
f5fcc12fda Missing scripts for instances 2018-04-09 07:09:57 +00:00
Nefertumm
dd300003e2 Update license links (#783) 2018-03-12 10:54:57 +01:00
Kaev
05cd8c8c61 Move area trigger storage from DBC to database (#742)
Renamed AreaTrigger + related stuff to AreaTriggerTeleport
2018-01-02 22:08:08 +01:00
Yehonal
ce412ec7dc Fixed warning 2017-12-21 15:23:25 +01:00
Yehonal
403ed2600f Merge branch 'master' of https://github.com/azerothcore/azerothcore-wotlk into dir-restructure 2017-12-21 11:26:43 +01:00
Yehonal
17332304fd Using TC structure allowing easier patches importing 2017-12-21 00:20:29 +01:00
Yehonal
0f85ce1c54 Big re-organization of repository [W.I.P] 2016-08-11 20:25:27 +02:00
Yehonal
991eed3b5a Using more appropriate NS prefixes for our macro and cmake vars 2016-08-11 20:10:08 +02:00
Yehonal
34d4accb5b [CMake] impl. ADD_SCRIPTS macro for modules
and renamed old to ADD_SCRIPT_LOADER
2016-08-11 14:57:25 +02:00
Yehonal
1aef789c85 [Core/Cmake] Scripts are now added dynamically
You can now add your scripts using cmake inside your module
instead patch core cpp files
2016-08-07 12:21:52 +02:00
Yehonal
f6eefedcd5 converted all tabs to 4 spaces 2016-06-26 19:23:57 +02:00
Yehonal
e8e94a0a66 First Commit
For Azeroth!
2016-06-26 10:39:44 +02:00