Commit Graph
1583 Commits
Author SHA1 Message Date
Ovahlord e57ec65973 Core/Packets: corrected guild roster update packet structure 2020-07-29 23:03:02 +02:00
Ovahlord 64c4b4f529 Core/Misc: converted quest, creature and quest query packets to packet class and ported query data caching from 335 branch 2020-07-28 21:34:12 +02:00
Treeston 942c3a77da Core: Combat/threat system rewrite (PR #19930)
- PvE combat is now always mutual. UNIT_FLAG_IN_COMBAT is backed by actual references to the units we're in combat with.
- PvP combat is now also tracked, and almost always mutual; spells like Vanish and Feign Death can break this rule. That means we can easily determine a list of players we're fighting.
- By extension, IsInCombatWith now has sensible behavior when invoked on nonplayers.
- Threat and combat systems are no longer the same.
  - They still have an enforced relationship (threat implies combat - clearing combat clears threat)...
  - ...but we can have combat without threat. A creature (with threat list) isn't considered to be engaged until it has an entry on its threat list...
  - ...which means we can now faithfully replicate retail engage behavior. Combat on projectile launch - engagement start on projectile impact. Yay for progress!
- AI method refactor, as already ported in 6113b9d - `JustEngagedWith`, `JustEnteredCombat` and `JustExitedCombat`.
- Vehicle threat is now properly pooled on the main vehicle body (fixes #16542).
- Various edge case bug fixes for threat redirects (Misdirection "cancelling" Vigilance and similar).
- Target re-selection is now significantly faster.
- Fixed a ton of other smaller edge case bugs, probably.

Closes #7951 and #19998.
2020-07-22 16:49:37 +02:00
Ovahlord 8fadb361eb Fixed nopch build 2020-07-16 18:05:24 +02:00
Ovahlord 2a8fe49a73 Core/Packets: changed amount storage for aura update packets from vector to array to improve performance 2020-07-16 17:42:08 +02:00
Ovahlord 961144d82d Core/Packets: converted SMSG_AURA_UPDATE and SMSG_AURA_UPDATE_ALL to packet class 2020-07-16 17:28:49 +02:00
Ovahlord 25006f9478 Fixed build 2020-07-16 15:37:38 +02:00
Ovahlord d371c9d1f6 Core/Packets: converted MSG_MOVE_TELEPORT, MSG_MOVE_TELEPORT_ACK, CMSG_SET_ACTIVE_MOVER and SMSG_MOVE_UPDATE_TELEPORT to packet class and send SMSG_MOVE_UPDATE_TELEPORT for players after receiving MSG_MOVE_TELEPORT_ACK instead of sending it alongside MSG_MOVE_TELEPORT 2020-07-16 15:26:12 +02:00
Ovahlord 51c0907e5a Core/Packets: fixed emote field order in SMSG_QUEST_GIVER_QUEST_DETAILS
closes #137
2020-07-10 22:04:01 +02:00
Ovahlord c80ce80644 Core/Packets: updated SMSG_LOOT_MONEY_NOTIFY, SMSG_COIN_REMOVED, SMSG_LOOT_REMOVED and SMSG_LOOT_RELEASE to packet class 2020-07-08 14:53:54 +02:00
Ovahlord 4f7eec88dc Core/Packets: converted SMSG_LOOT_LIST to packet class 2020-07-08 14:19:44 +02:00
Ovahlord 91c0f13f77 Core/Packets: corrected another packet structure part in attacker state update packet to match structure of packet parser 2020-05-23 21:00:37 +02:00
Ovahlord 1e93b90397 Core/Packets: removed a part struct part from attacker state update packet that was added in 5.1 2020-05-23 20:58:58 +02:00
Ovahlord 964dfdade7 Core/Packets: fixed structure of CMSG_WHO 2020-05-14 00:05:49 +02:00
Ovahlord d8ec67df50 Core/Movement: converted collision height and move update opcodes back to movement structures and implement new movement status elements for future use 2020-05-10 19:21:33 +02:00
Ovahlord a2cea3ce08 Core/Movement: converted CMSG_MOVE_SET_COLLISION_HEIGHT_ACK and SMSG_MOVE_UPDATE_COLLISION_HEIGHT to packet class
* added new MovementInfo helpers for easy access to all packet related data
2020-05-10 01:31:53 +02:00
Ovahlord 04b99ab8ac Core/Packets: converted SMSG_MOVE_UPDATE to packet class 2020-05-09 17:01:42 +02:00
Ovahlord 6aa8e4389c Core/Texts: allow creature texts to play sounds via different opcodes (Direct Sound, Object Sound and Music) 2020-05-01 20:16:27 +02:00
Ovahlord 54d0170235 Core/Packets: converted SMSG_START_TIMER to packet class 2020-04-28 18:05:06 +02:00
Ovahlord 29aac17e2c Core/Packets: removed unused field from attacker state update field 2020-04-20 22:03:23 +02:00
Ovahlord 0d9b5c7caf Core/packets: fixed a typo in health frequent packet class name 2020-04-20 21:22:09 +02:00
Ovahlord 867b581303 Fixed no pch build 2020-04-20 19:24:59 +02:00
Ovahlord 4daf6d5f23 Core/Packets: converted SMSG_ATTACKER_STATE_UPDATE to packet class 2020-04-20 19:09:29 +02:00
Ovahlord 4f9579db91 Core/Packets: added structure for SMSG_UNIT_HEALTH_FREQUENT 2020-04-20 18:28:01 +02:00
Ovahlord e456ff8efb Fixed nopch build 2020-04-20 10:51:44 +02:00
Ovahlord 937df192f6 Core/Packets: converted threat packets to packet class and fixed threat amount sent in them 2020-04-20 10:45:49 +02:00
Ovahlord 631236fa8a Core/Packets: converted CMSG_WHO and SMSG_WHO to packet class 2020-04-18 19:23:54 +02:00
Ovahlord 15d380b0b9 Core/Packets: corrected packet header size for SMSG_PLAY_MUSIC 2020-04-16 14:45:50 +02:00
Shauren ca881f7e3f Core/DBLayer: Implement async transaction completion callbacks 2020-04-15 21:41:14 +02:00
Ovahlord 882c275e65 Core/DBLayer: 13440434c34da28a5106af8419aabc8e5783faf0 followup 2020-04-15 21:33:16 +02:00
Shauren 47acc59f49 Core/DBLayer: Prevent committing transactions started on a different database 2020-04-15 21:02:26 +02:00
Shauren d003ebd8e4 Core/DBLayer: Prevent using prepared statements on wrong database 2020-04-15 19:18:58 +02:00
Ovahlord 4539b571bf Core/Packets: converted SMSG_MOTD and SMSG_LOGIN_VERIFY_WORLD to packet class 2020-04-11 18:22:01 +02:00
Ovahlord a91424185b Core/Packets: convert SMSG_INIT_WORLD_STATES to packet class 2020-04-08 17:15:22 +02:00
Ovahlord 832e763d36 Core/Packets: implement and enable SMSG_MOUNT_RESULT and use it for transformed cases 2020-04-07 17:25:15 +02:00
Ovahlord b5bdf61e5f Core/Packets: converted SMSG_DURABILITY_DAMAGE_DEATH, SMSG_PLAY_ONE_SHOT_ANIM_KIT, SMSG_SET_AI_ANIM_KIT, SMSG_SET_MOVEMENT_ANIM_KIT and SMSG_SET_MELEE_ANIM_KIT to packet class 2020-04-07 16:29:30 +02:00
Ovahlord eb81e8f4a3 Core/Packets: updated SMSG_WEATHER and SMSG_OVERRIDE_LIGHT to packet class 2020-04-07 16:14:09 +02:00
Ovahlord 113202ea48 Core/Packets: converted SMSG_PLAY_MUSIC to packet class and corrected packet structure 2020-04-07 15:59:33 +02:00
Ovahlord 9bf01799f0 Core/Packets: converted SMSG_PLAY_SOUND and SMSG_PLAY_OBJECT_SOUND to packet class and corrected packet structure of
SMSG_PLAY_OBJECT_SOUND
2020-04-05 19:28:49 +02:00
ForesterDev 337aa3614b Core/Packets: Added SMSG_WORLD_STATE_UI_TIMER_UPDATE (#24312)
(cherry picked from commit 7d88f8c491837dcfd02995a32310c196102200ce)

# Conflicts:
#	src/server/game/Handlers/MiscHandler.cpp
#	src/server/game/Server/Protocol/Opcodes.cpp
#	src/server/game/Server/Protocol/Opcodes.h
# Conflicts:
#	src/server/game/Server/Packets/MiscPackets.cpp
#	src/server/game/Server/Packets/MiscPackets.h
2020-04-04 19:02:30 +02:00
ForesterDev e2643dabb0 Core/Packets: update & enabled CMSG_SHOWING_CLOAK, CMSG_SHOWING_HELM (#24394)
(cherry picked from commit a47d57d1dbd7bc944972d7ef1773739e5019adde)

Co-authored-by: DJScias <zumbak04@gmail.com>
# Conflicts:
#	src/server/game/Server/Packets/AllPackets.h
#	src/server/game/Server/Packets/CharacterPackets.cpp
#	src/server/game/Server/Packets/CharacterPackets.h
#	src/server/game/Server/WorldSession.h
2020-04-04 18:59:02 +02:00
Ovahlord fe4ff01e30 Core/Movement: converted SMSG_MOVE_KNOCK_BACK to packet class 2020-03-29 19:12:32 +02:00
Ovahlord 9dd475d2fc Core/Packets: converted SMSG_GUILD_COMMAND_RESULT, SMSG_GUILD_BANK_TEXT_QUERY_RESULT, SMSG_GUILD_NAME_CHANGED, SMSG_QUERY_GUILD_INFO_RESPONSE and SMSG_GUILD_RANKS to packet class 2020-03-18 23:09:35 +01:00
Ovahlord 2a9fc25269 Core/Misc: fixed more no pch errors 2020-03-11 13:42:42 +01:00
Ovahlord 234b1ca355 Core/Packets: convert SMSG_PHASE_SHIFT_CHANGE to packet class and handle PhaseShiftFlags field 2020-03-07 20:15:33 +01:00
Ovahlord e47b9c8599 Core/Movement: converted SMSG_MOVE_SET_COLLISION_HEIGHT to packet class and handle reason bits to match sniff behaivior 2020-02-23 10:59:57 +01:00
Ovahlord d9b854ad59 Core/Datastores: backported hotfix system implementation 2020-02-21 23:13:38 +01:00
Ovahlord 4aff2dd524 Core/Packets: fixed structure of SMSG_NEW_WORLD 2020-02-17 21:15:46 +01:00
Ovahlord 87955a487e Core/Packets: corrected packet structure of SMSG_SUSPEND_TOKEN 2020-02-17 19:51:22 +01:00
Ovahlord 22ed3f306d Core/Movement: implement SMSG_SUSPEND_TOKEN and CMSG_SUSPEND_TOKEN_RESPONSE packets and converted SMSG_TRANSFER_PENDING and SMSG_NEW_WORLD to packet class 2020-02-17 18:40:21 +01:00