Thus.. creating garrisonable buildings is something that only Relic can do? My ears have picked up a longstanding demand for Relic to "release modding tools". Is this a piece of functionality that is currently missing due to the lack of tools?
You can make anything a garrison, you just can't change if/where units can fire out. We can put 200 mortar teams into a Panzer IV, but none of them will be able to fire while in there. It is known in which files these combat slots are stored, but the values seem somewhat cryptic and it's not possible to replace these files with a mod, as far as I know.
I see. In this case (if I go with the one-mortar-per-Trench implementation), I would have to give the same conditional modifier for all mortars that can be constructed or captured by the Brits.
It's even easier: You create one passive ability ("mortar_garrison_bonus" or something like that) which increases a mortar's range/rate of fire/whatever while garrisoned and give that ability to every mortar. This is one of the most basic forms of modding in the game.
That's an interesting alternative implementation; make mortar pits kind of like USF vehicles. Each garrisoned mortar activates a mortar weapon on the pit.
If I go down this route, will it be possible to implement the following, though:
- Small arms/grenades should damage the garrisoned mortars directly (without having to destroy the pit entity first).
It seemed promising, but I don't think it's possible after all, because it looks like you can't put restrictions on recrewing: A mortar team would be able to crew anything, and any squad would be able to crew a mortar pit.
Garrisoning a building or halftrack and crewing a vehicle are two fundamentally different things. A unit that is garrisoned can fire (if the hold has combat slots) and be fired at (if set in the hold - this can be changed). When crewing a vehicle, however, a squad completely disappears and can not perform or be the target of any action at all until it abandons that vehicle. Even if the driver or pintle gunner uses the crew's model, it is not a 'unit' in any sense, just an animator attached to the vehicle.
My suggestion would look like this:
1. Brits as well as Ostheer and OKW (if only doctrinally) get the same trench. This trench is owned and cannot be garrisoned by other players. It will be somewhat more expensive than it is now, but also a little more durable.
2. Every mortar from every faction can garrison a trench owned by the player while retaining full functionality and receiving a moderate bonus to its rate of fire.
3. Brits get a mobile 3-inch mortar team in T2. It uses the model for the USF M1 81mm mortar and gets the stats from the Soviet PM-41.
This is both easy to implement and easy to use. It would make Brit play a lot different and leave the mortar pit model unused, but it seems like the most elegant and sensible solution to me. I would be willing to turn this, or a variation of it, into a mod, if you're interested.
Actually, I just thought the following.
On release, the Mortar Pits (allong with all other emplacements) were garrisonable by MG teams. Could the MG weapon slots be interchangeable with Mortar weapon slots. Would that also make all garrisoned mortars able to fire on whichever direction ordered (without relocating)
I didn't know that! I'll have to have a look - it is possible, but not certain.