Home » MODDING HQ 1.13 » v1.13 Feature Requests » Codewise: Add a<ubMagType> check to Autoreload to remove ammo box size restrictions
Codewise: Add a<ubMagType> check to Autoreload to remove ammo box size restrictions[message #317652] Mon, 22 April 2013 21:29 Go to next message
LootFragg is currently offline LootFragg

 
Messages:349
Registered:August 2009
Location: Berlin, Germany
Hi,

ammo boxes can only be of a magazine size that is not being used by a magazine. This is because the game will reload (and unload) an entire ammo box on autoreload if the ammo box has the magazine size needed for the active weapon which would render magazines obsolete if ammo boxes share the same size.

Afaik, already tells us what kind of ammo container we have.
0 = Magazine
1 = Shells
2 = Box
3 = Crate

On autoreloading (manual reloading with a box only creates magazines), the game needs to check for that tag and refuse to load boxes (and crates). That would be all. This would effectively allow for any ammo box size, from realistic packages to larger sizes, without having to resort to odd numbers.

Of course, if any other function checks for mag size to find magazines, it would have to undergo the same check. No idea if there are any.

Report message to a moderator

Master Sergeant
Re: Codewise: Add a<ubMagType> check to Autoreload to remove ammo box size restrictions[message #317726] Wed, 24 April 2013 01:20 Go to previous messageGo to next message
Flugente

 
Messages:3499
Registered:April 2009
Location: Germany
Not sure I understand. What is the point of having boxes when there are magazines in the same size?

Report message to a moderator

Captain

Re: Codewise: Add a<ubMagType> check to Autoreload to remove ammo box size restrictions[message #317736] Wed, 24 April 2013 03:31 Go to previous messageGo to next message
LootFragg is currently offline LootFragg

 
Messages:349
Registered:August 2009
Location: Berlin, Germany
Boxes are supposed to be compact containers for ammunition. Magazines are bulkier but can be fed into weapons at any time, easier than single rounds out of a box. Boxes are small crates, they are not stationary but can be bought from merchants and can be transported everywhere to fill up magazines if needed.

Mercs shouldn't be able to carry around 20 relatively large magazines without seriously cluttering up their inventory. Well, that's my opinion, I like the idea of having a part of your ammunition combat-ready and the other one stashed. I don't like having full access to everything during combat which is why I like inventory manipulation costs and the closed backpack.

The point would be a compact way of storing a good amount of ammo in your smaller pockets without the need for magazine pouches. I don't want this stored ammo to be reloadable though unless turned into a magazine before. That's why. Right now, you can just load a box like a magazine which defeats the entire point.

Report message to a moderator

Master Sergeant
Re: Codewise: Add a<ubMagType> check to Autoreload to remove ammo box size restrictions[message #317800] Wed, 24 April 2013 20:59 Go to previous messageGo to next message
Flugente

 
Messages:3499
Registered:April 2009
Location: Germany
I still dont get it. Then why do the boxes need to have the size of existing magazines?

Report message to a moderator

Captain

Re: Codewise: Add a<ubMagType> check to Autoreload to remove ammo box size restrictions[message #317822] Thu, 25 April 2013 04:37 Go to previous message
LootFragg is currently offline LootFragg

 
Messages:349
Registered:August 2009
Location: Berlin, Germany
Because 5.56x45mm boxes usually come in 30rd size, one full magazine per box.

I consider numbers like 40rds odd and only a means of circumventing the restriction.

The maximum magazine size for that calibre is 200rds which is a number a box cannot use either.

In-between, there's beta-c-mags somewhere with, I believe, 100rds or so.

Those plain and easy numbers are "blocked" by magazines. One could opt to go with 210rds per box, use the realistic value of 30 and double it for 60rds or simply go up to 400-500rds to circumvent the mag size issues which would border into crate size. It all works. But none of these options are particularly classy, I figure. Boxes don't need to have a certain size, one could make them any size that is not occupied by a magazine. It just looks less cool.

Even the current values aren't free from errors. 9x19mm boxes come in 100rd size, just like beta-c-mags. So they could double as magazines. I simply hoped this could be removed at the core without having to tip-toe around the issue.

Report message to a moderator

Master Sergeant
Previous Topic: Request: Reallistic sleep & energy system
Next Topic: Camoflage - Question and suggestion
Goto Forum:
  


Current Time: Fri Jun 12 19:52:04 GMT+3 2026

Total time taken to generate the page: 0.00610 seconds