openmw-tes3coop/apps/openmw/mwclass
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
..
activator.cpp Owned crosshair improvements (bug #2789) 2017-08-18 17:08:15 +04:00
activator.hpp Owned crosshair improvements (bug #2789) 2017-08-18 17:08:15 +04:00
actor.cpp Disable actor collision only after end of death animation 2018-06-12 10:00:38 +04:00
actor.hpp Don't use xmesh.nif over mesh.nif for classes that don't make use of the separated keyframes 2017-02-20 19:04:02 +01:00
apparatus.cpp Merge pull request #457 from OpenMW/master while resolving conflicts 2018-07-14 03:57:05 +03:00
apparatus.hpp Make Equip console command to bypass most of restrictions (bug #4460) 2018-07-11 00:06:21 +04:00
armor.cpp [General] Implement RecordDynamic packet, part 1 2018-07-30 10:56:26 +03:00
armor.hpp Make Equip console command to bypass most of restrictions (bug #4460) 2018-07-11 00:06:21 +04:00
bodypart.cpp purge all instances of <boost/shared_ptr.hpp>, clean up unused headers 2017-06-09 19:08:53 +02:00
bodypart.hpp Add support for placing BodyParts in a cell (Bug #3118) 2016-07-07 23:50:48 +08:00
book.cpp [General] Implement RecordDynamic packet, part 1 2018-07-30 10:56:26 +03:00
book.hpp Make Equip console command to bypass most of restrictions (bug #4460) 2018-07-11 00:06:21 +04:00
classes.cpp Add support for placing BodyParts in a cell (Bug #3118) 2016-07-07 23:50:48 +08:00
classes.hpp moved concrete record classes to separate sub-system (mwclass) 2010-08-03 13:17:31 +02:00
clothing.cpp [General] Implement RecordDynamic packet, part 1 2018-07-30 10:56:26 +03:00
clothing.hpp Make Equip console command to bypass most of restrictions (bug #4460) 2018-07-11 00:06:21 +04:00
container.cpp [Client] Set packetOrigin for all ObjectList packets sent 2018-07-23 01:39:43 +03:00
container.hpp [Client] Make it possible to check whether a class has a ContainerStore 2018-04-01 09:33:07 +03:00
creature.cpp Merge pull request #460 from OpenMW/master 2018-07-21 05:59:57 +03:00
creature.hpp [Client] Make it possible to check whether a class has a ContainerStore 2018-04-01 09:33:07 +03:00
creaturelevlist.cpp Merge pull request #228 from OpenMW/master while resolving conflicts 2017-06-18 18:16:10 +03:00
creaturelevlist.hpp Preload levelled creatures 2016-02-09 03:06:00 +01:00
door.cpp [Client] Set packetOrigin for all ObjectList packets sent 2018-07-23 01:39:43 +03:00
door.hpp Owned crosshair improvements (bug #2789) 2017-08-18 17:08:15 +04:00
ingredient.cpp Merge pull request #457 from OpenMW/master while resolving conflicts 2018-07-14 03:57:05 +03:00
ingredient.hpp Make Equip console command to bypass most of restrictions (bug #4460) 2018-07-11 00:06:21 +04:00
itemlevlist.cpp purge all instances of <boost/shared_ptr.hpp>, clean up unused headers 2017-06-09 19:08:53 +02:00
itemlevlist.hpp Remove redundant getId function 2015-12-18 16:58:38 +01:00
light.cpp Make Equip console command to bypass most of restrictions (bug #4460) 2018-07-11 00:06:21 +04:00
light.hpp Make Equip console command to bypass most of restrictions (bug #4460) 2018-07-11 00:06:21 +04:00
lockpick.cpp Make Equip console command to bypass most of restrictions (bug #4460) 2018-07-11 00:06:21 +04:00
lockpick.hpp Make Equip console command to bypass most of restrictions (bug #4460) 2018-07-11 00:06:21 +04:00
misc.cpp Merge pull request #457 from OpenMW/master while resolving conflicts 2018-07-14 03:57:05 +03:00
misc.hpp Make Equip console command to bypass most of restrictions (bug #4460) 2018-07-11 00:06:21 +04:00
npc.cpp Merge pull request #460 from OpenMW/master 2018-07-21 05:59:57 +03:00
npc.hpp [Client] Make it possible to check whether a class has a ContainerStore 2018-04-01 09:33:07 +03:00
potion.cpp Merge pull request #457 from OpenMW/master while resolving conflicts 2018-07-14 03:57:05 +03:00
potion.hpp Make Equip console command to bypass most of restrictions (bug #4460) 2018-07-11 00:06:21 +04:00
probe.cpp Make Equip console command to bypass most of restrictions (bug #4460) 2018-07-11 00:06:21 +04:00
probe.hpp Make Equip console command to bypass most of restrictions (bug #4460) 2018-07-11 00:06:21 +04:00
repair.cpp Merge pull request #457 from OpenMW/master while resolving conflicts 2018-07-14 03:57:05 +03:00
repair.hpp Make Equip console command to bypass most of restrictions (bug #4460) 2018-07-11 00:06:21 +04:00
static.cpp purge all instances of <boost/shared_ptr.hpp>, clean up unused headers 2017-06-09 19:08:53 +02:00
static.hpp Remove redundant getId function 2015-12-18 16:58:38 +01:00
weapon.cpp [General] Implement RecordDynamic packet, part 1 2018-07-30 10:56:26 +03:00
weapon.hpp Make Equip console command to bypass most of restrictions (bug #4460) 2018-07-11 00:06:21 +04:00