Jump to content

Alpha channel for npcs


MrQuin

Recommended Posts

  • Contributor

This is the hidden content, please

Metin2 Download

This patch contains models textures with a clean alpha channel.
Preview of some of them when enabling specular:

gtBwQSE.png
L2ghunE.pngPPrNOJo.pngtp6jthH.jpegkNRT5MK.pngOKKlfg9.pnghEGP9hz.png

 

Download:

This is the hidden content, please

Edited by MrQuin
Core X - External 2 Internal
  • Metin2 Dev 81
  • kekw 1
  • Eyes 1
  • Facepalm 1
  • Scream 1
  • Good 21
  • Love 2
  • Love 39

My only accounts are here and on M2D, Don't trust anyone else from other shitty sites.
266868740522639360.png

Link to comment
Share on other sites

  • Contributor

* I updated the download link.

Preview:

Spoiler

enmrsCk.pngTI9O5jG.pngnjxEVyK.pngltkkBlk.pnggYRfMFT.png1dt94zW.png

Spoiler

jxOUrca.pngupa0yAv.png7r7WN8h.png7OziZAE.png9PbrIA5.pngOQHVZF4.png8I8gmb7.png.pngokFWC1v.pngrorsklv.pngxaMMVOs.pngbLRK6gy.pngiYHJjB1.pngyB49ikV.png5U8fOx0.pngqbDzsbx.pnghQnKvog.pngYNYAV7l.pngCBbQvjm.pngNFnEiE7.png1AAp8e1.pngS1ir8P0.pngSdI0bYf.pngWJv5SAQ.pngBkb5S8Z.pngsyUJmZX.pngpUQ5GTB.pngrD1JgES.pngcMNLe9Q.pngfJVwrU5.pngZvJgsZ9.png0I1kAgH.pngTC2cXtq.pngZXRbc4C.pngMpvO7Ma.pngux6TVSy.pngGMMpYH3.pngHXYygmN.png3Jce6ED.png48KeQDW.pngKDNric7.pngm2dev-99e7uj-Ie-Ac.png
m2dev-are-R3-E0rfs.pngm2dev-Dd-G5f-Cio7z.pngm2dev-f-Ht3m3-As-Wn.pngm2dev-GTMVJ0-OA9-T.pngm2dev-PTThc-YI3-Ww.pngm2dev-x-Dp1-Pt3-AE2.pngm2dev-yx-GYSp6-VK9.pngm2dev-z4-Fo-Cv-NJMR.png


The specular is more noticable in game.
* I'll update the rest later(lazy...)

Edited by MrQuin
Core X - External 2 Internal
  • Metin2 Dev 1
  • Love 1
  • Love 2

My only accounts are here and on M2D, Don't trust anyone else from other shitty sites.
266868740522639360.png

Link to comment
Share on other sites

  • Contributor

* Updated the download link again.
Now you can use the specular on all of the attachements.

Some previews(I'm done taking pictures 🤕 )

Spoiler

JXdNn76.pngahnlAlo.pnggHSW23F.pngtD4CayE.pngS4wdqO1.pngNswZkfS.pngorAuxH7.pngoAR9FQf.pngfx31pSh.png11SnPlo.pngq9uwLpl.pngKfIrtQ9.pngdwUFvMb.png

This is a list of the npcs used with:
https://pastebin.com/0Sjy3jfC

Edited by Metin2 Dev
Core X - External 2 Internal
  • Good 1
  • Love 1

My only accounts are here and on M2D, Don't trust anyone else from other shitty sites.
266868740522639360.png

Link to comment
Share on other sites

  • 2 weeks later...
  • Premium

[EDIT]:2 How can i make this?

Spoiler
void CActorInstance::SetShape(DWORD eShape, float fSpecular)
{
	
#ifdef ENABLE_NPC_SPECULAR
	
	FILE *fpr;
	char str[100];
	fpr = fopen("npc_specular.txt", "r");

	if (fpr == NULL) {
		return;
	}

	/*Loop for reading the file till end*/
	while (1)
	{
		if (fgets(str, 10, fpr) == NULL)
			break;
		else
			printf("%s", str);
			if (GetRace() == need_something_here_but_dont_know_what)
			{
				fSpecular = 1.0;
			}
	}
	/*Closing the input file after reading*/
	fclose(fpr);




#endif

....
}

 

 

Edited by EnKor
if pc.get_sex() == true and npc.get_sex() == false then
	npc.purge()
end

 

Link to comment
Share on other sites

  • Contributor

Thanks for sharing, love! 🙂

 

If anyone needs the code:

Lazy(and avoidable) version:

Spoiler
// in client_src/GameLib/ActorInstanceData.cpp
//find:
void CActorInstance::SetShape(DWORD eShape, float fSpecular)
{
	m_eShape = eShape;

	CRaceData * pRaceData;
	if (!CRaceManager::Instance().GetRaceDataPointer(m_eRace, &pRaceData))
		return;
 
// add it like this:
void CActorInstance::SetShape(DWORD eShape, float fSpecular)
{
	m_eShape = eShape;

	CRaceData * pRaceData;
	if (!CRaceManager::Instance().GetRaceDataPointer(m_eRace, &pRaceData))
		return;
// here
	if (!IsPC() && !fSpecular)
		fSpecular = 1.0f;

 

 

Dump_proto+binary version with MrQuin's mobs list:

This is the hidden content, please

This is the hidden content, please

If anyone needs a version with the data being loaded from locale, let me know, I've only done it this way cause that was the first idea I had.

Edited by Amun
+ internal download link
  • Metin2 Dev 37
  • kekw 1
  • Think 1
  • Good 5
  • Love 2
  • Love 12
Link to comment
Share on other sites

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.