Jump to content

OTS Squad Size Tweaks


TheOldOne822

Recommended Posts

MOD_NAME=Double OTS Squad size increase
AUTHOR=Bertilsson
DESCRIPTION=Squad size I and II gives 2 extra soldiers each

Version: 1.0

Compatible with XCOM Enemy Unknown versions:
 - Patch 4 ( Changelist: 356266 )

UPK_FILE=XComStrategyGame.upk
OFFSET=3696514
[MODDED_HEX]
E7 3D 00 00 AB 1F 00 00 00 00 00 00 E5 3D 00 00 00 00 00 00 00 00 00 00 E7 3D 00 00 00 00 00 00 6D 00 00 00 A6 0C 00 00 82 00 00 00 68 00 00 00 0F 00 E6 3D 00 00 01 D4 3D 00 00 07 45 00 19 1B F4 02 00 00 00 00 00 00 16 0C 00 54 28 00 00 00 1B 17 11 00 00 00 00 00 00 24 01 16 A1 00 E6 3D 00 00 2C 02 16 07 77 00 19 1B F4 02 00 00 00 00 00 00 16 0C 00 54 28 00 00 00 1B 17 11 00 00 00 00 00 00 24 02 16 A1 00 E6 3D 00 00 2C 02 16 04 00 E6 3D 00 00 53 0B 0B 00 00 00 02 00 02 00 AF 0E 00 00 00 00 00 00
function int GetCapacity()
{
  local int iCapacity;

  iCapacity = m_iCapacity;
  // End:0x45
  if(BARRACKS().HasOTSUpgrade(1))
  {
    iCapacity += 2;
  }
  // End:0x77
  if(BARRACKS().HasOTSUpgrade(2))
  {
    iCapacity += 2;
  }
  return iCapacity;  
}

Works fine with Increased SquadSize v0.94 so it should work with Long War.

I assume it will also work with skyranger max capacity 2 in vanilla :smile:

 

OTS naggers are still limited to only 1 nagger per OTS upgrade, when OTS upgrades are bought 2 soldiers replace each nagger.

 

Edit: If you want to modify the values added for each OTS upgrade, just change 2C 02 to new value. The first one is for Squad Size I and the second is for second for II.

 

P.S. You must start a new game for the change to take effect.

Edited by Bertilsson
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...