1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 21:49:56 +00:00
openmw-tes3mp/apps/openmw/mwmp/processors
David Cernat b57807407a [General] Implement RecordDynamic packet, part 1
Spell, potion, enchantment, creature, NPC, armor, book, clothing, miscellaneous and weapon record data can now be sent in a RecordDynamic packet. Additionally, the packets include data related to associated magical effects (for spells, potions and enchantments), data related to default inventory contents (for creatures and NPCs) and data related to body parts affected (for armor and clothing).

The server now has associated script functions for setting most of the details of the above, with the main exception being individual creature and NPC stats.

Records can either be created entirely from scratch or can use an existing record (set via the baseId variable) as a starting point for their values. In the latter case, only the values that are specifically set override the starting values. Creature and NPC records also have an inventoryBaseId that can be used on top of the baseId to base their inventories on another existing record.

The client's RecordHelper class has been heavily expanded to allow for the above mentioned functionality.

When players create spells, potions and enchantments as part of regular gameplay, they send RecordDynamic packets that provide the server with the complete details of the records that should be created. When they create enchantments, they also provide the server with armor, book, clothing and weapon records corresponding to the items they've enchanted.

This functionality added by this packet was originally supposed to be exclusive to the rewrite, but I've gone ahead and tried to provide it for the pre-rewrite in a way that can mostly be reused for the rewrite.
2018-07-30 10:56:26 +03:00
..
actor [Client] Add ActorList methods for sending ActorAI packets 2018-07-12 20:48:47 +03:00
object [General] Implement ObjectActivate packet & associated script functions 2018-07-15 03:16:04 +03:00
player [General] Turn PlayerRegionAuthority into WorldRegionAuthority 2018-07-17 09:21:13 +03:00
worldstate [General] Implement RecordDynamic packet, part 1 2018-07-30 10:56:26 +03:00
ActorProcessor.cpp [Client] Use the correct guid for a received WorldEvent or ActorList 2018-03-21 06:08:04 +02:00
ActorProcessor.hpp [General] Rename Event into ObjectList & WorldObject into BaseObject 2018-05-13 00:42:24 +03:00
BaseClientPacketProcessor.cpp [Client] Reorder files 2017-06-07 00:06:10 +08:00
BaseClientPacketProcessor.hpp [General] Move AddProcessor to BasePacketProcessor 2017-06-30 20:09:05 +08:00
ObjectProcessor.cpp [General] Turn GameTime into a Worldstate packet 2018-05-21 07:14:08 +03:00
ObjectProcessor.hpp [General] Fix remaining references to world packets/events 2018-05-17 00:08:37 +03:00
PlayerProcessor.cpp [General] Move AddProcessor to BasePacketProcessor 2017-06-30 20:09:05 +08:00
PlayerProcessor.hpp [General] Move AddProcessor to BasePacketProcessor 2017-06-30 20:09:05 +08:00
ProcessorInitializer.cpp [General] Turn PlayerRegionAuthority into WorldRegionAuthority 2018-07-17 09:21:13 +03:00
ProcessorInitializer.hpp [Client] Reorder files 2017-06-07 00:06:10 +08:00
WorldstateProcessor.cpp [General] Turn PlayerMap into WorldMap, now a Worldstate packet 2018-06-07 12:51:45 +03:00
WorldstateProcessor.hpp [General] Turn PlayerMap into WorldMap, now a Worldstate packet 2018-06-07 12:51:45 +03:00