peeking over an overhang doesn't work - add a little height to the firing location

rohan
Sep 11, 2022, 9:05 AM
CBG5GWG7Z4CZRZ4MQLZF6CCPDO7B2BBEBCSXTAWXLAHUGHAHENGQC

Dependencies

  • [2] VHVL5HH4 simplify far cover by starting at only the peek tile
  • [3] 6GNTEDE4 use real LOS functions to determine Far Cover (automatically accounts for roof edge protection)
  • [4] JSCVVDFD remove commented code and excess tabs
  • [*] X4IR7ZAH baseline from krumiro's [WotC] RW Realistic Aiming Angles

Change contents

  • replacement in RWRealisticAimingAnglesHL/Src/RWRealisticAimingAnglesHL/Classes/Override_X2AbilityToHitCalc_StandardAim.uc at line 770
    [3.634][2.57:164]()
    PeekHead = VisInfo.SourceTile; PeekHead.Z = `XWORLD.GetFloorTileZ(PeekHead) + UnitState.UnitHeight;
    [3.634]
    [3.859]
    PeekHead = VisInfo.SourceTile;
    `log("PeekTile:"@PeekHead.X@","@PeekHead.Y@","@PeekHead.Z, true, 'XCom_HitRolls');
    PeekHead.Z += 1;