Francesco Borzì
02a05fbd4c
refactor(src/common): remove unused imports ( #19506 )
...
* refactor(src/common): remove unused imports
* fix: build
* chore: fix build
* chore: size_t -> std::size_t
* chore: fix fuckup from previous commit
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build with std::size_t
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
2024-07-30 20:06:46 -03:00
Francesco Borzì
54fadbda67
refactor(src/server/game/Entities): remove unused imports ( #19507 )
2024-07-28 16:39:39 -03:00
Kitzunu
3c50b1a135
fix(Core/Player): Vertical Message distance ( #19302 )
...
* cherry-pick commit (297541e9c9 )
* Get rid of unused param
* Merge SendMessageToSetInRange_OwnTeam into SendMessageToSetInRange
Co-authored-by: Badgersson <83663557+dekz120@users.noreply.github.com >
2024-07-06 10:05:34 -03:00
Anton Popovichenko
1f640c9872
feat(Core/Optimization): Optimize build of units update object by leveraging cache ( #18637 )
...
* feat(Core/Optimization): Optimize build of units update object by leveraging cache.
* Remove whitespaces.
* Add alternative hooks to handle transmog and other similar things.
* Fix build on some compilers.
* Fix codestyle
* Fix build again.
* Take into account updateType.
2024-04-05 08:03:11 +02:00
avarishd
06525cdc1e
feat(Core/Object): Play radius sound/music. ( #18011 )
2023-12-13 16:24:52 -03:00
Kitzunu
bbadc32bea
Revert Visibility Notifier changes ( #17682 )
...
* Revert "fix(Core/Grid): Implement missing GridUnload setting (#17569 )"
This reverts commit 79b39f9655 .
* Revert "fix(Core/Grid): Address bugs and performance issues introduced by visibility notifier implementation (#17480 )"
This reverts commit 60e27511c5 .
* Revert "fix(Core): GridCleanUpDelay Log (#17436 )"
This reverts commit 90b16ca065 .
* Revert "feat(Core/Grids): Implement visibility notifier (#15919 )"
This reverts commit 2779833768 .
2023-11-12 00:48:49 +01:00
AG
60e27511c5
fix(Core/Grid): Address bugs and performance issues introduced by visibility notifier implementation ( #17480 )
...
* Bug fixes
- Corrected std::chrono from seconds to milliseconds
- Got rid of leftover code that caused objects to not show up on time
* Removed logic to set gameobject as active
- More alignement with TC.
- Reduces CPU usage drastically
* Revert back to using time_t instead of std chrono
* Invoke SetNoCreate() method to reduce CPU usage drastically
* Remove setActive from static and motion transports
* Fix performance issues
* Added SetFarVisible to WG and some dungeon scripts
- Also removed setActive(true) from creatures in Wintergrasp. As for gameobjects they are set to active upon being damaged/destroyed and removed from active on rebuild (reset)
* Removed comments related to VISIBILITY_COMPENSATION
* Fix log
* Deleted unused files + corrected a check
* Added missing header
* Removed unused parameter
* Removed another unsued parameter
* Changed vector to set for i_visibleNow
- Changed vector to set for i_visibleNow in VisibleNotifer
- Adjusted HaveAtClient to accept Object*
- Adjusted SendUpdateToPlayer to send createobject packet only if not known to client
2023-10-23 05:37:11 -03:00
AG
2779833768
feat(Core/Grids): Implement visibility notifier ( #15919 )
...
* Cherry-picked from TrinityCore (unable to find author)
2023-09-28 22:28:28 +02:00
Skjalf
f5d0246292
feat(Core/Object): Add helper to allow removing allowed looters ( #16709 )
2023-07-08 21:45:06 -03:00
UltraNix
14f3b444ae
fix(Core/Creatures): Implemented `SUMMON_PROP_FLAG_ONLY_VISIBLE_TO_SU… ( #14054 )
...
* fix(Core/Creatures): Implemented `SUMMON_PROP_FLAG_ONLY_VISIBLE_TO_SUMMONER` summon flag.
Fixes #6674
* Update.
2023-01-06 00:52:05 +01:00
UltraNix
3603f44dad
fix(Core/Spells): FIxed calculating LoS for dynamic objects. ( #13795 )
...
Fixes #13777
2022-11-16 01:19:29 -03:00
Maelthyr
d0d1671745
feat(Core/Debug): GetDebugInfo implementation ( #12705 )
...
Cherry-pick: 9a924fb9d5
Co-authored-by: jackpoz <giacomopoz@gmail.com >
Co-authored-by: jackpoz <giacomopoz@gmail.com >
2022-08-15 09:43:41 -03:00
Maelthyr
2c7b274bc5
refactor(Core): Improve struct alignment and codestyle ( #12335 )
...
refactor(Core): improve struct alignment and codestyle
2022-07-10 14:19:11 -04:00
UltraNix
12a07ff91f
fix(Core/Spells): Fixed LoS problems with hunter traps. ( #12348 )
...
* fix(Core/Spells): Fixed LoS problems with hunter traps.
Fixes #12332
* missing
2022-07-10 14:18:36 -04:00
Kitzunu
969cb68c35
fix(Core/Auras): INVISIBILITY_UNK10 also applies the flag PLAYER_FIELD_BYTE… ( #11588 )
...
* ore/Auras: INVISIBILITY_UNK10 also applies the flag PLAYER_FIELD_BYTE2_INVISIBILITY_GLOW
* cherry-pick commit (230f40f359 )
Co-Authored-By: Meji <2695278+meji46@users.noreply.github.com >
* Update Object.h
* Update Object.h
Co-authored-by: Meji <2695278+meji46@users.noreply.github.com >
2022-05-08 23:10:10 +02:00
IntelligentQuantum
659775548f
feat(Core/SmartScripts): Add an action_param3 to "summon gob" to control when the object will despawn ( #10254 )
...
* cherry-pick commit (TrinityCore/TrinityCore@ca4f1e3 )
2022-04-17 03:48:22 +02:00
UltraNix
47790c9714
fix(Core/Vmaps): Stop M2s from occluding for spellcast LoS. Original autho… ( #11341 )
...
* Core/Vmaps: Stop M2s from occluding for spellcast LoS. Original authors: @Shauren & @HelloKitty
Fixes #11293
* buildfix.
Co-Authored-By: HelloKitty <5829095+HelloKitty@users.noreply.github.com >
2022-04-10 09:24:35 -03:00
Kitzunu
535c7451a2
feat(Core/Unit): New helpers for DynamicFlags ( #11230 )
...
* feat(Core/Unit): New helpers for DynamicFlags
* cherry-pick commit (d611925dc7 )
Co-Authored-By: Shauren <shauren.trinity@gmail.com >
* oopsie
Co-authored-by: Shauren <shauren.trinity@gmail.com >
2022-04-01 07:14:29 -03:00
Kitzunu
455899dc75
fix(Core/Misc): Change const to be after type name ( #10591 )
2022-02-14 16:05:45 -03:00
IntelligentQuantum
93520f6466
feat(Core/Position): own file ( #10505 )
2022-02-08 05:12:42 -03:00
Kitzunu
f4c6a4ce27
fix(Core/Misc): Remove c++ check for c++11 ( #10439 )
2022-02-04 19:00:33 +01:00
Kargatum
6d7f58e6ed
feat(Core/Common): delete old Tokenizer ( #10121 )
2022-01-21 14:59:05 +07:00
Francesco Borzì
9dc88def35
refactor(Core): apply clang-tidy modernize-* ( #9975 )
...
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com >
2022-01-17 14:35:07 +01:00
IntelligentQuantum
725b1266b4
refactor(Core/Packet): Chat ( #9509 )
...
* Chat
* .
* Update GameObject.cpp
* Update Object.cpp
* Update Player.cpp
2022-01-08 07:11:06 -03:00
Noxies
bbf08c1aaa
fix(Core/TemporarySummon): Implement TEMPSUMMON_TIMED_DESPAWN_OOC_ALIVE ( #9915 )
2021-12-30 08:05:46 -03:00
Kitzunu
7617ae4645
refactor(Core/Misc): fmod() to std::fmod() ( #9796 )
...
- prefer std functions over C functions
2021-12-21 01:16:59 -03:00
Kargatum
51adbffae4
feat(Core/Modules): add separated lib for modules ( #9281 )
2021-12-02 20:28:58 +07:00
Kargatum
f62664c987
refactor(Core/Misc): headers cleanup ( #9259 )
2021-11-22 17:24:39 +07:00
acidmanifesto
de6af87bd3
fix(Core/Objects): increase sight range of objects & correct general defau… ( #9180 )
2021-11-17 16:00:01 -03:00
UltraNix
7201d8840f
fix(Scripts/BlackrockSpire): Urok Doomhowl - improvements: ( #9067 )
...
The mobs should attack the pike if there is no players around
The boss should not despawning after summon
Urok's Tribute Pile with Pike and Head should disapear after Urok appear
Fixes #9023
2021-11-12 09:46:07 -03:00
sschepens
b7f8083915
feat(Core/Misc): change how Position struct is retrieved ( #9017 )
...
Update Position::GetPosition() and similar methods signatures to reflect 2a4c9bc changes by return a Position object instead of accepting a Position parameter by reference.
Cherry pick of 2585e799f9
2021-11-10 23:43:00 +01:00
sschepens
fb2a0a8336
refactor(Core): move complex functions from Object.h to Object.cpp ( #9016 )
...
Co-authored-by: QAston <qaston@gmail.com >
2021-11-09 20:32:44 +01:00
Skjalf
b2ce49135e
feat(Core/Scripting): implement OnlyOnceAreaTrigger & Zul'Gurub's in… ( #8850 )
...
Co-authored-by: Treeston <treeston.mmoc@gmail.com >
2021-11-03 23:43:03 +01:00
Kitzunu
bc82f36f1f
refactor(Core/Unit): clean MonsterText methods ( #6957 )
2021-10-15 10:25:29 +02:00
acidmanifesto
430157f71d
feat(Core): GetDeadCreatureListInGrid helper added, for aoe loot ( #8445 )
2021-10-13 11:32:01 -03:00
Kargatum
52aa0e9966
feat(License): add new headers information about license ( #7941 )
...
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com >
2021-09-30 13:40:52 +07:00
Kitzunu
2f449326e0
refactor(Core): Rename ...Manager to ...Mgr ( #6910 )
...
* Rename MapManager.h to MapMgr.h
* Rename BanManager.h to BanMgr.h
* Rename MapManager.cpp to MapMgr.cpp
* Rename BanManager.cpp to BanMgr.cpp
* Rename MapRefManager.h to MapRefMgr.h
* Rename ThreatManager.h to ThreatMgr.h
* Rename GridRefManager.h to GridRefMgr.h
* Rename ThreatManager.cpp to ThreatMgr.cpp
* Rename GroupRefManager.h to GroupRefMgr.h
* Rename HostileRefManager.h to HostileRefMgr.h
* Rename HostileRefManager.cpp to HostileRefMgr.cpp
* Rename MMapManager.h to MMapMgr.h
* Rename FollowerRefManager.h to FollowerRefMgr.h
* Rename VMapManager2.h to VMapMgr2.h
* Rename IVMapManager.h to IVMapMgr.h
* Rename MMapManager.cpp to MMapMgr.cpp
* Rename VMapManager2.cpp to VMapMgr2.cpp
* Rename RefManager.h to RefMgr.h
* Rename WaypointManager.h to WaypointMgr.h
* Rename WaypointManager.cpp to WaypointMgr.cpp
* Rename MPQManager.h to MPQMgr.h
* Rename MPQManager.cpp to MPQMgr.cpp
* Rename IMMAPManager.h to IMMAPMgr.h
* fix build
* Update Main.cpp
* chore(Core/Misc): Remove toxic language
* Revert "chore(Core/Misc): Remove toxic language"
* fix build
* build
2021-09-15 17:50:28 +02:00
Viste
a9796af174
fix(Core/Misc): bunch of crashfixes ( #7307 )
2021-09-14 14:38:56 +02:00
UltraNix
498faf380b
fix(Core/DungeonFinder): misc improvements ( #7488 )
...
- Players should be able to enter the same dungeon if just completed it
- Properly define if the proposal is new
- Set teleport point to the nearest graveyard if teleported to dungeon from other instance
- Display completed encounters when joining LFG in progress (excluding random)
- Closes #5914
- Closes #7388
2021-09-01 10:44:29 +02:00
UltraNix
a8c0a2cc89
fix(Core/Movement): ( #7008 )
...
- Get zone/area IDs from vmap data in the liquid update
- Add new method Map::getFullVMapDataForPosition to get area info and liquid info in a single vmap lookup
- Adjust GetZoneId/GetAreaId on WorldObject to always return these cached fields.
- Clean up liquid state handling on Unit and Player
- Implemented getting area id from gameobject spawns.
- Removed old core related to getting movement flags dependent on environment.
- Movement flags are now processed more precisely and dynamically.
Original source: TrinityCore.
- Closes #5086
- Updates #2208 .
2021-08-25 12:41:20 +02:00
UltraNix
1b7d3708a6
fix(Core/Loot): ( #7452 )
...
- Players that did not participate in killing dungeon boss are not eligible to get loot.
- Players that are too far away from the looted object are not eligible to get loot.
- Players that released spirit and were outside the dungeon when the loot has been released are eligible to get loot.
- Players that have pending bind are not eligible to get loot.
- Properly get loot recipient for some chests in dungeons.
- All above fixes should work in any loot mode (group loot, master loot, etc.)
- Closes #2104 .
2021-08-24 23:48:22 +02:00
UltraNix
1becd73f09
fix(Core/Movement): Rewritten follow movement generator for pets ( #7324 )
...
- Closes #7296
2021-08-24 11:08:50 +02:00
UltraNix
e37dba8df6
fix(Core/Spells): Far Sight auras are supposed to extend view distance and allows seeing objects from further distance ( #7068 )
...
- Closes #5793 .
2021-07-26 10:23:08 +02:00
Francesco Borzì
1c4523415a
fix(Core): -Wambiguous-reversed-operator warning ( #6864 )
2021-07-14 00:35:33 +02:00
Shiroe
f8c8e98a0a
feat(Core): port aggro distance from vMaNGOS ( #6214 )
...
Read detection_range values from creature_template
2021-07-08 18:01:27 +02:00
Francesco Borzì
466cdb68d6
refactor(Core): code cleanup (part 2) ( #6374 )
2021-06-16 20:40:42 +02:00
Kargatum
3f875674d5
chore(Core/MIsc): added few helpers for chat commands ( #6175 )
2021-06-04 00:17:18 +02:00
Kitzunu
7152ddc82c
refactor(Core/Grids): Ported cmangos/mangos-wotlk@ea99457 ( #6113 )
...
* refactor(Core/Grids): Ported cmangos/mangos-wotlk@ea99457
(cherry picked from commit d6201e5dbb )
Co-Authored-By: Shauren <shauren.trinity@gmail.com >
Co-Authored-By: SilverIce <slifeleaf@gmail.com >
* Update CellImpl.h
* w
* more more brackets
* ew
* fix build
2021-06-03 05:27:51 +02:00
Kitzunu
897a02bb75
refactor(Core/Misc): acore to Acore ( #6043 )
2021-05-31 14:21:54 +02:00
Kitzunu
f1b43a8976
fix(Core/Player): Weapon skill gain ( #5961 )
2021-05-28 00:49:24 +02:00