Jump to content

infyquest

Community Members
  • Posts

    68
  • Joined

  • Last visited

Posts posted by infyquest

  1. I have code snippet to sort the targets based on distance to the attack troops

    the code change is below:

    In the after the line 55 in attackMoveToCC.js, add the following lines


    //Sort targets based on distance
    targets = targets.toEntityArray().sort(function(a, {
    var pos = pending.getCentrePosition();
    return (VectorDistance(a.position(),pos)-VectorDistance(b.position(),pos));});

    I have tested the code long back, please you also test this and commit

  2. I am trying to make rusher from qbot. Its bit hard because I can't code a single line of javascript :D But I will try changing the way how qbot does things.

    Some progress. Attacks in under 4 minutes on random latium map while original qbot takes 9-12 minutes for first attack. If tested on Oasis II attack times are quite the same 7-9mins for both.

    if you post the code somewhere, we all can try to improve qBot's code

×
×
  • Create New...