Jump to content
  • Join-Us

    https://metin2.dev is the 1st international community on Metin2 development. Join us to develop your skills and share your knowledge with the community, respectful and ethical forum.

  • 0

3ds max - character and weapon


blaxis

Question

8 answers to this question

Recommended Posts

  • 0
10 hours ago, decimus said:

why do you want to combine a character and a weapon?

Is he an NPC?

Anyway, I need the crack of 2018 to show you

Yes, I will use it as an npc. Do you need 3dsmax 2018 crack? If you can give me Discord I can add you. Thank you very much.

Link to comment
Share on other sites

  • 0

You could always just treat that specific NPC like a PC through ::SetRace in ActorInstanceData(register all the body parts) and add the part like it's attaching an actual weapon to the model.
Here's how I did it:

Spoiler
case NRaceData::ATTACHING_DATA_TYPE_WEAPON:
			{
				CGraphicThing * m_pModelThing = (CGraphicThing *)CResourceManager::Instance().GetResourcePointer(c_pAttachingData->pWeaponData->strFileName.c_str());
				
				RegisterModelThing(CRaceData::PART_WEAPON, m_pModelThing);
				SetModelInstance(CRaceData::PART_WEAPON, CRaceData::PART_WEAPON, 0);
				AttachModelInstance(CRaceData::PART_MAIN, c_pAttachingData->strAttachingBoneName.c_str(), CRaceData::PART_WEAPON);
				break;
			}

 

 

  • Love 1
Link to comment
Share on other sites

  • 0
10 hours ago, boaspessoal said:

You could always just treat that specific NPC like a PC through ::SetRace in ActorInstanceData(register all the body parts) and add the part like it's attaching an actual weapon to the model.
Here's how I did it:

  Hide contents
case NRaceData::ATTACHING_DATA_TYPE_WEAPON:
			{
				CGraphicThing * m_pModelThing = (CGraphicThing *)CResourceManager::Instance().GetResourcePointer(c_pAttachingData->pWeaponData->strFileName.c_str());
				
				RegisterModelThing(CRaceData::PART_WEAPON, m_pModelThing);
				SetModelInstance(CRaceData::PART_WEAPON, CRaceData::PART_WEAPON, 0);
				AttachModelInstance(CRaceData::PART_MAIN, c_pAttachingData->strAttachingBoneName.c_str(), CRaceData::PART_WEAPON);
				break;
			}

 

 

Thank you very much bro. Does it work like this?
And where exactly do I need to add this?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


!-->
×
×
  • 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.