OpenXcom Forum
Modding => Work In Progress => Topic started by: Solarius Scorch on March 31, 2014, 01:15:41 am
-
I've been trying to add a clip for the tank/minigun (part of my Minigun (https://openxcom.org/forum/index.php?topic=1825.0) mod), because right now it has unlimited ammo which is too good. So I wanted to make a separate, buyable clip (100 bullets), but I failed spectacularly. The tank won't load onto the craft in quick battle (it says ammo is unavailable), and in actual game it sorta works but it only fires one bullet at a time (should be 20) and clips are treated as separate bullets (so when I bought 2 clips 100 bullets each, the tank has 2 bullets to fire). Am I hitting some sort of engine limitation, or am I just doing it wrong?
Please help! Experimental ruleset is attached, the resources are in the actual mod.
-
Here's my prototype, hope it can help you
-
This is probably because of how vanilla tanks work. Each ammo item always corresponds to one "bullet", while the clipSize corresponds to the full load of the tank. We'd have to look into separating the clipSize from the tank load.
-
This is probably because of how vanilla tanks work. Each ammo item always corresponds to one "bullet", while the clipSize corresponds to the full load of the tank. We'd have to look into separating the clipSize from the tank load.
Whoa, I was a few days late with my response and thanks to Fox105iwsp, and you still managed to push a post one minute before me, SupSuper :)
So... yeah, I did some experiments with Fox105iwsp's way of doing things, I had some interesting effects but no success. I guess we need to wait until (and if) these changes make it to the game, and my minigun tank stays the same for now.
Thanks for your time, both of you.