seek_slope = 0

if ( max_speed ~= 0)
 if (underwater and slope <= 0)
  max_speed = max_speed * 0.25
  seek_slope = 1
 else
  if (slope > 0.6+0.12*climb)
   seek_slope = -1
   max_speed = max_speed 
#* 0.25
   else
    if (slope > 0)
      max_speed = max_speed 
#- (1.7 * max_speed * slope) + (0.2*climb*max_speed)
    endif
  endif
 endif
endif


