Jump to content

Stop collision with arguments /visual studio help


Recommended Posts

Hello!
I need some help.
So I put a system called "Stop collision with arguments" into visual studio.
It works on the basic maps, in every empire, but i don't know how to make it work with the other maps.
If I just type in the name of the map,  it will not accept it. (it will still have collision)
For me, it's simply in patch eix/epk, not in season eix/epk.
I've already typed in every ID for the mobs.
I've tried almost everything, but i don't have any more ideas.
Any tips?
I attached a picture to let you guys know what i mean.
Thanks in advance!

paintezni.PNG

Link to comment
Share on other sites

  • Forum Moderator

You can try it like this.

BOOL CActorInstance::TestActorCollision(CActorInstance & rVictim)
{
	[........................]
	const std::string c_rstrAtlasMapNames[] =
	{
		"metin2_map_a1",
		"metin2_map_a3",
		"metin2_map_b1",
		"metin2_map_b3",
		"metin2_map_c1",
		"metin2_map_c3",
		"season2/metin2_map_skipia_dungeon_01",
		"season2/metin2_map_skipia_dungeon_02",
		"metin2_map_duel"
	};
	
	const std::string & c_rstrMapName = CPythonBackground::Instance().GetWarpMapName();
	for (size_t i = 0; i < _countof(c_rstrAtlasMapNames); ++i)
	{
		if (!c_rstrMapName.compare(c_rstrAtlasMapNames[i]))
		{
			if (rVictim.IsPC()) // IsNPC(), IsEnemy(), IsStone(), IsWarp(), IsGoto(), IsBuilding(), IsDoor(), IsObject()
				return false;
		}
	}
}

 

  • Love 1
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



  • Similar Content

  • Activity

    1. 13

      Metin2 Closed Beta Content (2003-2004)

    2. 25

      [SRC] Metin2 on LINUX - The Old Metin2 Project

    3. 2

      United/Club/Midgard serverfiles?

    4. 13

      Metin2 Closed Beta Content (2003-2004)

    5. 13

      Metin2 Closed Beta Content (2003-2004)

  • Recently Browsing

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