Commit Graph

138 Commits

Author SHA1 Message Date
ratkosrb 70c906c4ff Small optimizations to some packet handlers. 2023-03-24 17:47:15 +02:00
ratkosrb 56a7e74dbe Fix attacking mind controlled player in cross faction group. 2023-02-16 20:26:03 +02:00
ratkosrb 9d522e29d5 Refactor distance checking functions. 2022-11-03 20:40:23 +02:00
namreeb dfb90c5880 Logging rewrite (#1519) 2022-10-06 16:34:56 +03:00
ratkosrb 0347766a19 Reimplement item template loading.
Now bots will not equip items that come from quests which are too high level for them.
2022-09-23 21:57:08 +03:00
NickTyrer e0f2351520 Add Deathknight Darkreaver Boss Event.
Closes https://github.com/vmangos/core/pull/1509
2022-08-27 01:04:53 +03:00
ratkosrb 5745b7a696 Fix instant casting buffs not being truly instant. 2022-08-16 14:22:49 +03:00
ratkosrb 19bc922ec4 New script for Avatar of Hakkar. 2022-07-27 06:16:49 +03:00
ratkosrb f3b8ccb656 Fix WSG flag dropping into tunnel below ground. 2022-05-16 20:07:50 +03:00
ratkosrb ef6ebef005 Fix Lady Blaumeux's texts not showing up in chat. 2022-01-16 19:33:25 +02:00
ratkosrb 797d40498a Define all faction flags and rework call for help checks. 2021-12-20 15:22:32 +02:00
ratkosrb 2c83139467 Refactor creature proximity aggro related code.
- Units immune to NPCs can no longer attack NPCs.

- Units immune to PCs can no longer attack PCs.

- Civilians can call guards when attacked by creatures too.

- If you go near a creature your party members are attacking, you will enter combat too.
2021-12-11 00:54:18 +02:00
ratkosrb 3f3459e054 Fix not being able to interact with quest objects. 2021-11-22 19:50:45 +02:00
ratkosrb d09c36134d Send values update instead of create in UpdateForQuestWorldObjects. 2021-09-27 23:19:03 +03:00
ratkosrb 1743a8c314 Fix quest The Battle of Darrowshire before patch 1.4. 2021-08-20 10:31:34 +03:00
ratkosrb 9e2da1bd72 Add packet logging option to movement anticheat.
You can parse the logs with https://github.com/ratkosrb/wowpacketparser/tree/classic
2021-08-05 08:55:17 +03:00
ratkosrb 7b83d9952f Don't remove Mind Vision when target enters stealth. 2021-08-01 18:52:48 +03:00
ratkosrb 800368121e Movement: Rename velocity to zspeed to better reflect its purpose. 2021-07-19 13:34:56 +03:00
ratkosrb 067669e2df Refactor pet cast handler.
Closes https://github.com/vmangos/core/issues/1277
2021-07-14 16:12:14 +03:00
ratkosrb e776319fc4 Send all elevator transports to player upon add to map. 2021-07-03 11:18:44 +03:00
ratkosrb 7aaa9c34d6 Refactor BuildMovementUpdate and fix elevators in pre 1.9 clients. 2021-06-22 20:51:08 +03:00
ratkosrb 0bada1e297 Add random gameobject target type. 2021-06-20 13:06:02 +03:00
ratkosrb 6bf7401bd4 More refactoring to transports code. (#1227)
* Bring transport code closer to cmangos.

* Add missing declaration and check for unloading grid.

* Override departure time with db period.

* Move pet boarding to movement generator.

* Send path progress for elevators too.

* Allow boarding mind controlled creatures to transport.

* Check target's transport.

* Fix Eye of Kilrog.

* Remove some not needed changes and fix pet facing.

* Remove guid from transport table.

* Remove debug printf.
2021-06-18 14:36:59 +03:00
ratkosrb cae13812cc Fix build for old versions and add chinese 1.6 versions. 2021-06-06 10:36:08 +03:00
ratkosrb 39afde5307 Implement pathing on elevators and improve extractors. (#1206)
* Implement GAMEOBJECT_TYPE_TRANSPORT serverside position simulation

https://github.com/cmangos/mangos-classic/commit/a0a9ebfb641146d347c10d2bd6348c560914d2ed

* Implement Boarding and Unboarding for GO type 11 TRANSPORT

https://github.com/cmangos/mangos-classic/commit/3b3ff84751f264a06b1ed92c5d439c756404e8af

* Fix issues with boats.

* Rename DARK_WATER to DEEP_WATER.

Cherry picked from https://github.com/cmangos/mangos-classic/commit/bf00a047bed5fdf736f3308a1d8b2947ac11a3c3

* Mmap generation improvements

https://github.com/cmangos/mangos-classic/commit/ee121a78542f28acfe152a89c8f4e9e8cb28ef50

* Replace use of 'new' with CreateGameObject.

* Implement Gameobject model mmap extraction and loading

https://github.com/cmangos/mangos-classic/commit/91291db3928feff80fa9066f65dea08ec551169a

* MMAP: Add mmap extractor option to only extract GO models

https://github.com/cmangos/mangos-classic/commit/add3e1f6e5b9cfa67454eaf1367c65f6ae032917

* Rename a few local variables in buildGameObject to match cmangos.

https://github.com/cmangos/mangos-classic/commit/ac98ef2cc9ee52ba425af35fe15c20f46686dd5c

* Implement support for transport pathfinding and teleporting onto transport

https://github.com/cmangos/mangos-classic/commit/d6bb14ce3dd394ee0b6d5c08e034c35775e8e63e

* MMap: Adjust default parameters in favor of proper extraction of gameobjects

https://github.com/cmangos/mangos-classic/commit/15ba386aac01ccac95c40d5a196ecd1e5b595ac8

* MMap: Add building of all transports

https://github.com/cmangos/mangos-classic/commit/99fcbe1a58ee61ac3a1904cd1cb015a7c0e86ab4

* Transport: Make movementInfo pos and tpos reference

https://github.com/cmangos/mangos-classic/commit/ff0df5e811f7f1ad5753778b94d5b6b0ca6d047d

* Transport: Add readout to HandleGPSCommand for transport pos

https://github.com/cmangos/mangos-classic/commit/c2cb0050f412b174cf2d359c47b086b1f6c7bf6d

* Transport/Object: Minor refactor of position fetching for UPDATEFLAG_HAS_POSITION

https://github.com/cmangos/mangos-classic/commit/f758a22f39bbf46af8b4a2d2514fa99c09e37b75

* Transport/MMAP: Add help output for new --onlyGO switch

https://github.com/cmangos/mangos-classic/commit/0f8a8d1bd8ad03ba9285499118c77b2589d5b85b

* Increase visibility range of transports.

* Do not use UPDATEFLAG_TRANSPORT for corpses

https://github.com/cmangos/mangos-classic/commit/018bccf6ca43338d098ae8b996c26bc867c784ec

* Transport: Fix order and sign of transport type 11 coordinates

https://github.com/cmangos/mangos-classic/commit/f8002fe061811805fc3f6f27087481be9e834759

* Transports: Remove redundant if (GetGoState() == GO_STATE_READY) block in TBC

https://github.com/cmangos/mangos-classic/commit/36c8c2dfd380b331667cee463e04d8f7747f7266

* Transports: Fix orientation of GO type 11 in vanilla and tbc using proper quat computation

https://github.com/cmangos/mangos-classic/commit/08004564acaeee6e20e76180a1073c4eb1f17c20

* Vmap: Search upward for finding height if below is nothing

https://github.com/cmangos/mangos-classic/commit/c124b3eb8579ae2dcbf1d8ab30ee5249701fad9e

* MapExtraction: Fix water height redundancy algorithm ignoring no water

https://github.com/cmangos/mangos-classic/commit/9b39a41774b145bcb1e5a49038a030f6739d91a9

* VMAP: Replace string* with vector of strings

https://github.com/cmangos/mangos-classic/commit/884452ef54cc265d326dc56e6cef3994794c3db

* Vmap: Port MOPY flag usage from TC and introduce back mogpflag usage for lighting groups

https://github.com/cmangos/mangos-classic/commit/0666136d0d6cc6843fad1eb4286aee83df1dea01

* Vmap: Introduce skipping of antiportals

https://github.com/cmangos/mangos-classic/commit/2cee1027baeebef3646b2645ec95d8d079e6da89

* Transports: Also print orientation in gps command

https://github.com/cmangos/mangos-classic/commit/6effe3f0786bf1d67a722f7379cc533083247475

* Mmap: Do not register and extract GO displayid 462 and 562

https://github.com/cmangos/mangos-classic/commit/328ef02c05a36867772c08f3cb3d8de116719619

* Increase map version.

* Fix version check.

Co-authored-by: Killerwife <killerwife@gmail.com>
Co-authored-by: Laizerox <dpetmanson@gmail.com>
2021-06-01 19:18:40 +03:00
ratkosrb d50741fb9a Implement update field hiding based on flags. 2021-05-13 15:33:49 +03:00
ratkosrb b2c5ba5789 Add intermediary SpellCaster class to hold common parts of Unit and GameObject. 2021-04-24 04:42:03 +03:00
ratkosrb c04288b2c5 Move definition of object conversion helper methods. 2021-04-24 02:03:11 +03:00
ratkosrb d54dbd66c2 Cleanup header dependencies. 2021-04-12 14:34:00 +03:00
ratkosrb b58259721c Don't calculate level penalty again if bonus coefficient is set in db. 2021-04-06 05:08:18 +03:00
ratkosrb 9ebe5018ce Don't cut off floating point part when calculting points per level. 2021-04-06 03:16:03 +03:00
WobLight 990297a252 Implement dithering of fractional values (#1100) 2021-04-04 00:09:22 +03:00
ratkosrb f7cda6eef4 Add update fields for all versions. 2021-04-02 06:28:35 +03:00
ratkosrb af745365e9 Don't use bounding radius for aggro distance checks. 2021-04-01 23:44:56 +03:00
ratkosrb 5d7a7a0799 Add batching for procs and delay most spell effects. (#1090) 2021-03-31 19:49:06 +03:00
ratkosrb 2d1f7d20d4 Refactor GetNearPoint to allow using specified position. 2021-03-19 12:29:04 +02:00
ratkosrb b5111a3ca4 Fix issues with The Great Masquerade. 2021-02-28 19:39:33 +02:00
ratkosrb 65fb1503b9 Revert "Consider M2 object LoS for proximity aggro checks."
This reverts commit d0d58455d4.

It's not blizzlike: https://streamable.com/exrvc5
2021-02-24 18:09:10 +02:00
WobLight 03a2e108ba Replace use of ACE threads (#25) 2021-02-21 14:25:25 +02:00
ratkosrb d26eafc377 Fix quest Screecher Spirits.
Closes https://github.com/vmangos/core/issues/1063
2021-02-19 13:48:27 +02:00
ratkosrb c82d2f41dc Allow damage shields to benefit from damage done bonuses.
This allows Flame Wrath to scale with spell power.

https://www.youtube.com/watch?v=xhm2L0-ADdc
2021-02-03 07:22:09 +02:00
ratkosrb a927e5b7f3 Refactor valid attack target checks. 2021-01-24 22:47:36 +02:00
ratkosrb 8d806cf7bd New script for Princess Theradras.
Closes https://github.com/vmangos/core/pull/978
2021-01-24 04:58:32 +02:00
ratkosrb d0d58455d4 Consider M2 object LoS for proximity aggro checks.
Closes https://github.com/vmangos/core/issues/499
2021-01-23 17:37:49 +02:00
ratkosrb 8a9aa7501b Make sure leeway is applied to mob too when attacking moving player. 2021-01-19 17:56:58 +02:00
ratkosrb 57d15342b3 Flip HasInArc parameters to enable arc to be default parameter.
Credits to cmangos https://github.com/cmangos/mangos-classic/commit/7438b4f6b3f78376d05eabff37fdac3e0446ad68
2021-01-15 17:01:26 +02:00
ratkosrb 06bf943220 Rename CalculateSpellDamage to CalculateSpellEffectValue.
https://github.com/cmangos/mangos-classic/commit/c029eaa88b23d93d6ac4567e61080779fb2bde39
2021-01-13 11:51:12 +02:00
ratkosrb 81fea8732d Send melee attack target in update object packet.
Credits to killerwife. Fixes missing melee animation bug with summoned creatures that aggro immediately.
2020-12-12 21:29:03 +02:00
ratkosrb e085523ad0 Implement proper gameobject interaction distance checks.
Credits to cmangos.
2020-11-12 18:41:45 +02:00
ratkosrb 85ac585662 Redesign creature addon table. 2020-11-08 02:45:00 +02:00