mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Add 3D level-up effect using LevelUp.m2 spell model
Replace 2D screen-space ding rings with real WoW LevelUp.m2 particle/geometry effect. Fix FBlock particle color parsing (C3Vector floats, not CImVector bytes) which was producing blue/red instead of golden yellow. Spell effect models bypass particle dampeners, glow sprite conversion, Mod→Additive blend override, and all collision (floor/wall/camera) to prevent camera zoom-in. Other players' level-ups trigger the 3D effect at their position with group chat notification. F7 hotkey for testing.
This commit is contained in:
parent
1fb1daea7f
commit
da49593268
13 changed files with 321 additions and 128 deletions
|
|
@ -4594,7 +4594,16 @@ void GameHandler::handleUpdateObject(network::Packet& packet) {
|
|||
}
|
||||
}
|
||||
}
|
||||
} else if (key == ufLevel) { unit->setLevel(val); }
|
||||
} else if (key == ufLevel) {
|
||||
uint32_t oldLvl = unit->getLevel();
|
||||
unit->setLevel(val);
|
||||
if (block.guid != playerGuid &&
|
||||
entity->getType() == ObjectType::PLAYER &&
|
||||
val > oldLvl && oldLvl > 0 &&
|
||||
otherPlayerLevelUpCallback_) {
|
||||
otherPlayerLevelUpCallback_(block.guid, val);
|
||||
}
|
||||
}
|
||||
else if (key == ufFaction) {
|
||||
unit->setFactionTemplate(val);
|
||||
unit->setHostile(isHostileFaction(val));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue