client: AVA2 wolfman character (ENABLE_WOLFMAN_CHARACTER=1)

Race 8 claw motion mode, skill motions 170-175, claw weapon attach,
ANTI_WOLFMAN item flag; tools/server/wolfman/make_items.py writes the
server item rows. ENABLE_VIEW_TARGET_DECIMAL_HP back to 0: GC_TARGET only
carries bHPPercent, so the 4-argument root SetHPTargetBoard raised a
TypeError on every target. Version gate stays mt20261027 (no packet change).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-10-24 16:32:48 +09:00
co-authored by Claude Opus 5.5
parent 1a4d8295ff
commit fa6b8b68db
18 changed files with 197 additions and 8 deletions
@@ -76,6 +76,17 @@ void CActorInstance::MotionEventProcess(DWORD dwcurFrame, int iIndex, const CRac
case CRaceMotionData::MOTION_EVENT_TYPE_WARP:
#ifndef WORLD_EDITOR
ProcessMotionEventWarp(c_pData);
#endif
break;
case CRaceMotionData::MOTION_EVENT_TYPE_UNK11:
#ifndef WORLD_EDITOR
ProcessMotionEventUnk11(dwcurFrame, iIndex, c_pData);
#endif
break;
case CRaceMotionData::MOTION_EVENT_TYPE_UNK12:
#ifndef WORLD_EDITOR
ProcessMotionEventUnk12(dwcurFrame, iIndex, c_pData);
#endif
break;
}
@@ -329,3 +340,35 @@ void CActorInstance::ProcessMotionEventWarp(const CRaceMotionData::TMotionEventD
//TraceError("ActorInstance::ProcessMotionEventFly No Target");
}
}
void CActorInstance::ProcessMotionEventUnk11(DWORD dwcurFrame, int iIndex, const CRaceMotionData::TMotionEventData * c_pData) // AniSpeed ON
{
if (CRaceMotionData::MOTION_EVENT_TYPE_UNK11 != c_pData->iType)
return;
const CRaceMotionData::TMotionUnk11EventData * c_pUnk11TargetData = (const CRaceMotionData::TMotionUnk11EventData *)c_pData;
static const float sc_fDistanceFromTarget = 270.0f;
if (m_kFlyTarget.IsValidTarget())
{
D3DXVECTOR3 v3MainPosition(m_x, m_y, m_z);
const D3DXVECTOR3 & c_rv3TargetPosition = __GetFlyTargetPosition();
D3DXVECTOR3 v3Distance = c_rv3TargetPosition - v3MainPosition;
D3DXVec3Normalize(&v3Distance, &v3Distance);
TPixelPosition DestPixelPosition = c_rv3TargetPosition - (v3Distance * (sc_fDistanceFromTarget+c_pUnk11TargetData->iAniSpeed));
IBackground& rkBG=GetBackground();
if (!rkBG.IsBlock(DestPixelPosition.x, -DestPixelPosition.y))
SetPixelPosition(DestPixelPosition);
LookAt(c_rv3TargetPosition.x, c_rv3TargetPosition.y);
__OnWarp();
}
}
void CActorInstance::ProcessMotionEventUnk12(DWORD dwcurFrame, int iIndex, const CRaceMotionData::TMotionEventData * c_pData) // AniSpeed OFF
{
}