here's my code so far:
Code: Select all
main:
level.script="maps/obj/obj_lakeside_ai.scr"
exec global/DMprecache.scr
level waittill spawn
level.dmrespawning = 1
level.clockside = win
level.dmroundlimit_allowoverwrite = 1
level.dmroundlimit = 1
level.alliesbots = 1
level.axisbots = 1
level.routelist[allied_route] = "bridge_ladder"::"bunker_ladder"::"church"::"house_sniper"
level.routelist[axis_route] = "bunker_ladder_axis"
// level.jvbot_notimehandler = 1
$world farplane 5500
$world farplane_color (0.3 0.31 0.35)
$world farplane_cull 2
level.jvbot_tasks_priority[defendbomb] = 0.2
level.jvbot_tasks_priority[attackbomb] = 1.8
level.jvbot_tasks_priority[sniper] = 1.0
$allied_bomb thread global/jv_obj_dm.scr::bomb_thinker
$axis_bomb thread global/jv_obj_dm.scr::bomb_thinker
// $allied_bomb thread allied_win
// $axis_bomb thread axis_win
waitthread global/jv_bots/jv_mp_ai.scr::enable 0 0 1 0
// level waittill roundstart
while !(level.roundstart)
wait 0.1
thread fan1
$allied_bomb thread allied_win
$axis_bomb thread axis_win
end
fan1:
$blade1 bind $fan1
$blade2 bind $fan1
$blade3 bind $fan1
$blade4 bind $fan1
$fan1 rotatez 50
end
allied_win local.bomb1
while(local.bomb1.exploded != 1)
wait .1
iprintlnbold_noloc "The Allies have destroyed the dock!"
teamwin allies
end
axis_win local.bomb2
while(local.bomb2.exploded != 1)
wait .1
iprintlnbold_noloc "The Axis have destroyed the bridge"
teamwin axis
end