Honorable Member Distraught 5903 Posted December 6, 2020 Honorable Member Share Posted December 6, 2020 (edited) There's a bug in the game if you have like an NPC and you set its opacity to less then 1.0 and attach effects to it and the effects are inside the model. The effect will not be rendered because the effect rendering is after character rendering so when it's stenciling it, it won't know what should be seen behind the model. To fix this we just have to pre-render the effects in this case. To achieve this add this code to the beginning of CActorInstance::OnRender if (GetAlphaValue() < 1.0f) { for (auto it = m_AttachingEffectList.begin(); it != m_AttachingEffectList.end(); ++it) { CEffectManager::Instance().SelectEffectInstance(it->dwEffectIndex); CEffectManager::Instance().RenderEffect(); } } and add a new method to CEffectManager in EffectLib/EffectManager.h: void RenderEffect(); and for sure define it in EffectManager.cpp void CEffectManager::RenderEffect() { if (!m_pSelectedEffectInstance) return; m_pSelectedEffectInstance->Render(); } Now you can create eg. mounts with effects like this: Hope you like it and will be useful! Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 1 15 Link to comment Share on other sites More sharing options...
Contributor MrQuin 6401 Posted December 6, 2020 Contributor Share Posted December 6, 2020 #Distraught_Dev_Tag 5 My only accounts are here and on M2D, Don't trust anyone else from other shitty sites. Link to comment Share on other sites More sharing options...
Management AZICKO 7340 Posted December 7, 2020 Management Share Posted December 7, 2020 9 hours ago, MrQuin said: #Distraught_Dev_Tag It's done. 2 Scamming ? Reselling ? metin2.download | metin2.dev | fr.metin2.dev | metin2dev.org | metin2.top | top-metin2.org Link to comment Share on other sites More sharing options...
Honorable Member Distraught 5903 Posted December 7, 2020 Author Honorable Member Share Posted December 7, 2020 1 hour ago, ASIKOO said: It's done. Oh, thank you 2 1 Link to comment Share on other sites More sharing options...
Active Member ReFresh 2339 Posted January 3, 2022 Active Member Share Posted January 3, 2022 (edited) @ Distraught Thanks for the release, but it will make a visual bug in character select. You can see the select target on characters. Edited December 27, 2023 by ReFresh Core X - External 2 Internal I'll be always helpful! Link to comment Share on other sites More sharing options...
Recommended Posts