I need to start asembling a proper list of these things, so that when the project is ready, I remember all this shyte. :p
I was again reminded yesterday that itemdata and weapon vars never want to match up. UseSprite has no itemdata equivalent, and UseSound has no weapon equivalent. If more of them crossed, it would simplify item scripts, and ffc items dramatically. Perhaps trying to ensure that all the properties cross should be in there too.
What I was tryng to do was:
Code:
itemdata it = Game->LoadItemData(srcItem):
this->UseSound(it->UseSound):
That would have allowed an end-user to use the item editor to mod a class item (in this case, bombs) and have that change afffect a custom, scripted item that creates the same weapon as srcItem, loading the sound, sprites, and other settings from it, rather than specifying them as script args.
Being unable to load the itemdata properties for sfx, sprite, and other very base attributes is certainly a flaw to rectify.