AndrewSkc 3 Posted March 22, 2015 Share Posted March 22, 2015 Me too xD Link to comment Share on other sites More sharing options...
Solution Think 117 Posted March 22, 2015 Solution Share Posted March 22, 2015 std::string strMapName = CPythonBackground::Instance().GetWarpMapName(); if (strMapName == "metin2_map_oxevent") { //BlockMovement(); return TRUE; } Transform this into return false; //(i.e return always false) If you still collide on any map at all... that's magic or you are not updating your binary or something, because that really works (this is the only place where these collisions are checked). If in fact you do not collide, then go back and make sure that your map is called metin2_map_oxevent (which, yeah, if you didn't change anything... that should be it). 1 Link to comment Share on other sites More sharing options...
DaNy3LL 21 Posted March 23, 2015 Author Share Posted March 23, 2015 (edited) Apparently if I edit the function to return false , I can go trough players, but I can also go trough things I shouldn't ... e.g. ox border Seems like that piece of code it's interfering with something (I guess one of the BlockMovement() from the bool) I tried to move it at the beginning/end , run that piece of code first and the other part of the code as else , but it doesn't work ... Edited August 19, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Think 117 Posted March 23, 2015 Share Posted March 23, 2015 (edited) Yes, of course. You did ask for guidance, I didn't quite give you the exact solution. Here's what you want/need: If you want to still collide against the ox borders, but not against players, you will need to do a continue/break on this loop here (Making sure to avoid any calls to BlockMovement) for(CPythonCharacterManager::CharacterIterator (...) That is all you need to avoid collisions with players in OX. Regards! Edit: Whops I wrote that you needed to return false from the loop. That is not correct. You need to break out of it (or simply not run it). Edited March 23, 2015 by Think Link to comment Share on other sites More sharing options...
vladbos35 1 Posted February 6, 2016 Share Posted February 6, 2016 UP! 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