Jump to content

Elowinz

Member
  • Posts

    2
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Elowinz

  1. Hi tmp4, I was trying to increase the pull range by editing FuncAggregateMonster. But it seems that there is something other than the DISTANCE_APPROX check limiting the max range. struct FuncAggregateMonster { LPCHARACTER m_ch; FuncAggregateMonster(LPCHARACTER ch) { m_ch = ch; } void operator()(LPENTITY ent) { if (ent->IsType(ENTITY_CHARACTER)) { LPCHARACTER ch = (LPCHARACTER) ent; if (ch->IsPC()) return; if (!ch->IsMonster()) return; if (ch->GetVictim()) return; if (DISTANCE_APPROX(ch->GetX() - m_ch->GetX(), ch->GetY() - m_ch->GetY()) < 20000) if (ch->CanBeginFight()) { ch->AddAffect(AFFECT_MOV_SPEED, POINT_MOV_SPEED, 700, AFF_MOV_SPEED_POTION, 500, 0, true); ch->BeginFight(m_ch); } } } }; I added a movementspeed Affect and got very weird behaviour. The movementspeed bonus is applied to mobs way further than the "standard" pull range, yet no mobs outside of the standard pull range get aggressive towards my character. Do you know what's causing this? EDIT: Oh and I am posting this here, because the same code snipped works on other serverfiles.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.