IP/Trench Q...

Campaign Series: Vietnam is a new turn-based, tactical/operational war game that focuses on the Indochina War, Vietnam Civil War and the first years of US involvement in Vietnam with over 100 historical scenarios.

Moderator: Jason Petho

Post Reply
User avatar
carll11
Posts: 951
Joined: Thu Nov 26, 2009 2:07 pm

IP/Trench Q...

Post 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)?
User avatar
Jason Petho
Posts: 16630
Joined: Tue Jun 22, 2004 10:31 am
Location: Terrace, BC, Canada
Contact:

Re: IP/Trench Q...

Post by Jason Petho »

I don't want to misspeak, so I'll let berto answer.
User avatar
berto
Posts: 21461
Joined: Wed Mar 13, 2002 1:15 am
Location: metro Chicago, Illinois, USA
Contact:

Re: IP/Trench Q...

Post 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. :?
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
User avatar
KEYSTONE0795
Posts: 90
Joined: Thu Aug 21, 2014 12:01 am

Re: IP/Trench Q...

Post by KEYSTONE0795 »

Berto - Is the AssaultModify output you posted available in ~/CSlint?
If not, may a player access it?
User avatar
berto
Posts: 21461
Joined: Wed Mar 13, 2002 1:15 am
Location: metro Chicago, Illinois, USA
Contact:

Re: IP/Trench Q...

Post 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
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
Post Reply

Return to “Campaign Series: Vietnam”