Page 1 of 1

IP/Trench Q...

Posted: Tue Jun 21, 2022 10:46 pm
by carll11
The concealment benefits in a IP and trench are the same, ( in jungle for example a -5).

Other than the the +1 morale benefit, does a trench bestow, over an IP, any other defensive advantages?

Also, does the old EF/WF paradigm hold here re; vehicles in a trench, no advantage, IP yes (concealment and cover)?

Re: IP/Trench Q...

Posted: Tue Jun 21, 2022 11:06 pm
by Jason Petho
I don't want to misspeak, so I'll let berto answer.

Re: IP/Trench Q...

Posted: Wed Jun 22, 2022 1:57 am
by berto
carll11 wrote: Tue Jun 21, 2022 10:46 pm
Other than the the +1 morale benefit, does a trench bestow, over an IP, any other defensive advantages?
Yes. Observe:


Code: Select all

// A s s a u l t M o d i f y
//
// Return assault modifier.

void Assault::AssaultModify (double& modifier) const
{
    ...
    if (HasFlag (_defend_hex, XImprovedHex|XTrenchHex)) {
        modifier *= _pdata.ImprovedModify ();
    }
    if (HasFlag (_defend_hex, XTrenchHex)) {
        modifier *= _pdata.ImprovedModify ();
    }
    ...
    return;
}


As you can see, for assaults, trench defense benefits from the ImprovedModify() multiplier twice over vs. just once for IP.
Also, does the old EF/WF paradigm hold here re; vehicles in a trench, no advantage, IP yes (concealment and cover)?
For fire defense, vehicles and non vehicles benefit from the ImprovedModify() multiplier in IPs. In trenches, non vehicles benefit from that multiplier twice over, while vehicles benefit not at all.

For concealment, there is no difference between IP vs. trench.

It is all so very complicated. :?

Re: IP/Trench Q...

Posted: Wed Jun 29, 2022 1:54 pm
by KEYSTONE0795
Berto - Is the AssaultModify output you posted available in ~/CSlint?
If not, may a player access it?

Re: IP/Trench Q...

Posted: Thu Jun 30, 2022 12:20 am
by berto
No, that is (abridged) C++ code in the game engine EXE. (CSlint deals with the game data, and the CSEE/SAI.) Inaccessible to anybody but the developer, me. That is also as much as I care to reveal. "Secret Sauce" and all that. :P