I want make plugin to use same combat code no matter what CC is loaded.
How can i override Pull() and Combat() parts of CustomClass inside plugin?
EDIT:
Looking at Mr.Autofight i guessed overriding combat (and also completely achieving my goal for melees versus aggresive mobs) would be that:
But what to do to replace CC's Pull() for ranged classes?
And as we analized with friend, why this piece of code was even working? It should run as 2 independent threads without interaction along with CC.
How can i override Pull() and Combat() parts of CustomClass inside plugin?
EDIT:
Looking at Mr.Autofight i guessed overriding combat (and also completely achieving my goal for melees versus aggresive mobs) would be that:
Code:
public override void Pulse()
{
while (Styx.Logic.BehaviorTree.TreeRoot.IsRunning && Me.Combat)
{
MyCombat();
}
}
private void MyCombat()
{
}
And as we analized with friend, why this piece of code was even working? It should run as 2 independent threads without interaction along with CC.
Last edited: