bpm91
Intermediate OT User
- Joined
- May 23, 2019
- Messages
- 881
- Solutions
- 7
- Reaction score
- 122
- Location
- Brazil
- YouTube
- caruniawikibr
hello, I'm having problems with hangable items in tf 1.5 nekiro, if anyone has had this problem and knows how to fix it please help me. I had to edit position to +1 to be able to accept digonal from the wall. the problem occurs as follows.
the player being in a diagonal position cannot use the wall item. just facing or on the right side of the wall. If anyone knows how to fix it I'd be grateful.
I had to increase the position to +1, however that way I can use the item from behind the wall and I didn't want that to happen.
note that in the position I put +2, when the original it has a bug that does not accept in certain diagonal positions of the wall just facing the wall or on the right side (position of the player to the wall)
that was the way I found to use it, however I can use it in any position on the wall, including behind it.
if anyone has had this problem and can help. I thank
game.cpp
the player being in a diagonal position cannot use the wall item. just facing or on the right side of the wall. If anyone knows how to fix it I'd be grateful.
I had to increase the position to +1, however that way I can use the item from behind the wall and I didn't want that to happen.
note that in the position I put +2, when the original it has a bug that does not accept in certain diagonal positions of the wall just facing the wall or on the right side (position of the player to the wall)
that was the way I found to use it, however I can use it in any position on the wall, including behind it.
if anyone has had this problem and can help. I thank
game.cpp
Lua:
if (player && tile->hasFlag(TILESTATE_SUPPORTS_HANGABLE)) {
//do extra checks here if the thing is accessible
if (thing && thing->getItem()) {
if (tile->hasProperty(CONST_PROP_ISVERTICAL)) {
if (player->getPosition().x + 2 == tile->getPosition().x) {
thing = nullptr;
}
} else { // horizontal
if (player->getPosition().y + 2 == tile->getPosition().y) {
thing = nullptr;
}
}
}
}
return thing;
}