Code:
[frame 12] target set at line 710
[frame 12] target is (-556.01 -1102.06 49.03)
[frame 13] target set at line 710
[frame 13] target is (-556.06 -1101.96 49.03)
[frame 14] target set at line 715
[frame 14] target is (-556.14 -1101.81 32.03)
[frame 15] target set at line 715
[frame 15] target is (-556.24 -1101.63 32.03)
[frame 16] target set at line 715
[frame 16] target is (-556.37 -1101.40 32.03)
[frame 17] target set at line 715
[frame 17] target is (-556.51 -1101.14 32.03)
[frame 19] target set at line 783
[frame 19] target is (-546.51 -1091.14 42.03)
[frame 20] target set at line 783
[frame 20] target is (-536.51 -1081.14 52.03)
[frame 21] target set at line 783
[frame 21] target is (-526.51 -1071.14 62.03)
[frame 23] target set at line 783
[frame 23] target is (-516.51 -1061.14 72.03)
[frame 24] target set at line 783
[frame 24] target is (-506.51 -1051.14 82.03)
[frame 25] target set at line 783
[frame 25] target is (-496.51 -1041.14 92.03)
[frame 27] target set at line 783
[frame 27] target is (-486.51 -1031.14 102.03)
[frame 0] target set at line 783
[frame 0] target is (-476.51 -1021.14 112.03)
[frame 1] target set at line 783
[frame 1] target is (-466.51 -1011.14 122.03)
[frame 3] target set at line 783
[frame 3] target is (-456.51 -1001.14 132.03)
[frame 4] target set at line 783
[frame 4] target is (-446.51 -991.14 142.03)
[frame 5] target set at line 783
Logging the local static 'target' is done inside the BotBodyTarget function. The "target is" is displayed at the end of the function.
At line 783, 'target' receives the current value of pBot->LastEnemyOrigin, then adds vecRandom to it, then pBot->LastEnemyOrigin gets the value of 'target'. It does that the next frame and so on, until AIM_ENEMY is cleared. That's why when commenting that line, the bot stops chasing phantoms, because it breaks this bad loop.