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

C++ walk trough summons TFS 1.3

Nokturno

Not a human
Joined
Aug 7, 2009
Messages
579
Solutions
2
Reaction score
410
hello fellows i have 2 requests, dont know if someone is interested in helping out.

1.- is there a way to walk trough summons via Sources?
i want to let any player walk trough any other player summons

2.-a way to prevent party members damage party summons and vice versa.
 
Last edited:
Add in Player::canWalkthroughEx
C++:
bool Player::canWalkthroughEx(const Creature* creature) const
{
    if (group->access) {
        return true;
    }
    
    //Start
    const Monster* monster = creature->getMonster();
    if (monster) {
        if (monster->isSummon() && monster->getMaster()->getPlayer()) {
            return true;
        }
        return false;
    }
    //End

Add in Player::canWalkthrough
C++:
bool Player::canWalkthrough(const Creature* creature) const
{
    if (group->access || creature->isInGhostMode()) {
        return true;
    }
    
    //Start
    const Monster* monster = creature->getMonster();
    if (monster) {
        if (monster->isSummon() && monster->getMaster()->getPlayer()) {
            return true;
        }
        return false;
    }
    //End

1721421601315.png
 
Back
Top