Commit Graph

139 Commits

Author SHA1 Message Date
Kargatum
c053e111d3 fix(Scripts/Commands): correct reloading creature_template table (#5020) 2021-03-30 09:55:05 +07:00
Kargatum
c4c06a7734 feat(Core/SignalHandler): Replace ACE signal handling with std (#4877) 2021-03-24 15:50:56 +01:00
Francesco Borzì
ba9a09dd0c fix(Core/GUARD_RETURN): correct typo (#3743) 2021-03-23 09:30:25 -06:00
UltraNix
485f7e7639 feat(Core/DB/Authserver): remove sha_pass_hash (#4827) 2021-03-21 15:17:57 +01:00
Kitzunu
9f354db7be feat(Core/Creature): Implement c_t_r & c_t_s (#4359) 2021-03-21 15:15:59 +01:00
Kargatum
34a129e478 feat(Core/Utilities): Introduce a task scheduler which schedules task (#4932) 2021-03-21 14:04:56 +01:00
Hacki95
2031e55ec7 fix(DB/Core) Fix the CLS damage system and update creature_classlevelstats (#4749)
* Fix the CLS dmg system

Thanks to TC: ccfa82e7d5
2021-03-19 17:26:30 -06:00
Francesco Borzì
f6a17164be fix(Core/License): issue with old files license (#4762) 2021-03-17 09:46:01 -06:00
Kargatum
60d684282b fix(Core/Utilites): improve acore::String::Trim (#4704)
- Improve `acore::String::Trim`
- Delete `acore::String::Reduce`
- Skip line comment #4748
2021-03-09 21:02:45 +07:00
Kitzunu
28f1dc5c0c refactor(Core): replace NULL with nullptr (#4593) 2021-03-02 01:34:20 +01:00
Kargatum
dbefa17a53 feat(Core/Config): rework config and delete ACE inherited (#4608) 2021-02-28 14:37:03 +01:00
Kargatum
b9e132a941 chore(Misc): correct double includes (#4647) 2021-02-26 17:44:08 +07:00
Kitzunu
6e1fb0d525 feat(Core/Creature): implement c_t->spell_school_immune_mask (#4358)
* feat(Core/Creature): implement spell_school_immune_mask

* ae878e18ef

Co-Authored-By: Wyreth <32145860+Wyreth@users.noreply.github.com>

* Import from TC

* just capitalize sql keywords

* Update rev_1611769264588956600.sql

Co-authored-by: Wyreth <32145860+Wyreth@users.noreply.github.com>
2021-02-03 03:44:09 +01: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
Kitzunu
cf1eddf266 refactor(Core/LoginDatabase): LOGIN_DEL_ACCOUNT_MUTEDEL -> LOGIN_DEL_ACCOUNT_MUTED (#4281) 2021-01-30 13:37:41 +01:00
Francesco Borzì
cea31fd0d3 feat(Core/PvPstats): top players of the month (#4353) 2021-01-27 18:23:56 +01:00
Andrius Peleckas
2794842553 feat(Core/Warden): optimization + PQR detection (#3875)
* 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>
2021-01-17 18:36:35 +01:00
Stefano Borzì
df600f9946 fix(Core/CreatureAI): revert NPC repositioning and path system (temporarily) (#4274) 2021-01-14 19:17:34 +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
Stefano Borzì
b2761626fe feat(Core/CreatureAI): improve npc position during the combat (#3369)
+ 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>
2021-01-04 20:23:08 +01:00
Kitzunu
f16aad0ad4 chore(MySQL): Deprecate 5.6 (#4070) 2021-01-03 03:14:06 +01:00
Kitzunu
1ed80e9596 fix(Core/Guild): Implement gender in guild (#4017) 2020-12-24 21:38:56 +00:00
FALL1N1
1f5babf0a6 Core/Utils: Create std::optional helper class (#3994) 2020-12-22 02:13:18 -06:00
abebeos
d182482ad2 refactor(Core): removed unused ace includes (#3874) 2020-12-21 00:07:36 -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ì
1b156ef7eb chore(Core): forgot to add copyright in new files + small correction (#3861) 2020-12-07 21:05:13 -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ì
6558fca4a1 refactor(Core): apply clang-tidy modernize-use-noexcept (#3837) 2020-12-06 22:44:38 +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
Francesco Borzì
9facd81e54 refactor(Core/sLog): improve singleton management (#3801) 2020-12-06 15:59:08 +01:00
Francesco Borzì
5053cb4121 refactor(Core): remove ACE types (#3745) 2020-11-23 13:29:12 +01:00
Kargatum
37ba988409 feat(Core/Misc): remove ACE Auto_Ptr (#3454) 2020-11-23 02:10:33 +01:00
Kargatum
7f26c9ddad refactor(Core/Common): restyle tools with astyle (#3706) 2020-11-17 16:59:58 +07:00
Kargatum
543753b641 feat(Core/MapUpdate): switch from ACE_Method_Request to PCQ (#3459) 2020-11-14 03:56:26 +07:00
Kargatum
4734ae81dc feat(Core/Config): Improve config (#3453) 2020-11-11 14:18:35 -06:00
Kargatum
e27201cee2 chore(Deps/Acelite): Update to 6.5.10 (#3450) 2020-11-11 09:09:02 -06:00
Petric
d5bb6ba1c4 refactor(Core/Mail): avoid big mail loading/saving time, only load 50 mails at a time (#3420) 2020-10-21 15:20:32 +02: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
Andrius Peleckas
4e9e915a1d fix(Core/Misc): fixed NOPCH build (#3448) 2020-10-04 11:13:06 +02:00
Kargatum
3a0b0356ac refactor(Core/Common): restyle common lib with astyle (#3461) 2020-09-12 03:50:48 +07:00
Kargatum
e15a493927 feat(Core/Time): remove inherited ACE Time (#3455)
Co-authored-by: Viste <viste02@gmail.com>
2020-09-11 14:03:26 +02:00
Stefano Borzì
51330f54d8 refactor(Core/Misc): remove the ternary operator when used improperly (#3327) 2020-09-10 12:29:23 +02:00
Viste
4dd9b92759 refactor(Core/Tools): remove ACE from tools (#3351) 2020-09-07 14:01:28 +02:00