Fix lantern glow rendering and add NPC combat animations

Disable depth testing for additive/mod blend mode batches so glow quads
render as proper light halos instead of visible transparent discs. Add
NPC swing callback to play attack animation (anim 16) when NPCs melee
in single-player combat.
This commit is contained in:
Kelsi 2026-02-06 03:39:36 -08:00
parent f74c37ba74
commit 273245720a
4 changed files with 25 additions and 1 deletions

View file

@ -1135,6 +1135,12 @@ void Application::spawnNpcs() {
cr->playAnimation(instanceId, 1, false); // animation ID 1 = Death
}
});
gameHandler->setNpcSwingCallback([npcMgr, cr](uint64_t guid) {
uint32_t instanceId = npcMgr->findRenderInstanceId(guid);
if (instanceId != 0 && cr) {
cr->playAnimation(instanceId, 16, false); // animation ID 16 = Attack1
}
});
}
npcsSpawned = true;