Premium WeedHex 636 Posted October 10, 2018 Premium Share Posted October 10, 2018 Hello, i need your help for a thing already asked in metin2dev but i couldn't use it. Someone have a way to: Hide weapon while emotion is acting? More better if you can do it from binary only. 1 Link to comment Share on other sites More sharing options...
Premium WeedHex 636 Posted October 12, 2018 Author Premium Share Posted October 12, 2018 UPP Link to comment Share on other sites More sharing options...
Forum Moderator Raylee 658 Posted October 14, 2018 Forum Moderator Share Posted October 14, 2018 On 10/10/2018 at 6:11 PM, WeedHex said: Hello, i need your help for a thing already asked in metin2dev but i couldn't use it. Someone have a way to: Hide weapon while emotion is acting? More better if you can do it from binary only. Do you tried this way? Best regards Raylee 1 Link to comment Share on other sites More sharing options...
Premium WeedHex 636 Posted October 14, 2018 Author Premium Share Posted October 14, 2018 5 hours ago, Raylee said: Do you tried this way? Best regards Raylee Yes, i was speaking about it, i can't install it bcs is unsafe... Bad way to do it. I Want to do only from binary, it's should be easy! Link to comment Share on other sites More sharing options...
Casawir 18 Posted October 28, 2018 Share Posted October 28, 2018 yes i did, but im not proud of my solution, and its not that short, u need to think about many cases what triggers and what can stop emotion ill post it later but its not quality code Link to comment Share on other sites More sharing options...
Honorable Member Solution xP3NG3Rx 19761 Posted October 28, 2018 Honorable Member Solution Share Posted October 28, 2018 AttackProcess(); MovementProcess(); m_GraphicThingInstance.MotionProcess(IsPC()); // Hide weapon: GetCurrentMotionIndex public version of the __GetCurrentMotionIndex in gamelib\\ActorInstance.h if (m_GraphicThingInstance.GetCurrentMotionIndex() < CRaceMotionData::NAME_CLAP || m_GraphicThingInstance.GetCurrentMotionIndex() == CRaceMotionData::NAME_DIG) { if (m_GraphicThingInstance.GetPartItemID(CRaceData::PART_WEAPON) != m_adwPart[CRaceData::PART_WEAPON]) { m_GraphicThingInstance.AttachWeapon(m_adwPart[CRaceData::PART_WEAPON]); CItemData* pItemData; if (CItemManager::Instance().GetItemDataPointer(m_adwPart[CRaceData::PART_WEAPON], &pItemData)) __GetRefinedEffect(pItemData); } } else if (m_GraphicThingInstance.GetPartItemID(CRaceData::PART_WEAPON)) { m_GraphicThingInstance.AttachWeapon(0); __ClearWeaponRefineEffect(); } // EOF Hide weapon if (IsMountingHorse()) { m_kHorse.m_pkActor->HORSE_MotionProcess(FALSE); } Give a try with this, just put in the CInstanceBase::Update make it fit over there, and don't forget to make a public function for the GetCurrentMotionIndex. 1 3 Link to comment Share on other sites More sharing options...
M.Sorin 284 Posted October 30, 2018 Share Posted October 30, 2018 On 10/28/2018 at 9:05 PM, xP3NG3Rx said: AttackProcess(); MovementProcess(); m_GraphicThingInstance.MotionProcess(IsPC()); // Hide weapon: GetCurrentMotionIndex public version of the __GetCurrentMotionIndex in gamelib\\ActorInstance.h if (m_GraphicThingInstance.GetCurrentMotionIndex() < CRaceMotionData::NAME_CLAP || m_GraphicThingInstance.GetCurrentMotionIndex() == CRaceMotionData::NAME_DIG) { if (m_GraphicThingInstance.GetPartItemID(CRaceData::PART_WEAPON) != m_adwPart[CRaceData::PART_WEAPON]) { m_GraphicThingInstance.AttachWeapon(m_adwPart[CRaceData::PART_WEAPON]); CItemData* pItemData; if (CItemManager::Instance().GetItemDataPointer(m_adwPart[CRaceData::PART_WEAPON], &pItemData)) __GetRefinedEffect(pItemData); } } else if (m_GraphicThingInstance.GetPartItemID(CRaceData::PART_WEAPON)) { m_GraphicThingInstance.AttachWeapon(0); __ClearWeaponRefineEffect(); } // EOF Hide weapon if (IsMountingHorse()) { m_kHorse.m_pkActor->HORSE_MotionProcess(FALSE); } Give a try with this, just put in the CInstanceBase::Update make it fit over there, and don't forget to make a public function for the GetCurrentMotionIndex. You have one error in this code. This part: if (m_GraphicThingInstance.GetPartItemID(CRaceData::PART_WEAPON) != m_adwPart[CRaceData::PART_WEAPON]) Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19761 Posted October 30, 2018 Honorable Member Share Posted October 30, 2018 What do you mean? Link to comment Share on other sites More sharing options...
M.Sorin 284 Posted October 30, 2018 Share Posted October 30, 2018 (edited) 43 minutes ago, xP3NG3Rx said: What do you mean? https://metin2.download/picture/7V01Op768kDUmMTvl3xJ5n98wI1r7lTU/.png https://metin2.download/picture/Kt5vzdtI9wEklie1NkMA6fWVkMR179uT/.png Or they are from my shite visual studio xD Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19761 Posted October 30, 2018 Honorable Member Share Posted October 30, 2018 I changed the type of the array, and his name also from m_awPart to m_adwPart, I thought this isn't a big deal. Link to comment Share on other sites More sharing options...
Active Member ReFresh 2350 Posted November 7, 2018 Active Member Share Posted November 7, 2018 @xP3NG3Rx and don't forget to make a public function for the GetCurrentMotionIndex. How to do it? I'll be always helpful! Link to comment Share on other sites More sharing options...
Exonow 0 Posted November 13, 2018 Share Posted November 13, 2018 up Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19761 Posted November 13, 2018 Honorable Member Share Posted November 13, 2018 (edited) What "up"? Is that really difficult to make a function to public from private? Hm. Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 1 2 Link to comment Share on other sites More sharing options...
Premium TAUMP 855 Posted November 13, 2018 Premium Share Posted November 13, 2018 (edited) 22 minutes ago, xP3NG3Rx said: What "up"? Is that really difficult to make a function to public from private? Hm. Now they want 100% part of code on screen haha Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 2 Link to comment Share on other sites More sharing options...
sxvoyz 61 Posted November 13, 2018 Share Posted November 13, 2018 (edited) Dnia 7.11.2018 o 19:22, ReFresh napisał: @xP3NG3Rx and don't forget to make a public function for the GetCurrentMotionIndex. How to do it? Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 1 1 Link to comment Share on other sites More sharing options...
Active Member ReFresh 2350 Posted November 17, 2018 Active Member Share Posted November 17, 2018 @xP3NG3Rx Your solution for hide weapon caused a little visual bug. You can see this bug when you buff yourself or another player. Skills are casted more faster than animation. I'll be always helpful! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now