Jump to content

Recommended Posts

  • Active Member

In GameLib/ActorInstanceCollisionDetection.cpp :

 

Add this to includes: 

#include "../UserInterface/AbstractPlayer.h"

Then in this function: 

BOOL CActorInstance::TestActorCollision(CActorInstance & rVictim)

Add this condition:

	if (IAbstractPlayer::GetSingleton().IsSamePartyMember(GetVirtualID(), rVictim.GetVirtualID()))
		return FALSE;

Not a big deal but it can be useful on guild wars and in some dungeons I think.

 

Regards

  • Love 6
Link to comment
https://metin2.dev/topic/22018-how-to-walking-through-your-tarty-members/
Share on other sites

  • Active+ Member

@Heathcliff™ I got some error when I tried to compile source:

Spoiler

source\gamelib\../UserInterface/AbstractPlayer.h(30): error C2061: syntax error : identifier 'TItemPos'

 

Above the error line you can see this code:

Spoiler

virtual bool	IsSamePartyMember(DWORD dwVID1, DWORD dwVID2) = 0;

 

so I think, problem is related with the IsSamePartyMember function.

I'll be always helpful!  😉

  • Forum Moderator
31 minutes ago, ReFresh said:

I got some error when I tried to compile source:


source\gamelib\../UserInterface/AbstractPlayer.h(30): error C2061: syntax error : identifier 'TItemPos'
  • UserInterface/AbstractPlayer.h

Try to include:

#include "GameType.h"

 

  • Love 5
  • 2 weeks later...

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



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.