mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-15 23:50:38 +00:00
A ClassicAPI extension with the contract of retail's PlayerModel (CharacterModelBase) method of the same name. The kit is added next to the kits that the actor already shows. The actor's SetSpellVisualKit keeps retail's behaviour: it replaces the actor's one kit. The kit goes through Model::VisualKit::Apply, the same routine PlayerModel:ApplySpellVisualKit uses. This is the char-select ghost's kit step (0x004727F0) for any kit: the effect models hang at their attachments, and the tint and alpha procedures apply. The model owns the effects, so a looping kit stays until the model changes, and a oneShot kit stops when its sequence ends. HasAttachment waits for an unloaded model file, so a call made before the model has loaded is held in Actor::pendingKits and applied with SetSpellVisualKit's kit once the model loads.