silentthief wrote:Regarding summoned creatures not vanishing properly, vanilla Morrowind had an exploit where if you could open the "dead body" container fast enough you could loot the corpse before it vanished. Golden Saints almost always had money items worth selling off. I think this should NOT be allowed, IMHO.
ST
This was patched I think, but it was in one of the early version numbers of Morrowind. I never managed it in the GotY edition.
scrawl wrote:One way you can identify summons is that they have an AiFollow package that never ends. That's definitely not used by anything else.
That'd be implicit, and would be a bad idea, since it is entirely valid for mods to have the same behaviour on non-summon creatures. Pack animals (e.g. guars) may have this behaviour, but be bought instead of summoned. The player uses them to store items, and disappearing them on death would be bad form. Though treating it as an in-game scam by a savvy conjurer could lead to a hilarious side-quest. (I kind of want that such a mod now)
scrawl wrote:Or you just iterate over all registered Actors and check if any of them own this creature.
That's actually what I'd like to avoid, since iterating over all actors every frame is something to be avoided at best, and if it needs to be done, I'd design a monolithic iterator to handle it, that handles everything that requires iteration over all actors. That's far more time-efficient than iterating the heck out of things, simply because it's the easy solution.
You do however create an interesting point. Upon the death of a creature, we may check whether it has an owner. Then we can grab the owner without iteration, and check whether that owner summoned this creature, and if so, treat the creature as a summon, and handle it's death that way. I'll look into that.
cc9cii wrote:Yes. If you create a good pattern hopefully others will start using the same elsewhere... Might be a bit of work... IMHO of course.
I was thinking of adding it to the creature-data, but make it optional, that way it would not conflict with native mods and save-games, nor would it be initialised and gobble up memory for non-summoned creatures. However if what Scrawl says is true, the data can already be gleaned from the current creature-data with low time and space complexity.