Questions about Adoxa's ammolimit.dll
-
What’s the relationship of the plugin to the global ammo limit constant? I assume it completely replaces it depending on whether the ammo_limit property was set or not?
Reason why I’m asking is that we’ve come upon a bit of a snag, ammo that is dropped into space and then tractored will bypass the ammo limit up to the point of the global constant. So lets say I have a launcher with ammo_limit = 25, the ammo constant is 70. I log in, buy ammo - I can only buy 25 as expected. If I launch into space and a friend drops some ammo at the same time however, I’ll still be able to tractor it.
This kinda breaks things. So we tried setting the ammo constant to 1 to see if that fixes it, turns out it does however it of course breaks other things: if there is ammo floating in space, you press tractor while you have more ammo in your hold than the ammo constant says you should, the tractor animation will carry on forever and nothing will be tractored.
So we have a choice between one bug or another. Is there some kind of a fix to this that won’t ruin either? I’ve looked in ammolimit.cpp and comments seem to imply that it should handle tractoring as well, so what could be broken?
-
Turns out it’s also required on the server, so I’ve put up a new version to handle that (no need to update clients).