changos
Member
- Joined
- Feb 13, 2012
- Messages
- 75
- Solutions
- 5
- Reaction score
- 22
Hi Otland community im editing the source of OTX 2.9 based on tfs (0.4)
and i modified the follow function to prevent a combo follow for a war server
it is working but not as would i like, because this affect the follow atk mode too
players.cpp
follow atk code:
I hope you can help me, thanks.
and i modified the follow function to prevent a combo follow for a war server
it is working but not as would i like, because this affect the follow atk mode too
players.cpp
C++:
void Player::goToFollowCreature()
{
//if(!walkTask)
//Creature::goToFollowCreature();
//return 0;
if (!walkTask && g_config.getBool(ConfigManager::ANTI_COMBO_FOLLOW))
{
Creature::goToFollowCreature();
}
else
{
//setFollowCreature(NULL);
}
}
C++:
void Player::setChaseMode(chaseMode_t mode)
{
if(chaseMode == mode)
return;
chaseMode = mode;
if(chaseMode == CHASEMODE_FOLLOW)
{
if(!followCreature && attackedCreature && !getNoMove()) //chase opponent
setFollowCreature(attackedCreature);
}
else if(attackedCreature)
{
setFollowCreature(NULL);
cancelNextWalk = true;
}
}
I hope you can help me, thanks.