Skip to content

Commit

Permalink
vmc matching on J
Browse files Browse the repository at this point in the history
  • Loading branch information
LagoLunatic committed Sep 2, 2024
1 parent e6a4022 commit 4761a20
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/d/actor/d_a_obj_vmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,18 @@ bool daObjVmc::Act_c::_execute() {

cXyz dist = dComIfGp_getLinkPlayer()->current.pos - current.pos;
if (!mLinkRangeCheck) {
#if VERSION == VERSION_JPN
if (dist.absXZ() > 110.0f)
#else
if (dist.absXZ() > 110.0f || dist.y < -500.0f || dist.y > 500.0f)
#endif
mLinkRangeCheck = true;
} else {
#if VERSION == VERSION_JPN
if (dist.absXZ() < 100.0f)
#else
if (dist.absXZ() < 100.0f && dist.y > -490.0f && dist.y < 490.0f)
#endif
mLinkRangeCheck = false;
}

Expand Down

0 comments on commit 4761a20

Please sign in to comment.