Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MOD_NAME=Fix xp 1.1
- AUTHOR=Oakeman
- DESCRIPTION=Fixes bug where the squad doesn't get the no dead soldier xp bonus on covert extractions. Bugs where the covert operative on covert extractions doesn't get the no dead bonus and doesn't get psi-xp. Also included a mod to add Cyberdisks and Uber Ethereal as better aliens.
- UPK_FILE=XComGame.upk
- OBJECT=XGBattle.Done.AdditionalBonuses:AUTO
- [REPLACEMENT_CODE]
- //missionEvent = ((SpecialMissionBonus()) ? 5 : 4);
- 0F 00 <.missionEvent> 45 1B <SpecialMissionBonus> 16 [@] ( 2C 05 ) [@] ( 2C 04 )
- //noDeadSoldiers = NoDeadSoldiersBonus();
- 14 2D 00 <.noDeadSoldiers> 1B <NoDeadSoldiersBonus> 16
- //kSquad = XGBattle_SP(XComTacticalGRI(class'Engine'.static.GetCurrentWorldInfo().GRI).m_kBattle).GetHumanPlayer().GetSquad();
- 0F 00 <.kSquad> 19 19 2E <Class.XGBattle_SP> 19 2E <Class.XComTacticalGRI> 19 12 20 <Engine.Engine> [@] <Engine.Engine.GetCurrentWorldInfo.ReturnValue> 00 ( 1C <Engine.Engine.GetCurrentWorldInfo> 16 ) [@] <Engine.WorldInfo.GRI> 00 ( 01 <Engine.WorldInfo.GRI> ) [@] <XComTacticalGRI.m_kBattle> 00 ( 01 <XComTacticalGRI.m_kBattle> ) [@] <XGBattle_SP.GetHumanPlayer.ReturnValue> 00 ( 1B <GetHumanPlayer> 16 ) [@] <XGPlayer.GetSquad.ReturnValue> 00 ( 1B <GetSquad> 16 )
- //I = 0;
- 0F 00 <.I> 25
- [#label001]
- //if(I < kSquad.GetNumMembers()) [Loop If]
- 07 [@label009] 96 00 <.I> 19 00 <.kSquad> [@] <XGSquadNativeBase.GetNumMembers.ReturnValue> 00 ( 1B <GetNumMembers> 16 ) 16
- //kUnit = kSquad.GetMemberAt(I);
- 0F 00 <.kUnit> 19 00 <.kSquad> [@] <XGSquadNativeBase.GetMemberAt.ReturnValue> 00 ( 1B <GetMemberAt> 00 <.I> 16 )
- //if(kUnit.IsAlive())
- 07 [@label008] 19 00 <.kUnit> [@] <XGUnitNativeBase.IsAlive.ReturnValue> 00 ( 1B <IsAlive> 16 )
- //kSoldier = XGCharacter_Soldier(kUnit.GetCharacter());
- 0F 00 <.kSoldier> 2E <Class.XGCharacter_Soldier> 19 00 <.kUnit> [@] <XGUnit.GetCharacter.ReturnValue> 00 ( 1B <GetCharacter> 16 )
- //kSoldier.AddXP(XComGameReplicationInfo(class'Engine'.static.GetCurrentWorldInfo().GRI).m_kGameCore.CalcXP(kUnit, missionEvent, none));
- 19 00 <.kSoldier> [@] <NullRef> 00 ( 1B <AddXP> 19 19 2E <Class.XComGameReplicationInfo> 19 12 20 <Engine.Engine> [@] <Engine.Engine.GetCurrentWorldInfo.ReturnValue> 00 ( 1C <Engine.Engine.GetCurrentWorldInfo> 16 ) [@] <Engine.WorldInfo.GRI> 00 ( 01 <Engine.WorldInfo.GRI> ) [@] <XComGameReplicationInfo.m_kGameCore> 00 ( 01 <XComGameReplicationInfo.m_kGameCore> ) [@] <XGTacticalGameCore.CalcXP.ReturnValue> 00 ( 1B <CalcXP> 00 <.kUnit> 00 <.missionEvent> 2A 16 ) 16 )
- //if(noDeadSoldiers)
- 07 [@label002] 2D 00 <.noDeadSoldiers>
- //kSoldier.AddXP(XComGameReplicationInfo(class'Engine'.static.GetCurrentWorldInfo().GRI).m_kGameCore.CalcXP(kUnit, 6, none));
- 19 00 <.kSoldier> [@] <NullRef> 00 ( 1B <AddXP> 19 19 2E <Class.XComGameReplicationInfo> 19 12 20 <Engine.Engine> [@] <Engine.Engine.GetCurrentWorldInfo.ReturnValue> 00 ( 1C <Engine.Engine.GetCurrentWorldInfo> 16 ) [@] <Engine.WorldInfo.GRI> 00 ( 01 <Engine.WorldInfo.GRI> ) [@] <XComGameReplicationInfo.m_kGameCore> 00 ( 01 <XComGameReplicationInfo.m_kGameCore> ) [@] <XGTacticalGameCore.CalcXP.ReturnValue> 00 ( 1B <CalcXP> 00 <.kUnit> 2C 06 2A 16 ) 16 )
- //if((kSoldier.m_kChar.aUpgrades[158] > 0) && kSoldier.m_kChar.aStats[6] < XComGameReplicationInfo(class'Engine'.static.GetCurrentWorldInfo().GRI).m_kGameCore.COUNCIL_STAT_MAX)
- 07 [@label002] 82 97 1A 2C 9E 35 <XGTacticalGameCoreNativeBase.TCharacter.aUpgrades> <XGTacticalGameCoreNativeBase.TCharacter> 00 00 19 00 <.kSoldier> [@] <XGCharacter.m_kChar> 00 ( 01 <XGCharacter.m_kChar> ) 25 16 18 [@] ( 96 1A 2C 06 35 <XGTacticalGameCoreNativeBase.TCharacter.aStats> <XGTacticalGameCoreNativeBase.TCharacter> 00 00 19 00 <.kSoldier> [@] <XGCharacter.m_kChar> 00 ( 01 <XGCharacter.m_kChar> ) 19 19 2E <Class.XComGameReplicationInfo> 19 12 20 <Engine.Engine> [@] <Engine.Engine.GetCurrentWorldInfo.ReturnValue> 00 ( 1C <Engine.Engine.GetCurrentWorldInfo> 16 ) [@] <Engine.WorldInfo.GRI> 00 ( 01 <Engine.WorldInfo.GRI> ) [@] <XComGameReplicationInfo.m_kGameCore> 00 ( 01 <XComGameReplicationInfo.m_kGameCore> ) [@] <XGTacticalGameCoreNativeBase.COUNCIL_STAT_MAX> 00 ( 01 <XGTacticalGameCoreNativeBase.COUNCIL_STAT_MAX> ) 16 16 )
- //kSoldier.m_kChar.aStats[6] += 1;
- A1 1A 2C 06 35 <XGTacticalGameCoreNativeBase.TCharacter.aStats> <XGTacticalGameCoreNativeBase.TCharacter> 00 01 19 00 <.kSoldier> [@] <XGCharacter.m_kChar> 00 ( 01 <XGCharacter.m_kChar> ) 26 16
- //kSoldier.m_kChar.aStats[1] += 1;
- A1 1A 26 35 <XGTacticalGameCoreNativeBase.TCharacter.aStats> <XGTacticalGameCoreNativeBase.TCharacter> 00 01 19 00 <.kSoldier> [@] <XGCharacter.m_kChar> 00 ( 01 <XGCharacter.m_kChar> ) 2C 01 16
- //kSoldier.m_kChar.aStats[7] += 1;
- A1 1A 2C 07 35 <XGTacticalGameCoreNativeBase.TCharacter.aStats> <XGTacticalGameCoreNativeBase.TCharacter> 00 01 19 00 <.kSoldier> [@] <XGCharacter.m_kChar> 00 ( 01 <XGCharacter.m_kChar> ) 2C 01 16
- [#label002]
- //kSoldier.AddPsiXP(255);
- 19 00 <.kSoldier> [@] <NullRef> 00 ( 1B <AddPsiXP> 2C FF 16 )
- //if(kSoldier.m_kSoldier.iRank < 6)
- 07 [@label004] 96 35 <XGTacticalGameCoreNativeBase.TSoldier.iRank> <XGTacticalGameCoreNativeBase.TSoldier> 00 00 19 00 <.kSoldier> [@] <XGCharacter_Soldier.m_kSoldier> 00 ( 01 <XGCharacter_Soldier.m_kSoldier> ) 2C 06 16
- //if(kSoldier.m_kSoldier.iXP >= XComGameReplicationInfo(class'Engine'.static.GetCurrentWorldInfo().GRI).m_kGameCore.GetXPRequired(kSoldier.m_kSoldier.iRank + 2))
- 07 [@label003] 99 35 <XGTacticalGameCoreNativeBase.TSoldier.iXP> <XGTacticalGameCoreNativeBase.TSoldier> 00 00 19 00 <.kSoldier> [@] <XGCharacter_Soldier.m_kSoldier> 00 ( 01 <XGCharacter_Soldier.m_kSoldier> ) 19 19 2E <Class.XComGameReplicationInfo> 19 12 20 <Engine.Engine> [@] <Engine.Engine.GetCurrentWorldInfo.ReturnValue> 00 ( 1C <Engine.Engine.GetCurrentWorldInfo> 16 ) [@] <Engine.WorldInfo.GRI> 00 ( 01 <Engine.WorldInfo.GRI> ) [@] <XComGameReplicationInfo.m_kGameCore> 00 ( 01 <XComGameReplicationInfo.m_kGameCore> ) [@] <XGTacticalGameCore.GetXPRequired.ReturnValue> 00 ( 1B <GetXPRequired> 92 35 <XGTacticalGameCoreNativeBase.TSoldier.iRank> <XGTacticalGameCoreNativeBase.TSoldier> 00 00 19 00 <.kSoldier> [@] <XGCharacter_Soldier.m_kSoldier> 00 ( 01 <XGCharacter_Soldier.m_kSoldier> ) 2C 02 16 16 ) 16
- //kSoldier.SetXP(XComGameReplicationInfo(class'Engine'.static.GetCurrentWorldInfo().GRI).m_kGameCore.GetXPRequired(kSoldier.m_kSoldier.iRank + 2) - 1);
- 19 00 <.kSoldier> [@] <NullRef> 00 ( 1B <SetXP> 93 19 19 2E <Class.XComGameReplicationInfo> 19 12 20 <Engine.Engine> [@] <Engine.Engine.GetCurrentWorldInfo.ReturnValue> 00 ( 1C <Engine.Engine.GetCurrentWorldInfo> 16 ) [@] <Engine.WorldInfo.GRI> 00 ( 01 <Engine.WorldInfo.GRI> ) [@] <XComGameReplicationInfo.m_kGameCore> 00 ( 01 <XComGameReplicationInfo.m_kGameCore> ) [@] <XGTacticalGameCore.GetXPRequired.ReturnValue> 00 ( 1B <GetXPRequired> 92 35 <XGTacticalGameCoreNativeBase.TSoldier.iRank> <XGTacticalGameCoreNativeBase.TSoldier> 00 00 19 00 <.kSoldier> [@] <XGCharacter_Soldier.m_kSoldier> 00 ( 01 <XGCharacter_Soldier.m_kSoldier> ) 2C 02 16 16 ) 26 16 16 )
- [#label003]
- //else
- 06 [@label005]
- [#label004]
- //if(kSoldier.m_kSoldier.iRank == 6)
- 07 [@label005] 9A 35 <XGTacticalGameCoreNativeBase.TSoldier.iRank> <XGTacticalGameCoreNativeBase.TSoldier> 00 00 19 00 <.kSoldier> [@] <XGCharacter_Soldier.m_kSoldier> 00 ( 01 <XGCharacter_Soldier.m_kSoldier> ) 2C 06 16
- //if(kSoldier.m_kSoldier.iXP >= XComGameReplicationInfo(class'Engine'.static.GetCurrentWorldInfo().GRI).m_kGameCore.GetXPRequired(7))
- 07 [@label005] 99 35 <XGTacticalGameCoreNativeBase.TSoldier.iXP> <XGTacticalGameCoreNativeBase.TSoldier> 00 00 19 00 <.kSoldier> [@] <XGCharacter_Soldier.m_kSoldier> 00 ( 01 <XGCharacter_Soldier.m_kSoldier> ) 19 19 2E <Class.XComGameReplicationInfo> 19 12 20 <Engine.Engine> [@] <Engine.Engine.GetCurrentWorldInfo.ReturnValue> 00 ( 1C <Engine.Engine.GetCurrentWorldInfo> 16 ) [@] <Engine.WorldInfo.GRI> 00 ( 01 <Engine.WorldInfo.GRI> ) [@] <XComGameReplicationInfo.m_kGameCore> 00 ( 01 <XComGameReplicationInfo.m_kGameCore> ) [@] <XGTacticalGameCore.GetXPRequired.ReturnValue> 00 ( 1B <GetXPRequired> 2C 07 16 ) 16
- //kSoldier.SetXP(XComGameReplicationInfo(class'Engine'.static.GetCurrentWorldInfo().GRI).m_kGameCore.GetXPRequired(7));
- 19 00 <.kSoldier> [@] <NullRef> 00 ( 1B <SetXP> 19 19 2E <Class.XComGameReplicationInfo> 19 12 20 <Engine.Engine> [@] <Engine.Engine.GetCurrentWorldInfo.ReturnValue> 00 ( 1C <Engine.Engine.GetCurrentWorldInfo> 16 ) [@] <Engine.WorldInfo.GRI> 00 ( 01 <Engine.WorldInfo.GRI> ) [@] <XComGameReplicationInfo.m_kGameCore> 00 ( 01 <XComGameReplicationInfo.m_kGameCore> ) [@] <XGTacticalGameCore.GetXPRequired.ReturnValue> 00 ( 1B <GetXPRequired> 2C 07 16 ) 16 )
- [#label005]
- //if(kSoldier.m_kSoldier.iPsiRank < 6)
- 07 [@label007] 96 35 <XGTacticalGameCoreNativeBase.TSoldier.iPsiRank> <XGTacticalGameCoreNativeBase.TSoldier> 00 00 19 00 <.kSoldier> [@] <XGCharacter_Soldier.m_kSoldier> 00 ( 01 <XGCharacter_Soldier.m_kSoldier> ) 2C 06 16
- //if(kSoldier.m_kSoldier.iPsiXP >= XComGameReplicationInfo(class'Engine'.static.GetCurrentWorldInfo().GRI).m_kGameCore.GetPsiXPRequired(kSoldier.m_kSoldier.iPsiRank + 1))
- 07 [@label006] 99 35 <XGTacticalGameCoreNativeBase.TSoldier.iPsiXP> <XGTacticalGameCoreNativeBase.TSoldier> 00 00 19 00 <.kSoldier> [@] <XGCharacter_Soldier.m_kSoldier> 00 ( 01 <XGCharacter_Soldier.m_kSoldier> ) 19 19 2E <Class.XComGameReplicationInfo> 19 12 20 <Engine.Engine> [@] <Engine.Engine.GetCurrentWorldInfo.ReturnValue> 00 ( 1C <Engine.Engine.GetCurrentWorldInfo> 16 ) [@] <Engine.WorldInfo.GRI> 00 ( 01 <Engine.WorldInfo.GRI> ) [@] <XComGameReplicationInfo.m_kGameCore> 00 ( 01 <XComGameReplicationInfo.m_kGameCore> ) [@] <XGTacticalGameCore.GetPsiXPRequired.ReturnValue> 00 ( 1B <GetPsiXPRequired> 92 35 <XGTacticalGameCoreNativeBase.TSoldier.iPsiRank> <XGTacticalGameCoreNativeBase.TSoldier> 00 00 19 00 <.kSoldier> [@] <XGCharacter_Soldier.m_kSoldier> 00 ( 01 <XGCharacter_Soldier.m_kSoldier> ) 2C 01 16 16 ) 16
- //kSoldier.SetPsiXP(XComGameReplicationInfo(class'Engine'.static.GetCurrentWorldInfo().GRI).m_kGameCore.GetPsiXPRequired(kSoldier.m_kSoldier.iPsiRank + 1) - 0);
- 19 00 <.kSoldier> [@] <NullRef> 00 ( 1B <SetPsiXP> 93 19 19 2E <Class.XComGameReplicationInfo> 19 12 20 <Engine.Engine> [@] <Engine.Engine.GetCurrentWorldInfo.ReturnValue> 00 ( 1C <Engine.Engine.GetCurrentWorldInfo> 16 ) [@] <Engine.WorldInfo.GRI> 00 ( 01 <Engine.WorldInfo.GRI> ) [@] <XComGameReplicationInfo.m_kGameCore> 00 ( 01 <XComGameReplicationInfo.m_kGameCore> ) [@] <XGTacticalGameCore.GetPsiXPRequired.ReturnValue> 00 ( 1B <GetPsiXPRequired> 92 35 <XGTacticalGameCoreNativeBase.TSoldier.iPsiRank> <XGTacticalGameCoreNativeBase.TSoldier> 00 00 19 00 <.kSoldier> [@] <XGCharacter_Soldier.m_kSoldier> 00 ( 01 <XGCharacter_Soldier.m_kSoldier> ) 2C 01 16 16 ) 25 16 16 )
- [#label006]
- //else
- 06 [@label008]
- [#label007]
- //if(kSoldier.m_kSoldier.iPsiRank == 7)
- 07 [@label008] 9A 35 <XGTacticalGameCoreNativeBase.TSoldier.iPsiRank> <XGTacticalGameCoreNativeBase.TSoldier> 00 00 19 00 <.kSoldier> [@] <XGCharacter_Soldier.m_kSoldier> 00 ( 01 <XGCharacter_Soldier.m_kSoldier> ) 2C 07 16
- //if(kSoldier.m_kSoldier.iPsiXP >= XComGameReplicationInfo(class'Engine'.static.GetCurrentWorldInfo().GRI).m_kGameCore.GetPsiXPRequired(6))
- 07 [@label008] 99 35 <XGTacticalGameCoreNativeBase.TSoldier.iPsiXP> <XGTacticalGameCoreNativeBase.TSoldier> 00 00 19 00 <.kSoldier> [@] <XGCharacter_Soldier.m_kSoldier> 00 ( 01 <XGCharacter_Soldier.m_kSoldier> ) 19 19 2E <Class.XComGameReplicationInfo> 19 12 20 <Engine.Engine> [@] <Engine.Engine.GetCurrentWorldInfo.ReturnValue> 00 ( 1C <Engine.Engine.GetCurrentWorldInfo> 16 ) [@] <Engine.WorldInfo.GRI> 00 ( 01 <Engine.WorldInfo.GRI> ) [@] <XComGameReplicationInfo.m_kGameCore> 00 ( 01 <XComGameReplicationInfo.m_kGameCore> ) [@] <XGTacticalGameCore.GetPsiXPRequired.ReturnValue> 00 ( 1B <GetPsiXPRequired> 2C 06 16 ) 16
- //kSoldier.SetPsiXP(XComGameReplicationInfo(class'Engine'.static.GetCurrentWorldInfo().GRI).m_kGameCore.GetPsiXPRequired(6));
- 19 00 <.kSoldier> [@] <NullRef> 00 ( 1B <SetPsiXP> 19 19 2E <Class.XComGameReplicationInfo> 19 12 20 <Engine.Engine> [@] <Engine.Engine.GetCurrentWorldInfo.ReturnValue> 00 ( 1C <Engine.Engine.GetCurrentWorldInfo> 16 ) [@] <Engine.WorldInfo.GRI> 00 ( 01 <Engine.WorldInfo.GRI> ) [@] <XComGameReplicationInfo.m_kGameCore> 00 ( 01 <XComGameReplicationInfo.m_kGameCore> ) [@] <XGTacticalGameCore.GetPsiXPRequired.ReturnValue> 00 ( 1B <GetPsiXPRequired> 2C 06 16 ) 16 )
- [#label008]
- //++ I;
- A5 00 <.I> 16
- //goto J0xCE; [Loop Continue]
- 06 [@label001]
- [#label009]
- //if(XGBattle_SPCovertOpsExtraction(XComTacticalGRI(class'Engine'.static.GetCurrentWorldInfo().GRI).m_kBattle) != none)
- 07 [@label010] 77 2E <Class.XGBattle_SPCovertOpsExtraction> 19 2E <Class.XComTacticalGRI> 19 12 20 <Engine.Engine> [@] <Engine.Engine.GetCurrentWorldInfo.ReturnValue> 00 ( 1C <Engine.Engine.GetCurrentWorldInfo> 16 ) [@] <Engine.WorldInfo.GRI> 00 ( 01 <Engine.WorldInfo.GRI> ) [@] <XComTacticalGRI.m_kBattle> 00 ( 01 <XComTacticalGRI.m_kBattle> ) 2A 16
- //kUnit = XGBattle_SPCovertOpsExtraction(XComTacticalGRI(class'Engine'.static.GetCurrentWorldInfo().GRI).m_kBattle).GetCovertOperative();
- 0F 00 <.kUnit> 19 2E <Class.XGBattle_SPCovertOpsExtraction> 19 2E <Class.XComTacticalGRI> 19 12 20 <Engine.Engine> [@] <Engine.Engine.GetCurrentWorldInfo.ReturnValue> 00 ( 1C <Engine.Engine.GetCurrentWorldInfo> 16 ) [@] <Engine.WorldInfo.GRI> 00 ( 01 <Engine.WorldInfo.GRI> ) [@] <XComTacticalGRI.m_kBattle> 00 ( 01 <XComTacticalGRI.m_kBattle> ) [@] <XGBattle_SPCovertOpsExtraction.GetCovertOperative.ReturnValue> 00 ( 1B <GetCovertOperative> 16 )
- //if(kUnit != none)
- 07 [@label010] 77 00 <.kUnit> 2A 16
- //kSoldier = XGCharacter_Soldier(kUnit.GetCharacter());
- 0F 00 <.kSoldier> 2E <Class.XGCharacter_Soldier> 19 00 <.kUnit> [@] <XGUnit.GetCharacter.ReturnValue> 00 ( 1B <GetCharacter> 16 )
- //kSoldier.AddXP(120);
- 19 00 <.kSoldier> [@] <NullRef> 00 ( 1B <AddXP> 2C 78 16 )
- //kSoldier.AddPsiXP(255);
- 19 00 <.kSoldier> [@] <NullRef> 00 ( 1B <AddPsiXP> 2C FF 16 )
- //if(noDeadSoldiers)
- 07 [@IfNoDead] 2D 00 <.noDeadSoldiers>
- //kSoldier.AddXP(XComGameReplicationInfo(class'Engine'.static.GetCurrentWorldInfo().GRI).m_kGameCore.CalcXP(kUnit, 6, none));
- 19 00 <.kSoldier> [@] <NullRef> 00 ( 1B <AddXP> 19 19 2E <Class.XComGameReplicationInfo> 19 12 20 <Engine.Engine> [@] <Engine.Engine.GetCurrentWorldInfo.ReturnValue> 00 ( 1C <Engine.Engine.GetCurrentWorldInfo> 16 ) [@] <Engine.WorldInfo.GRI> 00 ( 01 <Engine.WorldInfo.GRI> ) [@] <XComGameReplicationInfo.m_kGameCore> 00 ( 01 <XComGameReplicationInfo.m_kGameCore> ) [@] <XGTacticalGameCore.CalcXP.ReturnValue> 00 ( 1B <CalcXP> 00 <.kUnit> 2C 06 2A 16 ) 16 )
- [#IfNoDead]
- [#label010]
- //return;
- 04 0B
- 53
- OBJECT=XGBattle.Done.NoDeadSoldiersBonus:AUTO
- [REPLACEMENT_CODE]
- //kSquad = XGBattle_SP(XComTacticalGRI(class'Engine'.static.GetCurrentWorldInfo().GRI).m_kBattle).GetHumanPlayer().GetSquad();
- 0F 00 <.kSquad> 19 19 2E <Class.XGBattle_SP> 19 2E <Class.XComTacticalGRI> 19 12 20 <Engine.Engine> [@] <Engine.Engine.GetCurrentWorldInfo.ReturnValue> 00 ( 1C <Engine.Engine.GetCurrentWorldInfo> 16 ) [@] <Engine.WorldInfo.GRI> 00 ( 01 <Engine.WorldInfo.GRI> ) [@] <XComTacticalGRI.m_kBattle> 00 ( 01 <XComTacticalGRI.m_kBattle> ) [@] <XGBattle_SP.GetHumanPlayer.ReturnValue> 00 ( 1B <GetHumanPlayer> 16 ) [@] <XGPlayer.GetSquad.ReturnValue> 00 ( 1B <GetSquad> 16 )
- //I = 0;
- 0F 00 <.I> 25
- [#label001]
- //if(I < kSquad.GetNumMembers()) [Loop If]
- 07 [@label003] 96 00 <.I> 19 00 <.kSquad> [@] <XGSquadNativeBase.GetNumMembers.ReturnValue> 00 ( 1B <GetNumMembers> 16 ) 16
- //kUnit = kSquad.GetMemberAt(I);
- 0F 00 <.kUnit> 19 00 <.kSquad> [@] <XGSquadNativeBase.GetMemberAt.ReturnValue> 00 ( 1B <GetMemberAt> 00 <.I> 16 )
- //if(!kUnit.IsDead())
- 07 [@label002] 81 19 00 <.kUnit> [@] <XGUnitNativeBase.IsDead.ReturnValue> 00 ( 1B <IsDead> 16 ) 16
- //++ healthySoldiers;
- A5 00 <.healthySoldiers> 16
- [#label002]
- //++ I;
- A5 00 <.I> 16
- //goto J0x9C; [Loop Continue]
- 06 [@label001]
- [#label003]
- //if(XGBattle_SPCovertOpsExtraction(XComTacticalGRI(class'Engine'.static.GetCurrentWorldInfo().GRI).m_kBattle) != none)
- 07 [@label010] 77 2E <Class.XGBattle_SPCovertOpsExtraction> 19 2E <Class.XComTacticalGRI> 19 12 20 <Engine.Engine> [@] <Engine.Engine.GetCurrentWorldInfo.ReturnValue> 00 ( 1C <Engine.Engine.GetCurrentWorldInfo> 16 ) [@] <Engine.WorldInfo.GRI> 00 ( 01 <Engine.WorldInfo.GRI> ) [@] <XComTacticalGRI.m_kBattle> 00 ( 01 <XComTacticalGRI.m_kBattle> ) 2A 16
- //kUnit = XGBattle_SPCovertOpsExtraction(XComTacticalGRI(class'Engine'.static.GetCurrentWorldInfo().GRI).m_kBattle).GetCovertOperative();
- 0F 00 <.kUnit> 19 2E <Class.XGBattle_SPCovertOpsExtraction> 19 2E <Class.XComTacticalGRI> 19 12 20 <Engine.Engine> [@] <Engine.Engine.GetCurrentWorldInfo.ReturnValue> 00 ( 1C <Engine.Engine.GetCurrentWorldInfo> 16 ) [@] <Engine.WorldInfo.GRI> 00 ( 01 <Engine.WorldInfo.GRI> ) [@] <XComTacticalGRI.m_kBattle> 00 ( 01 <XComTacticalGRI.m_kBattle> ) [@] <XGBattle_SPCovertOpsExtraction.GetCovertOperative.ReturnValue> 00 ( 1B <GetCovertOperative> 16 )
- //if(kUnit != none)
- 07 [@label010] 77 00 <.kUnit> 2A 16
- //++ healthySoldiers;
- A5 00 <.healthySoldiers> 16
- [#label010]
- //return healthySoldiers >= kSquad.GetNumMembers();
- 04 99 00 <.healthySoldiers> 19 00 <.kSquad> [@] <XGSquadNativeBase.GetNumMembers.ReturnValue> 00 ( 1B <GetNumMembers> 16 ) 16
- //return ReturnValue;
- 04 3A <.ReturnValue>
- 53
- //Delete everything after this line if you don't want Cyberdisks to give the better alien xp bonus.
- OBJECT=XGTacticalGameCore.IsBetterAlien:AUTO
- [REPLACEMENT_CODE]
- //bCheckSoldierRank = true;
- 49 [@] ( 27 15 )
- //iRank = kSoldier.iRank;
- 0F 00 <.iRank> 35 <XGTacticalGameCoreNativeBase.TSoldier.iRank> <XGTacticalGameCoreNativeBase.TSoldier> 00 00 00 <.kSoldier>
- //iAlien = iTargetCharType;
- 0F 00 <.iAlien> 00 <.iTargetCharType>
- //if(bCheckSoldierRank)
- 07 [@label001] 2D 00 <.bCheckSoldierRank>
- //isLesserRank = iRank < 4;
- 14 2D 00 <.isLesserRank> 96 00 <.iRank> 2C 04 16
- //else
- 06 [@label002]
- [#label001]
- //isLesserRank = true;
- 14 2D 00 <.isLesserRank> 27
- [#label002]
- //if(isLesserRank)
- 07 [@label003] 2D 00 <.isLesserRank>
- //return ((((((iAlien == 9) || iAlien == 11) || iAlien == 12) || iAlien == 16) || iAlien == 18) || iAlien == 21) || iAlien == 8;
- 04 84 84 84 84 84 84 84 9A 00 <.iAlien> 2C 09 16 18 [@] ( 9A 00 <.iAlien> 2C 0B 16 16 ) 18 [@] ( 9A 00 <.iAlien> 2C 0C 16 16 ) 18 [@] ( 9A 00 <.iAlien> 2C 10 16 16 ) 18 [@] ( 9A 00 <.iAlien> 2C 12 16 16 ) 18 [@] ( 9A 00 <.iAlien> 2C 15 16 16 ) 18 [@] ( 9A 00 <.iAlien> 2C 08 16 16 ) 18 [@] ( 9A 00 <.iAlien> 2C 13 16 16 )
- [#label003]
- //return false;
- 04 28
- //return ReturnValue;
- 04 3A <.ReturnValue>
- 53
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement