Code: Select all
if( type(settings.profile.events.onUnstickFailure) == "function" ) and
player.Unstick_counter == settings.profile.options.MAX_UNSTICK_TRIALS + 1 then --this Line
pcall(settings.profile.events.onUnstickFailure);
Code: Select all
if( type(settings.profile.events.onUnstickFailure) == "function" ) and
player.Unstick_counter >= settings.profile.options.MAX_UNSTICK_TRIALS + 1 then --this line
pcall(settings.profile.events.onUnstickFailure);
the other is:
Code: Select all
-- if next waypoint is 'in front' of current waypoint
if( math.deg(angleDif) > settings.profile.options.WAYPOINT_PASS_DEGR ) then -- default 90
if (settings.profile.options.DEBUG_WAYPOINT) then
cprintf(cli.yellow, "[DEBUG] We overrun waypoint #%d, skip it and move on to #%d\n",currentWp.wpnum, nextWp.wpnum);
end