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
+1 -1
View File
@@ -7,7 +7,7 @@
enum
{
MAIN_RACE_MAX_NUM = 8,
MAIN_RACE_MAX_NUM = 9, // PORT: + wolfman (race 8)
};
void CActorInstance::INSTANCEBASE_Deform()
+2
View File
@@ -588,6 +588,8 @@ class CActorInstance : public IActorInstance, public IFlyTargetableObject
void ProcessMotionEventSound(const CRaceMotionData::TMotionEventData * c_pData);
void ProcessMotionEventFly(const CRaceMotionData::TMotionEventData * c_pData);
void ProcessMotionEventWarp(const CRaceMotionData::TMotionEventData * c_pData);
void ProcessMotionEventUnk11(DWORD dwcurFrame, int iIndex, const CRaceMotionData::TMotionEventData * c_pData);
void ProcessMotionEventUnk12(DWORD dwcurFrame, int iIndex, const CRaceMotionData::TMotionEventData * c_pData);
void AddMovement(float fx, float fy, float fz);
+4
View File
@@ -107,6 +107,8 @@ bool CActorInstance::__IsLeftHandWeapon(DWORD type)
return true;
else if (CItemData::WEAPON_BOW == type)
return true;
else if (CItemData::WEAPON_CLAW == type)
return true;
else
return false;
}
@@ -117,6 +119,8 @@ bool CActorInstance::__IsRightHandWeapon(DWORD type)
return true;
else if (CItemData::WEAPON_BOW == type)
return false;
else if (CItemData::WEAPON_CLAW == type)
return true;
else
return true;
}
+2
View File
@@ -444,10 +444,12 @@ BOOL CActorInstance::IsActEmotion()
case CRaceMotionData::NAME_FRENCH_KISS_START+1:
case CRaceMotionData::NAME_FRENCH_KISS_START+2:
case CRaceMotionData::NAME_FRENCH_KISS_START+3:
case CRaceMotionData::NAME_FRENCH_KISS_START+4:
case CRaceMotionData::NAME_KISS_START+0:
case CRaceMotionData::NAME_KISS_START+1:
case CRaceMotionData::NAME_KISS_START+2:
case CRaceMotionData::NAME_KISS_START+3:
case CRaceMotionData::NAME_KISS_START+4:
return TRUE;
break;
}
+7
View File
@@ -519,18 +519,22 @@ BOOL CActorInstance::isLock()
case CRaceMotionData::NAME_KISS_WITH_ASSASSIN:
case CRaceMotionData::NAME_KISS_WITH_SURA:
case CRaceMotionData::NAME_KISS_WITH_SHAMAN:
case CRaceMotionData::NAME_KISS_WITH_WOLFMAN:
case CRaceMotionData::NAME_FRENCH_KISS_WITH_WARRIOR:
case CRaceMotionData::NAME_FRENCH_KISS_WITH_ASSASSIN:
case CRaceMotionData::NAME_FRENCH_KISS_WITH_SURA:
case CRaceMotionData::NAME_FRENCH_KISS_WITH_SHAMAN:
case CRaceMotionData::NAME_FRENCH_KISS_WITH_WOLFMAN:
case CRaceMotionData::NAME_SLAP_HIT_WITH_WARRIOR:
case CRaceMotionData::NAME_SLAP_HIT_WITH_ASSASSIN:
case CRaceMotionData::NAME_SLAP_HIT_WITH_SURA:
case CRaceMotionData::NAME_SLAP_HIT_WITH_SHAMAN:
case CRaceMotionData::NAME_SLAP_HIT_WITH_WOLFMAN:
case CRaceMotionData::NAME_SLAP_HURT_WITH_WARRIOR:
case CRaceMotionData::NAME_SLAP_HURT_WITH_ASSASSIN:
case CRaceMotionData::NAME_SLAP_HURT_WITH_SURA:
case CRaceMotionData::NAME_SLAP_HURT_WITH_SHAMAN:
case CRaceMotionData::NAME_SLAP_HURT_WITH_WOLFMAN:
return TRUE;
break;
}
@@ -836,6 +840,9 @@ bool CActorInstance::__IsNeedFlyTargetMotion()
if (!m_pkCurRaceMotionData->GetMotionEventDataPointer(i, &c_pData))
continue;
if (c_pData->iType == CRaceMotionData::MOTION_EVENT_TYPE_UNK11)
return true;
if (c_pData->iType == CRaceMotionData::MOTION_EVENT_TYPE_WARP)
return true;
@@ -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
{
}
+1 -1
View File
@@ -216,7 +216,7 @@ void CItemData::SetItemTableData(TItemTable * pItemTable)
}
// PORT: AVA2 ItemData.cpp SetItemScale/GetItemScale. The position columns are dropped: AVA2 feeds
// them to SetScalePosition, which its deform never reads. JOB_WOLFMAN rows are skipped (no wolfman).
// them to SetScalePosition, which its deform never reads.
void CItemData::SetItemScale(const std::string & strJob, const std::string & strSex, const std::string & strScaleX, const std::string & strScaleY, const std::string & strScaleZ)
{
DWORD dwPos;
+1
View File
@@ -132,6 +132,7 @@ BOOL CRaceData::GetMotionKey(WORD wMotionModeIndex, WORD wMotionIndex, MOTION_KE
case CRaceMotionData::MODE_HORSE_FAN:
case CRaceMotionData::MODE_HORSE_BELL:
case CRaceMotionData::MODE_HORSE_BOW:
case CRaceMotionData::MODE_HORSE_CLAW:
wGeneralMode=CRaceMotionData::MODE_HORSE;
break;
+10
View File
@@ -89,18 +89,22 @@ void CRaceMotionData::SetName(UINT eName)
case NAME_KISS_WITH_ASSASSIN:
case NAME_KISS_WITH_SURA:
case NAME_KISS_WITH_SHAMAN:
case NAME_KISS_WITH_WOLFMAN:
case NAME_FRENCH_KISS_WITH_WARRIOR:
case NAME_FRENCH_KISS_WITH_ASSASSIN:
case NAME_FRENCH_KISS_WITH_SURA:
case NAME_FRENCH_KISS_WITH_SHAMAN:
case NAME_FRENCH_KISS_WITH_WOLFMAN:
case NAME_SLAP_HIT_WITH_WARRIOR:
case NAME_SLAP_HIT_WITH_ASSASSIN:
case NAME_SLAP_HIT_WITH_SURA:
case NAME_SLAP_HIT_WITH_SHAMAN:
case NAME_SLAP_HIT_WITH_WOLFMAN:
case NAME_SLAP_HURT_WITH_WARRIOR:
case NAME_SLAP_HURT_WITH_ASSASSIN:
case NAME_SLAP_HURT_WITH_SURA:
case NAME_SLAP_HURT_WITH_SHAMAN:
case NAME_SLAP_HURT_WITH_WOLFMAN:
case NAME_DIG:
SetType(TYPE_EVENT);
break;
@@ -436,6 +440,12 @@ bool CRaceMotionData::LoadMotionData(const char * c_szFileName)
case MOTION_EVENT_TYPE_EFFECT_TO_TARGET:
pData = new TMotionEffectToTargetEventData;
break;
case MOTION_EVENT_TYPE_UNK11:
pData = new TMotionUnk11EventData;
break;
case MOTION_EVENT_TYPE_UNK12:
pData = new TMotionUnk12EventData;
break;
default:
assert(!" CRaceMotionData::LoadMotionData - Strange Event Type");
return false;
+4
View File
@@ -178,6 +178,8 @@ class CRaceMotionData
MOTION_EVENT_TYPE_CHARACTER_HIDE,
MOTION_EVENT_TYPE_WARP,
MOTION_EVENT_TYPE_EFFECT_TO_TARGET,
MOTION_EVENT_TYPE_UNK11, // wolfman: warp next to the fly target (BaseVelocity)
MOTION_EVENT_TYPE_UNK12,
MOTION_EVENT_TYPE_MAX_NUM,
};
@@ -200,6 +202,8 @@ class CRaceMotionData
typedef struct NMotionEvent::SMotionEventDataCharacterHide TMotionCharacterHideEventData;
typedef struct NMotionEvent::SMotionEventDataWarp TMotionWarpEventData;
typedef struct NMotionEvent::SMotionEventDataEffectToTarget TMotionEffectToTargetEventData;
typedef struct NMotionEvent::SMotionEventDataUnk11 TMotionUnk11EventData;
typedef struct NMotionEvent::SMotionEventDataUnk12 TMotionUnk12EventData;
typedef std::vector<TMotionEventData*> TMotionEventDataVector;
public:
+34
View File
@@ -287,4 +287,38 @@ namespace NMotionEvent
void Save(FILE * File, int iTabs) {}
void Load() {}
} TMotionWarpEventData;
// Unk11 AniSpeed (wolfman, type 11)
typedef struct SMotionEventDataUnk11 : public SMotionEventData
{
int iAniSpeed;
SMotionEventDataUnk11() {}
virtual ~SMotionEventDataUnk11() {}
void Save(FILE * File, int iTabs)
{
PrintfTabs(File, iTabs, "\n");
PrintfTabs(File, iTabs, "BaseVelocity \"%d\"\n", iAniSpeed);
}
bool Load(CTextFileLoader & rTextFileLoader)
{
if (!rTextFileLoader.GetTokenInteger("basevelocity", &iAniSpeed))
return false;
return true;
}
} TMotionEventDataUnk11;
// Unk12 (wolfman, type 12)
typedef struct SMotionEventDataUnk12 : public SMotionEventData
{
int iAniSpeed;
SMotionEventDataUnk12() {}
virtual ~SMotionEventDataUnk12() {}
void Save(FILE * File, int iTabs) {}
void Load() {}
} TMotionEventDataUnk12;
};