Level 120: autohunt large targets, boss hit range, QUEST_INFO size

- QUEST_INFO: take the full packet size from the flags (server built it short)
- Bosses get the huge-race 500 centre hit test, like AVA2 IsBoss()
- Autohunt: defending reach as body size for large targets, walk straight
  at a body in reach when the planner finds no path, escalating skip for a
  target it keeps stalling on, new anchor after a teleport, immune skip only
  on an explicit 0-damage packet
- ava2-dungeons README: hydra range notes, snow key stack note

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-10-17 11:59:54 +09:00
co-authored by Claude Opus 5.5
parent a1e7da68a4
commit 569afb1378
11 changed files with 189 additions and 43 deletions
+7 -4
View File
@@ -757,9 +757,10 @@ class CPythonPlayer : public CSingleton<CPythonPlayer>, public IAbstractPlayer
bool __AutoHunt_CastSkill(DWORD slot, float now);
bool __AutoHunt_UpdateMount(CInstanceBase& main, float now);
bool __AutoHunt_UpdateRecovery(CInstanceBase& main, float now);
bool __AutoHunt_BuildPath(const TPixelPosition& goal, float arrival, std::vector<TPixelPosition>& path);
bool __AutoHunt_MoveTo(const TPixelPosition& goal, float arrival, float now);
bool __AutoHunt_BuildPath(const TPixelPosition& goal, float arrival, std::vector<TPixelPosition>& path, float body = 0.f);
bool __AutoHunt_MoveTo(const TPixelPosition& goal, float arrival, float now, float body = 0.f);
void __AutoHunt_ResetMovement();
void __AutoHunt_WalkAt(CInstanceBase& main, const TPixelPosition& goal, float now);
void __AutoHunt_MigrateSkills();
bool __AutoHunt_IsTargetAllowed(CInstanceBase& main, CInstanceBase& target); // PORT extension
DWORD __AutoHunt_FindCloseTarget(CInstanceBase& main, int* count = nullptr);
@@ -786,18 +787,19 @@ class CPythonPlayer : public CSingleton<CPythonPlayer>, public IAbstractPlayer
TPixelPosition m_kAutoHuntPathGoal = {}, m_kAutoHuntPathLastPosition = {};
DWORD m_dwAutoHuntScanTarget = 0;
float m_fAutoHuntTargetScanTime = 0;
float m_fAutoHuntPathTime = 0, m_fAutoHuntPathMoveTime = 0;
float m_fAutoHuntPathTime = 0, m_fAutoHuntPathMoveTime = 0, m_fAutoHuntDirectUntil = 0;
SAutoHuntConfig m_kAutoHuntConfig;
bool m_isAutoHuntConfigLoaded;
int m_eAutoHuntState;
int m_eAutoHuntStopReason;
TPixelPosition m_kPPosAutoHuntAnchor;
TPixelPosition m_kPPosAutoHuntLast; // position at the previous update, to notice a teleport
std::string m_stAutoHuntMapName;
float m_fAutoHuntResumeTime;
DWORD m_dwAutoHuntTargetVID;
float m_fAutoHuntStateTime; // when the current target / item / state began
float m_fAutoHuntProgressTime; // last time the target got closer or was hit
float m_fAutoHuntFirstHitTime; // first hit on the target, 0 before it
float m_fAutoHuntFirstHitTime; // first blocked (damage 0) hit on the target, 0 before it
float m_fAutoHuntDamageTime; // last hit on the target that did damage
float m_fAutoHuntBestDistance;
float m_fAutoHuntNextActionTime;
@@ -807,6 +809,7 @@ class CPythonPlayer : public CSingleton<CPythonPlayer>, public IAbstractPlayer
bool m_isAutoHuntNoHPPotion;
bool m_isAutoHuntNoSPPotion;
std::map<DWORD, float> m_kMap_dwAutoHuntSkipVID; // actor vid -> ignored until
std::map<DWORD, int> m_kMap_dwAutoHuntStallCount; // actor vid -> engagements that made no progress
std::map<DWORD, float> m_kMap_dwAutoHuntSkipItem; // ground item vid -> ignored until
bool m_isAutoHuntGathering;
float m_fAutoHuntGatherStartTime;