1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 05:19:55 +00:00
openmw-tes3mp/apps/openmw-mp
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
..
processors [General] Reimplement weather synchronization to allow soft transitions 2018-07-21 05:20:26 +03:00
Script [General] Implement RecordDynamic packet, part 1 2018-07-30 10:56:26 +03:00
Cell.cpp [General] Rename all instances of refNumIndex into refNum 2018-07-13 04:12:03 +03:00
Cell.hpp [General] Rename all instances of refNumIndex into refNum 2018-07-13 04:12:03 +03:00
CellController.cpp [Server] Initialize interiors correctly if exterior 0, 0 has been loaded 2017-08-31 14:48:23 +03:00
CellController.hpp [General] Rename Event into ObjectList & WorldObject into BaseObject 2018-05-13 00:42:24 +03:00
CMakeLists.txt [General] Implement RecordDynamic packet, part 1 2018-07-30 10:56:26 +03:00
main.cpp [General] Move credits integrity error message to new ErrorMessages file 2018-07-16 03:21:14 +03:00
MasterClient.cpp [General] Explicitly use limitations of the master server 2018-07-02 23:29:07 +08:00
MasterClient.hpp [Server] Add and implement PushPlugin method to MasterClient 2017-05-07 02:51:57 +08:00
Networking.cpp [Server] Rename isPlayerExists() into doesPlayerExist() 2018-07-21 07:34:45 +03:00
Networking.hpp [Server] Move PreInit code to preInit method 2018-07-17 00:58:37 +08:00
Player.cpp [Server] Rename isPlayerExists() into doesPlayerExist() 2018-07-21 07:34:45 +03:00
Player.hpp [Server] Rename isPlayerExists() into doesPlayerExist() 2018-07-21 07:34:45 +03:00
Utils.cpp [Server] Add and use Utils::getCellFromDescription() 2017-04-28 16:33:58 +03:00
Utils.hpp [Server] Add and use Utils::getCellFromDescription() 2017-04-28 16:33:58 +03:00