I wrote a weapon spawn manager for cnc_reborn, it emulated the Black-cell weapon spawn system where the spawner changed model every x seconds to signify that the weapon given would be random. This was fine as I created the power-up and then granted the random weapon on the ::Custom. However, I was writing a plug-in for SSGM that did the same thing, but without the manager creating the weapon spawns. I was trying to use the Object Create hook to attach a script to the weapon spawn (meaning that I diddn't have to add positions for weapon spawns, just change the existing ones), then found that the weapon spawn isn't actually a power-up at all after the model wasn't changing... Then it turned out that the ObjectCreateHook doesn't even pick up the weapon spawner at all. Period.
Can anyone think of a way to hook it?
I mean, I could probably just attach a script to it in level edit, but that's not the way I wanted to do it, I just wanted to distribute it as a .dll. Needing a modified objects file is pretty crappy, as allot of server owners will already have a modified version.
I can think of otherways to attach the script to the weapon spawn, but it would mean iterating through all the objects with a string comparision every x time. Which is obviously shockingly crap.
So, anyone got any ideas?