Jump to content

Costume Weapon System


Recommended Posts

This is my error https://metin2.download/picture/UcfcqeTVF6gumtC15HCww9nQ69Y4q3m5/.gif

5a26ce8eeda38fc43a524686fc720239.gif

When I go on a mount costume weapons disappear, it appears, disappears and shows up again. And it should not be that way. Somewhere was the improvement to Suits of armor, but I can not find. HELP ME PLS :D

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...

Try this fix

Spoiler

bool CActorInstance::__IsLeftHandWeapon(DWORD type)
{
if (CItemData::WEAPON_DAGGER == type || (CItemData::WEAPON_FAN == type && __IsMountingHorse()))
return true;
else if (CItemData::WEAPON_BOW == type)
return true;


#ifdef ENABLE_COSTUME_WEAPON
else if (CItemData::COSTUME_WEAPON_DAGGER == type || (CItemData::COSTUME_WEAPON_FAN == type && __IsMountingHorse()))
return true;
else if (CItemData::COSTUME_WEAPON_BOW == type)
return true;
#endif
else
return false;
}


bool CActorInstance::__IsRightHandWeapon(DWORD type)
{
if (CItemData::WEAPON_DAGGER == type || (CItemData::WEAPON_FAN == type && __IsMountingHorse()))
return true;
else if (CItemData::WEAPON_BOW == type)
return false;
#ifdef ENABLE_COSTUME_WEAPON
else if (CItemData::COSTUME_WEAPON_DAGGER == type || (CItemData::COSTUME_WEAPON_FAN == type && __IsMountingHorse()))
return true;
else if (CItemData::COSTUME_WEAPON_BOW == type )
return false;
#endif
else 
return true;
}


bool CActorInstance::__IsWeaponTrace(DWORD weaponType)
{
switch(weaponType)
{
case CItemData::WEAPON_BELL:
case CItemData::WEAPON_FAN:
case CItemData::WEAPON_BOW:
#ifdef ENABLE_COSTUME_WEAPON
case CItemData::COSTUME_WEAPON_BELL:
case CItemData::COSTUME_WEAPON_FAN:
case CItemData::COSTUME_WEAPON_BOW:
#endif
return false;
default:
return true;


}
}

 

  • Love 1
Link to comment
Share on other sites

1 hour ago, Mr.Slime said:

Try this fix

  Reveal hidden contents


bool CActorInstance::__IsLeftHandWeapon(DWORD type)
{
if (CItemData::WEAPON_DAGGER == type || (CItemData::WEAPON_FAN == type && __IsMountingHorse()))
return true;
else if (CItemData::WEAPON_BOW == type)
return true;


#ifdef ENABLE_COSTUME_WEAPON
else if (CItemData::COSTUME_WEAPON_DAGGER == type || (CItemData::COSTUME_WEAPON_FAN == type && __IsMountingHorse()))
return true;
else if (CItemData::COSTUME_WEAPON_BOW == type)
return true;
#endif
else
return false;
}


bool CActorInstance::__IsRightHandWeapon(DWORD type)
{
if (CItemData::WEAPON_DAGGER == type || (CItemData::WEAPON_FAN == type && __IsMountingHorse()))
return true;
else if (CItemData::WEAPON_BOW == type)
return false;
#ifdef ENABLE_COSTUME_WEAPON
else if (CItemData::COSTUME_WEAPON_DAGGER == type || (CItemData::COSTUME_WEAPON_FAN == type && __IsMountingHorse()))
return true;
else if (CItemData::COSTUME_WEAPON_BOW == type )
return false;
#endif
else 
return true;
}


bool CActorInstance::__IsWeaponTrace(DWORD weaponType)
{
switch(weaponType)
{
case CItemData::WEAPON_BELL:
case CItemData::WEAPON_FAN:
case CItemData::WEAPON_BOW:
#ifdef ENABLE_COSTUME_WEAPON
case CItemData::COSTUME_WEAPON_BELL:
case CItemData::COSTUME_WEAPON_FAN:
case CItemData::COSTUME_WEAPON_BOW:
#endif
return false;
default:
return true;


}
}

 

Thank you but i alredy have that fix before i ask. but no fix.

2 hours ago, icewolf said:

its easy to fix but we don't know it :)

maby.. i think if is easy someone alredy have the fix..

Link to comment
Share on other sites

  • 2 months later...
  • 3 weeks later...
  • 4 weeks later...
  • 1 year later...
  • 2 years later...

Try this maybe if current

 

search char.cpp

WORD CHARACTER::GetOriginalPart(BYTE bPartPos) const

and paste

case PART_WEAPON:
		if (GetWear(WEAR_COSTUME_WEAPON) != 0)
		{
			return GetPart(PART_WEAPON);
		}
		return 0;

 

Edited by HUNgarocel1

spacer.png

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.