I want to make a weapon upgrade system where you buy upgrades and they stay fixed to the gun you attached them to. If you throw it away somebody else can pick it up and enjoy the upgrades you bought for it. This is all no problem, but what I'm struggling with is transitioning the upgrades properly between maps.
Problems:
- Only want to carry the upgrades over between campaign levels, not when somebody leaves during a campaign level and then starts a survival game on the server
- Mapping the old entitys to the new ones. The entity index and reference change between maps, so I can't just store that. If I just carry over the upgrades for the guns in a players inventory after map change I might be able to do it with some hacking, but then I'm missing upgraded weapons in the saferoom floor that that were recreated when transitioning. I tried setting the m_Gender of the weapon since I don't think that's used for anything but it was missing in the next map