Advertisement
Guest User

OW cover bonus removal for LW

a guest
Jul 10th, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.30 KB | None | 0 0
  1. UPK_FILE = XComGame.upk
  2.  
  3. ALIAS=DebugLog:19 2E <Class.XComOnlineEventMgr> 19 2E <Engine.GameEngine> 12 20 <Engine.Engine> 0A 00 <Engine.Engine.GetEngine.ReturnValue> 00 1C <Engine.Engine.GetEngine> 16 09 00 <Engine.GameEngine.OnlineEventManager> 00 01 <Engine.GameEngine.OnlineEventManager> FF 00 <NullRef> 00 1B <DevOnlineMsg>
  4.  
  5. OBJECT = XGAbility_Targeted.GetHitChance : AUTO
  6. [REPLACEMENT_CODE]
  7. <!DebugLog> 70 1F <%t "XGAbility_Targeted: m_kUnit = "> 38 56 01 <XGAbility.m_kUnit> 16 16
  8. <!DebugLog> 70 1F <%t "XGAbility_Targeted: m_kUnit.SafeGetCharacterName() = "> 19 01 <XGAbility.m_kUnit> [@] <XGUnitNativeBase.SafeGetCharacterName.ReturnValue> 00 ( 1B <SafeGetCharacterName> 16 ) 16 16
  9. <!DebugLog> 70 1F <%t "XGAbility_Targeted: m_bReactionFire = "> 38 54 01 <XGAbility.m_bReactionFire> 16 16
  10. <!DebugLog> 70 1F <%t "XGAbility_Targeted: m_bHasFlank = "> 38 54 01 <@m_bHasFlank> 16 16
  11. <!DebugLog> 70 1F <%t "XGAbility_Targeted: m_bHasOpenTarget = "> 38 54 01 <@m_bHasOpenTarget> 16 16
  12. <!DebugLog> 70 1F <%t "XGAbility_Targeted: m_bHasHeightAdvantage = "> 38 54 01 <@m_bHasHeightAdvantage> 16 16
  13. <!DebugLog> 70 1F <%t "XGAbility_Targeted: m_fDistanceToTarget = "> 38 55 01 <@m_fDistanceToTarget> 16 16
  14. <!DebugLog> 70 1F <%t "XGAbility_Targeted: m_iHitChance = "> 38 53 01 <@m_iHitChance> 16 16
  15. <!DebugLog> 70 1F <%t "XGAbility_Targeted: m_iCriticalChance = "> 38 53 01 <@m_iCriticalChance> 16 16
  16. <!DebugLog> 70 1F <%t "XGAbility_Targeted: m_vTargetLocation = "> 38 58 01 <@m_vTargetLocation> 16 16
  17. <!DebugLog> 70 1F <%t "XGAbility_Targeted: GetPrimaryTarget() = "> 38 56 1B <GetPrimaryTarget> 16 16 16
  18. <!DebugLog> 70 1F <%t "XGAbility_Targeted: GetPrimaryTarget().SafeGetCharacterName() = "> 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.SafeGetCharacterName.ReturnValue> 00 ( 1B <SafeGetCharacterName> 16 ) 16 16
  19. <!DebugLog> 70 1F <%t "XGAbility_Targeted: GetPrimaryTarget().m_bInSmokeBomb = "> 38 54 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.m_bInSmokeBomb> 00 ( 01 <XGUnitNativeBase.m_bInSmokeBomb> ) 16 16
  20. <!DebugLog> 70 1F <%t "XGAbility_Targeted: GetPrimaryTarget().m_bInDenseSmoke = "> 38 54 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.m_bInDenseSmoke> 00 ( 01 <XGUnitNativeBase.m_bInDenseSmoke> ) 16 16
  21. <!DebugLog> 70 1F <%t "XGAbility_Targeted: GetPrimaryTarget().m_iCurrentCoverValue = "> 38 53 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.m_iCurrentCoverValue> 00 ( 01 <XGUnitNativeBase.m_iCurrentCoverValue> ) 16 16
  22. <!DebugLog> 70 1F <%t "XGAbility_Targeted: GetPrimaryTarget().m_iBaseCoverValue = "> 38 53 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.m_iBaseCoverValue> 00 ( 01 <XGUnitNativeBase.m_iBaseCoverValue> ) 16 16
  23. <!DebugLog> 70 1F <%t "XGAbility_Targeted: GetPrimaryTarget().IsFlankedBy(m_kUnit) = "> 38 54 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.IsFlankedBy.ReturnValue> 00 ( 1B <IsFlankedBy> 01 <XGAbility.m_kUnit> 16 ) 16 16
  24. <!DebugLog> 70 1F <%t "XGAbility_Targeted: GetPrimaryTarget().IsMoving() = "> 38 54 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.IsMoving.ReturnValue> 00 ( 1B <IsMoving> 16 ) 16 16
  25. <!DebugLog> 70 1F <%t "XGAbility_Targeted: GetPrimaryTarget().m_bCachedIsInCover = "> 38 54 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.m_bCachedIsInCover> 00 ( 01 <XGUnitNativeBase.m_bCachedIsInCover> ) 16 16
  26. <!DebugLog> 70 1F <%t "XGAbility_Targeted: GetPrimaryTarget().IsInCover() = "> 38 54 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.IsInCover.ReturnValue> 00 ( 1B <IsInCover> 16 ) 16 16
  27. <!DebugLog> 70 1F <%t "XGAbility_Targeted: GetPrimaryTarget().LastCoverState = "> 38 52 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.LastCoverState> 00 ( 01 <XGUnitNativeBase.LastCoverState> ) 16 16
  28. <!DebugLog> 70 1F <%t "XGAbility_Targeted: GetPrimaryTarget().m_eCoverState = "> 38 52 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.m_eCoverState> 00 ( 01 <XGUnitNativeBase.m_eCoverState> ) 16 16
  29. <!DebugLog> 70 1F <%t "XGAbility_Targeted: GetPrimaryTarget().LastCoverTypeUsed = "> 38 52 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.LastCoverTypeUsed> 00 ( 01 <XGUnitNativeBase.LastCoverTypeUsed> ) 16 16
  30. <!DebugLog> 70 1F <%t "XGAbility_Targeted: GetPrimaryTarget().m_bDashing = "> 38 54 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.m_bDashing> 00 ( 01 <XGUnitNativeBase.m_bDashing> ) 16 16
  31. <!DebugLog> 70 1F <%t "XGAbility_Targeted: GetPrimaryTarget().m_bSprinting = "> 38 54 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.m_bSprinting> 00 ( 01 <XGUnitNativeBase.m_bSprinting> ) 16 16
  32. <!DebugLog> 70 1F <%t "XGAbility_Targeted: GetPrimaryTarget().HasAirEvadeBonus() = "> 38 54 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.HasAirEvadeBonus.ReturnValue> 00 ( 1B <HasAirEvadeBonus> 16 ) 16 16
  33. <!DebugLog> 70 1F <%t "XGAbility_Targeted: GetPrimaryTarget().HasNoCoverBonus() = "> 38 54 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.HasNoCoverBonus.ReturnValue> 00 ( 1B <HasNoCoverBonus> 16 ) 16 16
  34.  
  35. 07 [@label_0x0019] 1B <HasProperty> 24 21 16
  36. 04 01 <@m_iHitChance>
  37. [#label_0x0019]
  38. 07 [@label_0x0058] 9A 1B <GetType> 16 2C 09 16
  39. 04 38 44 AB 38 3F 01 <@m_iHitChance> 12 20 <Class.XGTacticalGameCore> [@] <XGTacticalGameCoreNativeBase.UFO_PSI_LINK_SURVIVE> 00 ( 02 <XGTacticalGameCoreNativeBase.UFO_PSI_LINK_SURVIVE> ) 16
  40. [#label_0x0058]
  41. 07 [@label_0x0071] 72 01 <@m_kWeapon> 2A 16
  42. 04 01 <@m_iHitChance>
  43. [#label_0x0071]
  44. 07 [@label_0x008B] 72 1B <GetPrimaryTarget> 16 2A 16
  45. 04 01 <@m_iHitChance>
  46. [#label_0x008B]
  47. 0F 01 <@m_iHitChance_NonUnitTarget> 2C 00
  48. 07 [@label_0x02BD] 19 01 <@m_kWeapon> [@] <XGWeapon.HasProperty.ReturnValue> 00 ( 1B <HasProperty> 2C 02 16 )
  49. 07 [@label_0x02BD] 81 19 19 01 <XGAbility.m_kUnit> [@] <XGUnit.GetCharacter.ReturnValue> 00 ( 1B <GetCharacter> 16 ) [@] <XGCharacter.HasUpgrade.ReturnValue> 00 ( 1B <HasUpgrade> 2C 5E 16 ) 16
  50. 07 [@label_0x02BD] B1 E1 D8 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.GetLocation.ReturnValue> 00 ( 1B <GetLocation> 16 ) 19 01 <XGAbility.m_kUnit> [@] <XGUnitNativeBase.GetLocation.ReturnValue> 00 ( 1B <GetLocation> 16 ) 16 16 AB 38 3F 12 20 <Class.XGTacticalGameCore> [@] <XGTacticalGameCoreNativeBase.HQASSAULT_MIN_DAYS> 00 ( 02 <XGTacticalGameCoreNativeBase.HQASSAULT_MIN_DAYS> ) 38 3F 2C 40 16 16
  51. A2 1A 2C 01 19 01 <XGAbility.m_kUnit> [@] <XGUnitNativeBase.m_aCurrentStats> 00 ( 01 <XGUnitNativeBase.m_aCurrentStats> ) 38 44 AB AF AC E1 D8 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.GetLocation.ReturnValue> 00 ( 1B <GetLocation> 16 ) 19 01 <XGAbility.m_kUnit> [@] <XGUnitNativeBase.GetLocation.ReturnValue> 00 ( 1B <GetLocation> 16 ) 16 16 38 3F 2C 40 16 38 3F 12 20 <Class.XGTacticalGameCore> [@] <XGTacticalGameCoreNativeBase.HQASSAULT_MIN_DAYS> 00 ( 02 <XGTacticalGameCoreNativeBase.HQASSAULT_MIN_DAYS> ) 16 AC 38 3F 12 20 <Class.XGTacticalGameCore> [@] <XGTacticalGameCoreNativeBase.HQASSAULT_MAX_DAYS> 00 ( 02 <XGTacticalGameCoreNativeBase.HQASSAULT_MAX_DAYS> ) 38 3F 2C 0A 16 16 16
  52. A1 01 <@m_iHitChance_NonUnitTarget> 38 44 AB AF AC E1 D8 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.GetLocation.ReturnValue> 00 ( 1B <GetLocation> 16 ) 19 01 <XGAbility.m_kUnit> [@] <XGUnitNativeBase.GetLocation.ReturnValue> 00 ( 1B <GetLocation> 16 ) 16 16 38 3F 2C 40 16 38 3F 12 20 <Class.XGTacticalGameCore> [@] <XGTacticalGameCoreNativeBase.HQASSAULT_MIN_DAYS> 00 ( 02 <XGTacticalGameCoreNativeBase.HQASSAULT_MIN_DAYS> ) 16 AC 38 3F 12 20 <Class.XGTacticalGameCore> [@] <XGTacticalGameCoreNativeBase.HQASSAULT_MAX_DAYS> 00 ( 02 <XGTacticalGameCoreNativeBase.HQASSAULT_MAX_DAYS> ) 38 3F 2C 0A 16 16 16
  53. [#label_0x02BD]
  54. 07 [@label_0x035E] 82 19 01 <@m_kWeapon> [@] <XGWeapon.HasProperty.ReturnValue> 00 ( 1B <HasProperty> 2C 05 16 ) 18 [@] ( 19 01 <@m_kWeapon> [@] <XGWeapon.HasProperty.ReturnValue> 00 ( 1B <HasProperty> 2C 0B 16 ) 16 )
  55. 07 [@label_0x035E] 97 19 01 <XGAbility.m_kUnit> [@] <XGUnitNativeBase.m_iMovesActionsPerformed> 00 ( 01 <XGUnitNativeBase.m_iMovesActionsPerformed> ) 2C 00 16
  56. A2 1A 2C 01 19 01 <XGAbility.m_kUnit> [@] <XGUnitNativeBase.m_aCurrentStats> 00 ( 01 <XGUnitNativeBase.m_aCurrentStats> ) 2C 0A 16
  57. A1 01 <@m_iHitChance_NonUnitTarget> 2C 0A 16
  58. [#label_0x035E]
  59. 07 [@label_0x0489] 19 19 01 <XGAbility.m_kUnit> [@] <XGUnit.GetCharacter.ReturnValue> 00 ( 1B <GetCharacter> 16 ) [@] <XGCharacter.HasUpgrade.ReturnValue> 00 ( 1B <HasUpgrade> 2C 10 16 )
  60. 07 [@label_0x0489] 9A 38 3A 35 <XGTacticalGameCoreNativeBase.TCharacter.eClass> <XGTacticalGameCoreNativeBase.TCharacter> 00 00 19 19 01 <XGAbility.m_kUnit> [@] <XGUnit.GetCharacter.ReturnValue> 00 ( 1B <GetCharacter> 16 ) [@] <XGCharacter.m_kChar> 00 ( 01 <XGCharacter.m_kChar> ) 2C 01 16
  61. 07 [@label_0x0489] 99 19 01 <XGAbility.m_kUnit> [@] <XGUnitNativeBase.m_iMovesActionsPerformed> 00 ( 01 <XGUnitNativeBase.m_iMovesActionsPerformed> ) 2C 01 16
  62. 07 [@label_0x0489] 84 81 19 01 <@m_kWeapon> [@] <XGWeapon.HasProperty.ReturnValue> 00 ( 1B <HasProperty> 2C 10 16 ) 16 18 [@] ( 19 01 <XGAbility.m_kUnit> [@] <XGUnitNativeBase.m_bDoubleTapActivated> 00 ( 2D 01 <XGUnitNativeBase.m_bDoubleTapActivated> ) 16 )
  63. A1 1A 2C 01 19 01 <XGAbility.m_kUnit> [@] <XGUnitNativeBase.m_aCurrentStats> 00 ( 01 <XGUnitNativeBase.m_aCurrentStats> ) 2C 0A 16
  64. A2 01 <@m_iHitChance_NonUnitTarget> 2C 0A 16
  65. [#label_0x0489]
  66. 07 [@label_0x0518] 19 19 01 <XGAbility.m_kUnit> [@] <XGUnit.GetCharacter.ReturnValue> 00 ( 1B <GetCharacter> 16 ) [@] <XGCharacter.HasUpgrade.ReturnValue> 00 ( 1B <HasUpgrade> 2C 74 16 )
  67. 07 [@label_0x0518] 19 1B <GetPrimaryTarget> 16 [@] <XGUnit.IsFlying.ReturnValue> 00 ( 1B <IsFlying> 16 )
  68. A1 1A 2C 01 19 01 <XGAbility.m_kUnit> [@] <XGUnitNativeBase.m_aCurrentStats> 00 ( 01 <XGUnitNativeBase.m_aCurrentStats> ) 2C 0F 16
  69. A2 01 <@m_iHitChance_NonUnitTarget> 2C 0F 16
  70. [#label_0x0518]
  71. 07 [@label_0x05EE] 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.IsFlankedBy.ReturnValue> 00 ( 1B <IsFlankedBy> 01 <XGAbility.m_kUnit> 16 )
  72. 07 [@label_0x0599] 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.m_bInSmokeBomb> 00 ( 2D 01 <XGUnitNativeBase.m_bInDenseSmoke> )
  73. A2 1A 2C 01 19 01 <XGAbility.m_kUnit> [@] <XGUnitNativeBase.m_aCurrentStats> 00 ( 01 <XGUnitNativeBase.m_aCurrentStats> ) 2C 14 16
  74. A1 01 <@m_iHitChance_NonUnitTarget> 2C 14 16
  75. [#label_0x0599]
  76. 07 [@label_0x05EE] 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.m_bInSmokeBomb> 00 ( 2D 01 <XGUnitNativeBase.m_bInSmokeBomb> )
  77. A2 1A 2C 01 19 01 <XGAbility.m_kUnit> [@] <XGUnitNativeBase.m_aCurrentStats> 00 ( 01 <XGUnitNativeBase.m_aCurrentStats> ) 2C 14 16
  78. A1 01 <@m_iHitChance_NonUnitTarget> 2C 14 16
  79. [#label_0x05EE]
  80. 07 [@label_0x078C] 2D 01 <XGAbility.m_bReactionFire>
  81. 14 2D 01 <XGAbility.m_bReactionFire> 27
  82. //if (GetPrimaryTarget().IsMoving() && !GetPrimaryTarget().IsFlying())
  83. 07 [@label_A] 82 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.IsMoving.ReturnValue> 00 ( 1B <IsMoving> 16 ) 18 [@] ( 81 19 1B <GetPrimaryTarget> 16 [@] <XGUnit.IsFlying.ReturnValue> 00 ( 1B <IsFlying> 16 ) 16 16 )
  84. //if (GetPrimaryTarget().m_iBaseCoverValue != 0)
  85. 07 [@label_A] 9B 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.m_iBaseCoverValue> 00 ( 01 <XGUnitNativeBase.m_iBaseCoverValue> ) 25 16
  86. A1 1A 2C 01 19 01 <XGAbility.m_kUnit> [@] <XGUnitNativeBase.m_aCurrentStats> 00 ( 01 <XGUnitNativeBase.m_aCurrentStats> ) 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.m_iBaseCoverValue> 00 ( 01 <XGUnitNativeBase.m_iBaseCoverValue> ) 16
  87. A2 01 <@m_iHitChance_NonUnitTarget> 19 1B <GetPrimaryTarget> 16 [@] <XGUnitNativeBase.m_iBaseCoverValue> 00 ( 01 <XGUnitNativeBase.m_iBaseCoverValue> ) 16
  88. [#label_A]
  89. 0F 01 <@m_iHitChance> 1B <CalcHitChance> 16
  90. 0F 01 <@m_iHitChance> 1B <CalcHitModFromPerks> 01 <@m_iHitChance> 01 <@m_fDistanceToTarget> 01 <@m_bHasHeightAdvantage> 16
  91. 14 2D 01 <XGAbility.m_bReactionFire> 27
  92. A1 1A 2C 01 19 01 <XGAbility.m_kUnit> [@] <XGUnitNativeBase.m_aCurrentStats> 00 ( 01 <XGUnitNativeBase.m_aCurrentStats> ) 01 <@m_iHitChance_NonUnitTarget> 16
  93. 06 [@label_0x07FE]
  94. [#label_0x078C]
  95. 07 [@label_0x07FE] 9B 01 <@m_iHitChance_NonUnitTarget> 2C 00 16
  96. 0F 01 <@m_iHitChance> 1B <CalcHitChance> 16
  97. 0F 01 <@m_iHitChance> 1B <CalcHitModFromPerks> 01 <@m_iHitChance> 38 3F 2C 00 28 16
  98. A1 1A 2C 01 19 01 <XGAbility.m_kUnit> [@] <XGUnitNativeBase.m_aCurrentStats> 00 ( 01 <XGUnitNativeBase.m_aCurrentStats> ) 01 <@m_iHitChance_NonUnitTarget> 16
  99. [#label_0x07FE]
  100. 0F 01 <@m_iHitChance_NonUnitTarget> 2C 64
  101. <!DebugLog> 70 1F <%t "XGAbility_Targeted: m_iHitChance (adjusted) = "> 38 53 01 <@m_iHitChance> 16 16
  102. 04 01 <@m_iHitChance>
  103. 04 3A <.ReturnValue>
  104. 53
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement