• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

TFS 1.X+ Can't find "range between summon and master" in sources?

Mjmackan

Mapper ~ Writer
Joined
Jul 18, 2009
Messages
1,477
Solutions
18
Reaction score
195
Location
Sweden
I've went through all "logic" places for this, but cant find anything related to this and the logic things I have changed gave no change in the subject.

Edit: Sorry for the bad explaining, i want to shorter the range where the summon follows the master.
 
Last edited:

Change to 0
Thanks Nekiro, active and helping as usual.
Post automatically merged:


Change to 0
Edit: didn't actually work.

This is how it looks atm:
C++:
void Creature::getPathSearchParams(const Creature*, FindPathParams& fpp) const
{
    fpp.fullPathSearch = !hasFollowPath;
    fpp.clearSight = true;
    fpp.maxSearchDist = 12;
    fpp.minTargetDist = 0;
    fpp.maxTargetDist = 0;
}

Line 267 in monster.cpp seems to have something todo with it, i changed this line to 0 from 1 but I only got some weird interaction with the summon instead. This line:
C++:
                if ((offset_x > 1 || offset_y > 1) && mType->info.changeTargetChance > 0) {
 
Last edited:
Solution
Back
Top