n00b-The Bots Dont Do anything :(
Moderator: Moderators
n00b-The Bots Dont Do anything :(
Hey, I was following the tutorials at jv_bot's site. I placed Pathnodes all over the Map. I did the part of the tutorial where you put any number of allie models and axis models into the map so the .scr would have something to run off of. I did that, and i placed Script-Origans on the map too. 3 script origans targetname-alliespawn and same for axis. I compile the map and nothing. So i decided to make it a .pk3 I dont know what to add to the .pk3 to make thew bots work though. I put the updated .pk3 into my main, still no bots. What am i doing wrong? How can i compile it so bots work? How can i make it so Consol commands add bots to map?
main:
level waittill prespawn
exec global/DMprecache.scr
level.script = maps/obj/objtest.scr
exec global/ambient.scr m4l1
exec global/door_locked.scr::lock
setcvar "g_obj_alliedtext1" "Go2Town"
setcvar "g_obj_alliedtext2" "KillSumAxis"
setcvar "g_obj_alliedtext3" "FindtheBomb"
setcvar "g_obj_axistext1" "- Prevent Allies from"
setcvar "g_obj_axistext2" "destroying the Flak88's"
setcvar "g_obj_axistext3" "MadeBy BiG_HeaD"
setcvar "g_scoreboardpic" "Hunt2 By BiG_HeaD"
level waittill spawn
level.bomb_damage = 200
level.bomb_explosion_radius = 640
level.defusing_team = "axis"
level.planting_team = "allies"
level.targets_to_destroy = 1
level.dmrespawning = 1 // 1 or 0
level.dmroundlimit = 15 // round time limit in minutes
level.clockside = axis // set to axis, allies, kills, or draw
level waittill roundstart
$flak88_explosive1 thread global/obj_dm.scr::bomb_thinker
$flak88_explosive1 thread axis_win_timer
thread allies_win_bomb
$bomb thread global/jv_obj_dm.scr::bomb_thinker
end
//*** --------------------------------------------
//*** "Axis Victory"
//*** --------------------------------------------
axis_win_timer:
level waittill axiswin
end
//*** --------------------------------------------
//*** "Allied Victory"
//*** --------------------------------------------
allies_win_bomb:
while(level.targets_destroyed < level.targets_to_destroy)
waitframe
teamwin allies
// Color settings
local.farplane_color = "0.3 0.3 "
local.blue = 0
local.blue_max = 1
local.blue_min = 0
local.blue_step = 0.01
// Depth settings
local.fogplane = 5500
local.fogplane_step = 40
// Other stuff
local.pulsate_speed = 0.1
local.acending = 1
// Actual code
while ( 1 ) //for ever
{
// Switch pulse direction at max and min
if(local.blue < local.blue_min || local.blue > local.blue_max)
{
local.acending = ! local.acending
}
wait local.pulsate_speed
if(local.acending)
{
local.blue = local.blue + local.blue_step
local.fogplane = local.fogplane + local.fogplane_step
}
else
{
local.blue = local.blue - local.blue_step
local.fogplane = local.fogplane - local.fogplane_step
}
// Set the variables in $world
$world farplane_color ( local.farplane_color + local.blue )
$world farplane local.fogplane
}
end
level waittill prespawn
exec global/DMprecache.scr
level.script = maps/obj/objtest.scr
exec global/ambient.scr m4l1
exec global/door_locked.scr::lock
setcvar "g_obj_alliedtext1" "Go2Town"
setcvar "g_obj_alliedtext2" "KillSumAxis"
setcvar "g_obj_alliedtext3" "FindtheBomb"
setcvar "g_obj_axistext1" "- Prevent Allies from"
setcvar "g_obj_axistext2" "destroying the Flak88's"
setcvar "g_obj_axistext3" "MadeBy BiG_HeaD"
setcvar "g_scoreboardpic" "Hunt2 By BiG_HeaD"
level waittill spawn
level.bomb_damage = 200
level.bomb_explosion_radius = 640
level.defusing_team = "axis"
level.planting_team = "allies"
level.targets_to_destroy = 1
level.dmrespawning = 1 // 1 or 0
level.dmroundlimit = 15 // round time limit in minutes
level.clockside = axis // set to axis, allies, kills, or draw
level waittill roundstart
$flak88_explosive1 thread global/obj_dm.scr::bomb_thinker
$flak88_explosive1 thread axis_win_timer
thread allies_win_bomb
$bomb thread global/jv_obj_dm.scr::bomb_thinker
end
//*** --------------------------------------------
//*** "Axis Victory"
//*** --------------------------------------------
axis_win_timer:
level waittill axiswin
end
//*** --------------------------------------------
//*** "Allied Victory"
//*** --------------------------------------------
allies_win_bomb:
while(level.targets_destroyed < level.targets_to_destroy)
waitframe
teamwin allies
// Color settings
local.farplane_color = "0.3 0.3 "
local.blue = 0
local.blue_max = 1
local.blue_min = 0
local.blue_step = 0.01
// Depth settings
local.fogplane = 5500
local.fogplane_step = 40
// Other stuff
local.pulsate_speed = 0.1
local.acending = 1
// Actual code
while ( 1 ) //for ever
{
// Switch pulse direction at max and min
if(local.blue < local.blue_min || local.blue > local.blue_max)
{
local.acending = ! local.acending
}
wait local.pulsate_speed
if(local.acending)
{
local.blue = local.blue + local.blue_step
local.fogplane = local.fogplane + local.fogplane_step
}
else
{
local.blue = local.blue - local.blue_step
local.fogplane = local.fogplane - local.fogplane_step
}
// Set the variables in $world
$world farplane_color ( local.farplane_color + local.blue )
$world farplane local.fogplane
}
end
Hmm there's a couple of things wrong there...
$flak88_explosive1 thread global/obj_dm.scr::bomb_thinker
better use jv_obj_dm.scr
For bot maps, this line also should be above level waittill roundstart. Actually it really is no use to have a level waittill roundstart in a script for a bot map, since bots don't ever trigger a roundstart.
Furthermore you need to add a line to enable the bots:
waitthread global/jv_bots/jv_mp_ai.scr::enable
Add this line below the bomb thinker line(s).
$flak88_explosive1 thread global/obj_dm.scr::bomb_thinker
better use jv_obj_dm.scr
For bot maps, this line also should be above level waittill roundstart. Actually it really is no use to have a level waittill roundstart in a script for a bot map, since bots don't ever trigger a roundstart.
Furthermore you need to add a line to enable the bots:
waitthread global/jv_bots/jv_mp_ai.scr::enable
Add this line below the bomb thinker line(s).
1)find this line "$flak88_explosive1 thread global/obj_dm.scr::bomb_thinker"
and replace it with "$flak88_explosive1 thread global/jv_obj_dm.scr::bomb_thinker"
2)remove "level waittill roundstart"
3)add "waitthread global/jv_bots/jv_mp_ai.scr::enable" after "$flak88_explosive1 thread global/jv_obj_dm.scr::bomb_thinker".
hope this helps.
and replace it with "$flak88_explosive1 thread global/jv_obj_dm.scr::bomb_thinker"
2)remove "level waittill roundstart"
3)add "waitthread global/jv_bots/jv_mp_ai.scr::enable" after "$flak88_explosive1 thread global/jv_obj_dm.scr::bomb_thinker".
hope this helps.
Live to map, not map to live.
-mohaa_rox, .map
moderator
-mohaa_rox, .map
moderator
