Commit Graph

52 Commits

Author SHA1 Message Date
Kargatum
a278fd7340 feat(Cmake/Database): separate database lib from common (#5334)
* feat(Core/Database): separate databse lib from common

* 1
2021-04-20 12:08:23 +02:00
T1ti
d044883513 fix(Core/Tools): extracting custom maps (#5138) 2021-04-19 15:18:17 +02:00
Kargatum
4af4cbd3d9 feat(Core/Logging): rework logging (#4692)
* feat(Core/Logging): rework logging

* correct level for sql.sql

* del unused config options

* Correct build

* correct after merge

* whitespace

20:29:37 1. 'Player.cpp'. Replace (1)
20:29:37 2. 'ObjectMgr.cpp'. Replace (3)

* 1

* correct logging

* correct affter merge

* 1

* 2

* LOG_LEVEL_WARN

* #include "AppenderDB.h"

* 3

* 4

* 5

* 1. 'WorldSocket.cpp'. Replace (1)

* 6

* 1
2021-04-17 11:20:07 +02:00
Kargatum
53ce87d0f7 feat(Core/Database): implement db loader (#4431) 2021-04-12 10:09:13 +02:00
UltraNix
0528e0b485 feat(Tools/Vmapextractor): Improved vmap detail level by extracting w… (#4922) 2021-04-05 11:51:51 +02:00
Francesco Borzì
ba9a09dd0c fix(Core/GUARD_RETURN): correct typo (#3743) 2021-03-23 09:30:25 -06:00
Kargatum
b9e132a941 chore(Misc): correct double includes (#4647) 2021-02-26 17:44:08 +07:00
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
Silker
0a8a7ef149 fix(Core): Activate creatures and objects during opening cinematics (#4045)
Co-authored-by: Si1ker <55638679+Sombranator@users.noreply.github.com>
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
2021-01-22 01:03:30 +01:00
Kitzunu
b0aff365a9 chore(core): Remove malformed whitespace (#4248) 2021-01-10 18:20:45 +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
Francesco Borzì
16c25c2fa8 refactor(Core): apply clang-tidy modernize-raw-string-literal (#3824) 2020-12-17 20:50:02 -06:00
Francesco Borzì
adf436c937 refactor(Core): apply clang-tidy modernize-pass-by-value (#3823) 2020-12-12 18:11:15 -06:00
Francesco Borzì
7bb42c1d56 refactor(Core): apply clang-tidy modernize-deprecated-headers (#3821) 2020-12-12 10:33:07 -06:00
Francesco Borzì
9266ac6bf5 refactor(Core): apply clang-tidy modernize-use-bool-literals (#3826) 2020-12-07 18:37:41 -06:00
Francesco Borzì
c5a35efd7b refactor(Core): apply clang-tidy modernize-use-default-member-init (#3827) 2020-12-07 13:34:06 -06:00
Francesco Borzì
1cf39b3d22 refactor(Core): apply clang-tidy modernize-use-equals-default (#3834) 2020-12-07 19:21:55 +01:00
Francesco Borzì
0b8ec1f6ee refactor(Core): apply clang-tidy modernize-loop-convert (#3822) 2020-12-07 19:04:19 +01:00
Francesco Borzì
0b7b36f20c refactor(Core): apply clang-tidy modernize-use-emplace (#3828) 2020-12-07 18:25:55 +01:00
Francesco Borzì
a7faf4a16f refactor(Core): apply clang-tidy modernize-redundant-void-arg (#3825) 2020-12-06 21:38:52 +01:00
Francesco Borzì
cba126fa84 refactor(Core): apply clang-tidy modernize-use-nullptr (#3819) 2020-12-06 20:55:11 +01:00
Francesco Borzì
161302252e refactor(Core): apply clang-tidy modernize-use-nodiscard (#3835) 2020-12-06 19:39:48 +01:00
Francesco Borzì
d4a58700d4 refactor(Core): apply clang-tidy modernize-use-override (#3817) 2020-12-06 18:04:55 +01:00
FALL1N1
0baecd3e8f fix(Core/Pathfinding): Improve - Point movement (#3658) 2020-12-01 10:58:00 -06:00
Kargatum
85927685f2 refactor(Tools): restyle tools with astyle (#3705) 2020-11-18 09:49:56 +07:00
Shard
2c20a86929 feat(MMAPS/mapbuilder): restore ability to work with custom MapIDs >= 1000 (#3671) 2020-11-10 13:06:26 +01:00
Kargatum
b00a86f6ab refactor(Tools): restyle tools with astyle (#3465) 2020-10-06 11:31:28 +02:00
Viste
4dd9b92759 refactor(Core/Tools): remove ACE from tools (#3351) 2020-09-07 14:01:28 +02:00
Francesco Borzì
9d381fa0f1 fix(Core/Tools): fix GCC warnings in extractors (#3430) 2020-09-05 00:30:13 +02:00
Francesco Borzì
2bc832efe3 fix(CI/Core/ArenaSpectator): clang warnings + prevent new warnings (#3317)
Co-authored by @meerd
2020-08-19 19:44:07 +02:00
Viste
a7970b711a Core/Misc: Remove redundant null pointer checks before delete (#2679)
Co-authored-by: Ujp8LfXBJ6wCPR <github@lillecarl.com>

Co-authored-by: Ujp8LfXBJ6wCPR <github@lillecarl.com>
2020-02-20 18:33:28 +01:00
Viste
e22d78ecd6 refactor(Core): rename namespaces and macros to acore (#2454) 2019-12-01 13:13:31 +01:00
Shard
aa07ebf3d2 feat(Core/Tools): mmaps working with mapID >= 1000 (#2321) 2019-10-17 08:01:18 +02:00
Viste
854b426978 feat(Core): Added ABORT() macro to prevent the usage of ASSERT(false) as a quick hack to crash the core misusing assert (#2273) 2019-09-26 09:51:33 +02:00
Francesco Borzì
10105cab01 fix(Core/Deps): Update recastnavigation to last version (#2189)
Note: you need to re-extract the client data files, or download them from: https://github.com/wowgaming/client-data/releases/tag/v7
2019-08-13 19:08:35 +02:00
Kargatum
859eaed800 feat(Core/Deps): Added fmt lib (#2190)
* About library (https://github.com/fmtlib/fmt)
2019-08-13 15:52:03 +07:00
Kargatum
5105333968 feat(Core/Library): Rename shared library to common (#1675) 2019-04-04 16:47:17 +07:00
Kargatum
eae9affec9 feat(Cmake): Rewrite build and use inherited dependencies (#1652) 2019-04-01 22:41:08 +02:00
Francesco Borzì
b9d14372fd chore: Update copyright note (#1292) 2019-01-16 15:59:02 +01:00
Nefertumm
59d4e1d3a8 Core: Vmaps update 4.3 (#1021)
Vmaps update from 4.2 to 4.3
2019-01-03 18:27:11 +01:00
Stoabrogga
8e9faf8488 Revert WMO changes (#976) 2018-07-17 14:27:42 +01:00
Stoabrogga
a18d1474a3 tools improvement (#926)
* tools improvement

* added "Source/DetourAssert.cpp" to recastnavigation/Detour/CMakeLists.txt

* increased MMAP and VMAP version numbers

* Will need to re extract MMAPS and VMAPS
2018-07-13 12:46:04 +01:00
Yehonal
e51b48ef6c Fixed map_extractor cmake 2017-12-21 11:45:19 +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
685a89e03f fixed cmake 2017-12-21 00:48:33 +01:00
Yehonal
c64f8d8e82 Fixed compilation after dir rework 2017-10-13 19:22:53 +02:00
Yehonal
f06f32849f Directory Structure [step 1]: moving files
working on #672

NOTE: This commit can't be compiled!!
2017-10-12 20:00:52 +02:00
Yehonal
0f85ce1c54 Big re-organization of repository [W.I.P] 2016-08-11 20:25:27 +02:00
Yehonal
3c517a2b0e compilation fixed 2016-07-10 17:14:06 +02:00