Jump to content
Heathcliff™

[C++]Walking through your party members

Recommended Posts

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

Share this post


Link to post

@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.

Share this post


Link to post
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 4

Share this post


Link to post

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
  • Recently Browsing   0 members

    No registered users viewing this page.

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