• 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!

TFS 1.2 how to allow move/use items on walk

Hello
i noticed that tfs 1.2 not allows you to use or move items when you moving. How can i solve it?
"casting runes while running":
 
just open config and Change the numbers to 50 >
-- Item Usage
timeBetweenActions = 50
timeBetweenExActions = 50
I believe @henkas asked about possibility of moving items after the player's walk is completed, like when you try to move them from distance.
The problem is that "onWalkComplete" function activates only the "addEvent walkTask. It doesn't have an access to normal player walking, so it is possible to move and use items on the ground while walking, what is weird. Needs source edit.
C++:
void Player::onWalkComplete()
{
    if (walkTask) {
        walkTaskEvent = g_scheduler.addEvent(walkTask);
        walkTask = nullptr;
    }
}

To do it add
C++:
bool isPlayerWalking = false;
in Player class and set it in whereever you want.
 

Attachments

Last edited:
Back
Top