• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Walking through people, annoying "push" effect

wesoly136

Member
Joined
Jul 30, 2009
Messages
562
Reaction score
8
Hi!
I wanted to do something to allow players to walk through each other in Protection Zone.
I added those lines in player.cpp:
Code:
player->getTile()->hasFlag(TILESTATE_PROTECTIONZONE) &&
!player->getTile()->hasFlag(TILESTATE_HOUSE)
(As explained in this post: http://otland.net/f16/windows-7-walking-through-players-pz-141314/#post1361483)

It works good in Protection Zone, but the problem is that out of PZ, when I try to walk into someone I get pushed back to my tile.

I want it just not to allow me move at all, NOT pushing me back(it's annoying :/).

When I try making it with special tile IDs then it works fine, for example:
Code:
player->getTile()->ground && ((player->getTile()->ground->getID() == xxxx)

If you don't have idea how to solve it, it can be the second way, but instead of tile ID I prefer tile ActionID
 
Last edited:

Similar threads

Back
Top