Skip to content

Commit

Permalink
Ref #198 fix crash with manual trigger coll. fix
Browse files Browse the repository at this point in the history
  • Loading branch information
szapp committed Oct 12, 2019
1 parent c5917a6 commit 08535d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _work/data/Scripts/Content/GFA/_intern/collision.d
Expand Up @@ -603,7 +603,7 @@ func void GFA_ExtendCollisionCheckNpc() {
// Skip checks for shooter and target
MemoryProtectionOverride(oCAIArrow__CanThisCollideWith_skipCheck, 2);
MEM_WriteByte(oCAIArrow__CanThisCollideWith_skipCheck, /*EB*/ 235); // jmp 0x6A14F0
MEM_WriteByte(oCAIArrow__CanThisCollideWith_skipCheck+1, /*5A*/ 90); // 0x6A14F0-0x6A1494-2
MEM_WriteByte(oCAIArrow__CanThisCollideWith_skipCheck+1, /*57*/ 87); // 0x6A14F0-0x6A1497-2

// Re-add these checks later (after ignore list iteration and Daedalus hook)
ASM_Open(42);
Expand Down
2 changes: 1 addition & 1 deletion _work/data/Scripts/Content/GFA/_intern/offsets_G2.d
Expand Up @@ -103,7 +103,7 @@ const int oCAIArrowBase__ReportCollisionToAI_PFXon2 = 6949396; //0x6A0A14
const int oCAIArrowBase__ReportCollisionToAI_collNpc = 6949734; //0x6A0B66
const int oCAIArrow__ReportCollisionToAI_destroyPrj = 0; // Does not exist in Gothic 2
const int oCAIArrow__ReportCollisionToAI_keepPlyStrp = 0; // Does not exist in Gothic 2
const int oCAIArrow__CanThisCollideWith_skipCheck = 6952084; //0x6A1494
const int oCAIArrow__CanThisCollideWith_skipCheck = 6952087; //0x6A1497
const int oCAIArrow__CanThisCollideWith_npcShooter = 6952106; //0x6A14AA
const int oCAIHuman__MagicMode_g2ctrlCheck = 4665380; //0x473024
const int oCAIHuman__BowMode_g2ctrlCheck = 6905643; //0x695F2B
Expand Down

0 comments on commit 08535d7

Please sign in to comment.