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:
(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:
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
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)
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: