Home » MODDING HQ 1.13 » v1.13 General Development Talk » Magsize bonus change
Magsize bonus change[message #363547] Thu, 29 July 2021 22:56 Go to previous message
Flugente

 
Messages:3499
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

Captain

 
Read Message
Read Message
Read Message
Previous Topic: Graphical enhancement new features
Next Topic: Hireable John Kulba
Goto Forum:
  


Current Time: Sat Jun 13 23:13:26 GMT+3 2026

Total time taken to generate the page: 0.00502 seconds