- Joined
- Apr 1, 2012
- Messages
- 1,249
- Solutions
- 71
- Reaction score
- 621
- Location
- Hell
- GitHub
- idontreallywolf
I am trying to allow GM+ groups to be able to walk through solid objects as it has already been done in TFS 0.4.
I have found the following method in Game.cpp but I'm not sure how to modify it.
How can I allow GMs or higher groups to walk trough solid objects using CTRL + ARROW keys ?
I have found the following method in Game.cpp but I'm not sure how to modify it.
forgottenserver/game.cpp at master · otland/forgottenserver
A free and open-source MMORPG server emulator written in C++ - forgottenserver/game.cpp at master · otland/forgottenserver
github.com
C++:
void Game::playerTurn(uint32_t playerId, Direction dir)
{
Player* player = getPlayerByID(playerId);
if (!player) {
return;
}
if (!g_events->eventPlayerOnTurn(player, dir)) {
return;
}
player->resetIdleTime();
internalCreatureTurn(player, dir);
}
How can I allow GMs or higher groups to walk trough solid objects using CTRL + ARROW keys ?