Home » MODDING HQ 1.13 » v1.13 General Development Talk » Magsize bonus change
Magsize bonus change[message #363547]
|
Thu, 29 July 2021 22:56
|
|
Flugente |
|
Messages:3509
Registered:April 2009 Location: Germany |
|
|
This is a question mostly for modders, not so much players.
Mag adapters adds to a gun's magazine size with the <MagSizeBonus>-tag. For example, the 5.56mm C-Mag Adapter has <MagSizeBonus>70</MagSizeBonus>, meaning that any 5.56 AR with this installed can have 30 + 70 = 100 rounds instead of the usual 30.
However, as a result, this only works properly on guns whose original mag size + the bonus equals the size of existing mags, as in the above example. We have no 80-rnd 5.56 magazines, which is why this isn't allowed on 10-rnd 5.56 guns.
The solution to that would be a 90-rnd bonus adapter then.
This seems needlessly complicated. It would be way easier to just have the adapter overwrite a gun's magsize. My idea is to alter the tag's usage - in the above example the tag would have a 100 and not 70. Any 5.56 gun with that thing can then use 100-rnd Cmags, whether it originally has 30, 10, 42 or 200 rounds.
Heck, we could reasonably skip the entire '5.56' part, as there are 100-rnd Cmags for 9mm too. The things are just a tweak anyway. So I guess a mod with many guns might need less items with this.
The only issue with that is that modders using an exe built with that would have to alter the number in their Items.xml.
Are there any other issues I'm not seeing?
I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.
If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.Report message to a moderator
|
|
|
|
Re: Magsize bonus change[message #363548 is a reply to message #363547]
|
Fri, 30 July 2021 13:49
|
|
minimice |
|
Messages:7
Registered:May 2014 |
|
|
I support this but I would also like to be able to overwrite the caliber and ammo itself, too.
My reasoning and goal is to achieve different fire mode with different ammo. For example using a future type of weapon that switch to different firing modes like 1-shot, 3-shot burst, automatic or instead of number of shots shoots different "sized"/type of shots. Ofc I would like to still be able to add something like an underbarrel grenade launcher, too.
Afaik, I couldn't do this a decade ago but I was able to use an add-on to initiate change. It didn't work well because it would convert the next mag inserted etc. Well, the old computer died along with the mod so I can't go into more details.
[Updated on: Fri, 30 July 2021 13:51] Report message to a moderator
|
Private
|
|
|
|
Goto Forum:
Current Time: Wed Apr 17 21:58:42 GMT+3 2024
Total time taken to generate the page: 0.00746 seconds
|