Originally posted by phatosealpha
Hate to be the bearer of bad news, but the turret code still seems to be having issues. TFH again has the Sathanas doesn't fire issue, but it's also worth noting that after an initial volley, the collosus will only fire on the Ravana with a single beam
ok i'm looking into it. Right now the bug started occuring between 4/1 and 4/15. I'm narrowing it down right now.
edit: happened between 4/1 and 4/7. The major things changed since then were goober's apply-to-wing code (doubtful) or taylor's vector->vec3d switch (doubtful as well, but something may have been inadvertantly changed that shouldn't have.)
edit2: i guess it doesn't work for 4/1
. I think it worked for march 15 though.
edit3: Got it constrained between 3/21 and 3/28
edit4: yea it was WMC's giant commit on 3/25 that did the trick. i'll see if i can re-create the situation
edit5: found it
dist_to_enemy = vm_vec_normalized_dir(&v2e, &predicted_enemy_pos, &gpos) - lep->radius;
should be...
dist_to_enemy = MAX(0,vm_vec_normalized_dir(&v2e, &predicted_enemy_pos, &gpos) - lep->radius);
what happens since the colossus is so much longer than it is wide, is that dist_to_enemy is then negative since lep->radius is so huge. This was then interfering with the minimum weapon range code that said that if no minimum range is defined then use a minimum range of zero. and now since dist < min_range, the target is disregarded. fixed. *bashes WMC*