Commit Graph

122 Commits

Author SHA1 Message Date
Kargatum
b2861be1cd feat(Core/Threading): replace ace threading (#4821) 2021-04-16 19:45:29 +02:00
Kitzunu
33aeadf8b6 refactor(Core/Misc): Define & Rename Attributes and flags (#5193) 2021-04-15 14:16:39 +02:00
Kargatum
2b3d46bd4f feat(Core/Hooks): added collection of hooks to extends AC (#3047)
This collection of hooks comes from the Maelstrom project. It allows to release modules such as :
- 3v3-soloqueue
- 1v1 arena
- pvestats

and many others
2021-04-13 13:26:39 +02:00
Kargatum
c053e111d3 fix(Scripts/Commands): correct reloading creature_template table (#5020) 2021-03-30 09:55:05 +07:00
Petric
f11d3a5402 feat(CORE/Instance): access_requirement db refactor and improved output (#3696) 2021-03-29 10:24:52 -06:00
r0m1ntik
edd6d65fb2 fix(Core/Command): crash on set model to npc if not valid (#4874) 2021-03-21 15:19:18 +01: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
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
Kitzunu
28f1dc5c0c refactor(Core): replace NULL with nullptr (#4593) 2021-03-02 01:34:20 +01:00
Kitzunu
dbc0ff6554 refactor(Core): sort #includes alphabetically (#4579) 2021-02-24 22:34:42 +01:00
Francesco Borzì
3c670cb5a0 fix(DB/Commands): align core and DB (#4479) 2021-02-08 23:45:00 +01:00
Kitzunu
05a8217270 refactor(Core/Player): add helper method for PLAYER_FLAGS_DEVELOPER (#4395)
Co-Authored-By: ForesterDev <11771800+ForesterDev@users.noreply.github.com>
2021-02-08 16:55:04 -05:00
55Honey
47160f3c36 fix(Core/Commands): remove character creation flag from .save command 2021-02-05 19:12:53 +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
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
Francesco Borzì
8d5347b9ab fix(Core/QuestTracker): do not store quest if quest_id is null (#4027) 2021-01-20 01:14:04 +01:00
Kitzunu
8ddd904324 refactor(Core/cs_reload): Improve page_text(_locale) output (#3115) 2021-01-19 00:52:32 +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
Silker
931609d2c2 fix(scripts/Commands): Avoid get gm phase when summoning (#3764)
This change avoids to set the same phase as the one the GM has to a player when this is summoned by command

Co-authored-by: Si1ker <55638679+Sombranator@users.noreply.github.com>
2020-11-26 06:12:22 -06:00
placemolle
d21b2eebe7 fix(Core/Command): additem - doesn't work when name contains apostrophe (#3647) 2020-11-14 10:52:23 -06:00
Petric
95ee873e8f fix(Core/CS): Fixed learn command using null session when send over SOAP (#3595) 2020-11-05 10:44:56 -06: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
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
Petric
321cf0d2b3 fix(CORE/Commands): Renamed .character deleted old to .character deleted purge (#3300)
* fix(CORE/Commands): Renamed .character deleted old to .character deleted purge
Closes https://github.com/azerothcore/azerothcore-wotlk/issues/2925

* Fixed indentation

* Renamed handler function

* Spacing

* Update data/sql/updates/pending_db_world/rev_1597499028423474100.sql

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
2020-09-01 12:37:30 +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
r0m1ntik
971d55d463 fix (Core/Quest) Correct link quest and fix command lookup quest for multilanguage dbc (#3271)
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
2020-08-30 19:42:36 +02:00
Barbz
ed8ed175b7 fix(Core/Command): Can comment closed tickets (#3176) 2020-08-21 10:52:52 +02:00
Barbz
70bdba8309 feat(Core/Command): Reenable .teleport name on offline player (#3175)
- Reenable the possibility to .teleport name xxx $home even if the character is offline.
2020-08-20 23:26:17 +02:00
Kitzunu
73d725312d feat(Core/Config): CONFIG_INTERVAL_SAVE (#3171) 2020-08-20 15:50:32 +02:00
IntelligentQuantum
5d284f02a7 feat(Core/SendListInventory): Add multivendor function (#3172) 2020-08-20 11:00:11 +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
IntelligentQuantum
fae5753f81 feat(Core/Commands): Character check bag && work (#3164) 2020-08-19 13:47:48 +02:00
Francesco Borzì
d2cc3fcbc2 feat(Docker): update to Ubuntu 20.04 + more improvements (#3277) 2020-08-13 00:25:20 +02:00
Kargatum
94e6ef17a2 feat(Core/Config): rework configs load system (#2566) 2020-07-12 17:47:12 +02:00
Kitzunu
5a0a12c6b0 fix(Core/Spell): Allow to cast and aura all spells (#3089) 2020-06-02 15:40:21 -03:00
Kitzunu
027c42fdec refactor(Core/Command): tele to teleport (#2956) 2020-05-28 13:24:36 +02:00
Kitzunu
7f3945e13e fix(Core/Command): additem checks (#2898)
* Add check if the player has 0 items to be destroyed

* Add check if the player has less than items trying to be destroyed
2020-05-18 21:13:29 +02:00
Kitzunu
807005ae25 fix(Core/Command): cheat explore (#2862)
Co-authored-by: P-Kito <p-kito@users.noreply.github.com>
2020-05-15 01:03:27 +02:00
IntelligentQuantum
fd4b35be8c feat(Core/commands): Display reason for muting player (#2780) 2020-05-02 00:00:02 +02:00
IntelligentQuantum
30dceb3fa6 feat(CORE/command): .kick will now display the kick reason (#2779)
- If ShowKickInWorld is enabled, kick will now display the kick reason to all the players
2020-04-22 00:26:47 +02:00
Kitzunu
8a1eab2c23 fix(Core/Creature): Use proper name for wander distance (#2858)
* Change from spawndist to wander_distance

Co-Authored-By: ratkosrb <ratkosrb@users.noreply.github.com>

* fix sql error

Co-Authored-By: ratkosrb <ratkosrb@users.noreply.github.com>

* Let's see if this fixes eluna :)

* Revert "Let's see if this fixes eluna :)"

This reverts commit be675bf83fc6a02f3347ea76408152d623d374bf.

* fix indent

* Revert "fix indent"

This reverts commit f4cb3d2d9fa908445d342b6f2e6dda9d52fd4665.

* Revert "Revert "fix indent""

This reverts commit 48527cfd2f9031f95bdf6e0d7b90111a3c0dc0f2.

Co-authored-by: ratkosrb <ratkosrb@users.noreply.github.com>
2020-04-11 11:20:02 +02:00
gengarshadowball
857e799298 Morph command update (#2641)
* changed morph command

removed demorph and adapted morph to include a reset option

* command info updated

* Update data/sql/updates/pending_db_world/rev_1580747652284896800.sql

Co-Authored-By: Barbz <BarbzYHOOL@users.noreply.github.com>

* Added subcommand system for Morph

- Subcommands
- Descriptions on database

* travis

* two single quotes query

* Update data/sql/updates/pending_db_world/rev_1580747652284896800.sql

Co-Authored-By: Barbz <BarbzYHOOL@users.noreply.github.com>

* Update data/sql/updates/pending_db_world/rev_1580747652284896800.sql

Co-Authored-By: Barbz <BarbzYHOOL@users.noreply.github.com>

* Update data/sql/updates/pending_db_world/rev_1580747652284896800.sql

Co-Authored-By: Barbz <BarbzYHOOL@users.noreply.github.com>

Co-authored-by: Barbz <BarbzYHOOL@users.noreply.github.com>
2020-03-01 10:34:56 +01:00
Viste
38e8503d21 fix(Core/Misc): fix some exploits (#2630) 2020-02-18 08:26:12 +01:00
Kaev
2fa9f5c249 fix(Core): potential crashes/bugs reported by static analysis #2 (#2622) 2020-02-03 07:52:27 +01:00