akos40001 1 Posted November 15, 2018 Share Posted November 15, 2018 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! Link to comment Share on other sites More sharing options...
Forum Moderator VegaS™ 10328 Posted November 15, 2018 Forum Moderator Share Posted November 15, 2018 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; } } } 1 Check my GitHub Profile Click to find all the threads started by me [TOOL] Text file loader + JSON Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now