mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-25 00:20:16 +00:00
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:
parent
74bcce4f57
commit
81b1f87313
4 changed files with 25 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue