This post was inspired by Automaton 2000 Micro – Marine Split Battle vs IMMvp. It’s a pretty old video. It’s now easier to implement using s2client-api.
First day result
The idea behind this is simple: hit if weapon is ready and the nearest baneling is not too close, otherwise run.
for each gameloop for each marine dist = distance to nearest baneling if [(weapon can attack) or (dist > weapon range)] and (dist > baneling splash radius) attack else run in opposite diretion and split
source code avaliable at here