openmw-tes3coop/apps/openmw/mwmp
David Cernat 20caea083a [Client] Use correct count for items in equipment packets
Previously, throwing weapon sync was completely broken for players, as the count for their equipped throwing weapons was never set and – as a result – defaulted to a count of 1 on other clients. As a result, any time a player threw a dart, they would then appear as having switched to hand-to-hand for other players.

Moreover, the count of equipped items was mistakenly based on the total count of items with that refId in the inventory. As a result, if – for example – I equipped 1 Daedric Longsword and had 4 others in my inventory, my DedicatedPlayer on other clients would equip a Daedric Longsword with a count of 5. If I was overencumbered by having that many Daedric Longswords on me and then dropped 4 of them, allowing myself to move again, my DedicatedPlayer would still walk around with 5 Daedric Longswords and lack animations due to still being overencumbered on the other clients.

These problems were less prevalent for actors, but their equipment updating code has also been changed to match that of players.
2018-03-12 23:31:37 +02:00
..
GUI [Client] Clean up GUIChat slightly 2018-01-05 00:03:05 +02:00
processors [General] Implement setting of enforced client log level in GameSettings 2018-03-11 04:50:59 +02:00
ActorList.cpp [Client] Make foreach style consistent with other 2017-06-27 22:27:02 +08:00
ActorList.hpp [General] Make most ActorPackets smaller by not including refIds in them 2017-05-27 16:59:23 +03:00
Cell.cpp [Client] Ignore cell changes that move actors to where they already are 2018-01-08 01:37:01 +02:00
Cell.hpp [Client] Fix warnings 2017-07-03 23:41:16 +08:00
CellController.cpp [General] Implement Mark location sync as part of PlayerMiscellaneous 2018-01-31 04:50:29 +02:00
CellController.hpp [Client] When getting an actor, make sure their cell is initialized 2018-01-07 02:35:30 +02:00
DedicatedActor.cpp [Client] Ignore equipment items for DedicatedActors with count below 0 2018-01-27 18:08:45 +02:00
DedicatedActor.hpp [Client] Fix problems with NPC equipment sync 2017-06-09 04:58:56 +03:00
DedicatedPlayer.cpp [General] Implement player scale as part of PlayerShapeshift 2018-02-01 02:11:45 +02:00
DedicatedPlayer.hpp [General] Implement PlayerSpeech packet 2017-10-31 15:19:14 +02:00
GUIController.cpp [Client] Fix ListBox overlap crashes by removing ListBoxes properly 2018-01-27 15:41:11 +02:00
GUIController.hpp [Client] Unequip items if necessary when attr/skill modifier is set to 0 2018-01-26 00:45:39 +02:00
LocalActor.cpp [Client] Use correct count for items in equipment packets 2018-03-12 23:31:37 +02:00
LocalActor.hpp [Client] Use update timer in mwmp::Cell instead of LocalActor 2017-06-10 03:29:51 +03:00
LocalPlayer.cpp [Client] Use correct count for items in equipment packets 2018-03-12 23:31:37 +02:00
LocalPlayer.hpp [General] Implement selected spell sync as part of PlayerMiscellaneous 2018-02-06 06:36:46 +02:00
Main.cpp [General] Use address keys with clearer meaning in tes3mp config files 2017-07-03 01:31:48 +03:00
Main.hpp [Client] Convert MechanicsHelper to namespace 2017-06-27 16:43:53 +08:00
MechanicsHelper.cpp [Client] Add and use enchantmentType argument for unequipItemsByEffect() 2018-01-27 19:37:16 +02:00
MechanicsHelper.hpp [Client] Add and use enchantmentType argument for unequipItemsByEffect() 2018-01-27 19:37:16 +02:00
Networking.cpp [Client] Use more descriptive message for version mismatch 2018-01-17 08:10:49 +02:00
Networking.hpp [Client] Replace usage of Networking::isDedicatedPlayer() 2017-04-18 18:07:39 +03:00
PlayerList.cpp [General] Change NULL to nullptr 2017-06-27 22:49:28 +08:00
PlayerList.hpp [Client] Set and clear hitAttemptActorId for DedicatedPlayers 2017-05-30 08:20:45 +03:00
WorldEvent.cpp [Client] Clean up WorldEvent::runConsoleCommands() slightly 2018-01-31 23:23:52 +02:00
WorldEvent.hpp [General] Track objects directly placed by players in ObjectPlace 2018-01-28 17:46:51 +02:00