Bots dont work?

Please use this forum to ask all your MoHAA Bots questions / discussions

Moderator: Moderators

Post Reply
pshyco
Private
Posts: 8
Joined: Thu Dec 04, 2003 8:15 pm

Bots dont work?

Post by pshyco »

Ive made my map and added path nodes and scipt_orgins with the target names but when it spawns the bots stand still they will shoot the other team but they dont move expect when you throw a grenade at them or walk into the them, maybe i have to do something with my path nodes? or script?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Could you show us relevant parts of your script?
Image
pshyco
Private
Posts: 8
Joined: Thu Dec 04, 2003 8:15 pm

Post by pshyco »

This is my Scr file:
maybe i shouldnt add animated fog to it?

Code: Select all

// mp_ai_winter_assult
//[69th]PsHyCo

level.script = "maps/mp_ai_winter_assult.scr"
level.music = "t2l1"

main:

setcvar "g_obj_alliedtext1" ""
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""

setcvar "g_scoreboardpic" "none"
setcvar "jvbot_showavatar" "1"

//to turn off bots make this (setcvar "jvbot_allowed" "0")
setcvar "jvbot_allowed" "1"

level waittill prespawn

// Precache Dm Stuff
exec global/DMprecache.scr

level.music = "t2l1"

level waittill spawn
// max bots 8 per team-more than 8 is untested
level.alliesbots = 3
 
level.axisbots = 3

waitthread global/jv_bots/jv_mp_ai.scr::enable


// Animated fog setup

	$world animated_farplane 3500 5000 1650 1888
	$world animated_farplane_color (0.6 0.6 0.64) (0.5 0.5 0.54) 1200 1888 // 2nd RGB triple used to be (0.5 0.5 0.5)
	$world animated_farplane_bias -1500 0 1650 1888

// Set up Music

	$player stufftext "tmstart sound/music/mus_SniperTown_01g.mp3"

// Initialize Snow Parameters

	level.rain_speed = "40"
	level.rain_speed_vary = "4"
	level.rain_length = "2"
	level.rain_width = "1"
	level.rain_density = ".4"
	level.rain_slant = "1"
	level.rain_min_dist = "512"
	level.rain_numshaders = 12
	level.rain_shader = "textures/snow"

end
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Is it just me or are you trying to put bots in a breakthrough map?

Bots are only tested for plain mohaa....
Image
pshyco
Private
Posts: 8
Joined: Thu Dec 04, 2003 8:15 pm

Post by pshyco »

its for a spearhead map and do all the path nodes have to link like have targets?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

No, I think the problem is that the bots don't have any objectives like bombs, machineguns, sniper or camp nodes to run to, so they just stay at their spawn position.
Image
pshyco
Private
Posts: 8
Joined: Thu Dec 04, 2003 8:15 pm

Post by pshyco »

i do have some documents to steal so i have to add machine gun points and change the documents to a bomb yer?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Well you could also use a trigger objective but it isn't 'official' yet ;). See Bjarne's Vemork Factory bot map for an example :).
Image
pshyco
Private
Posts: 8
Joined: Thu Dec 04, 2003 8:15 pm

Post by pshyco »

ah ok thanks jv. :lol:
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

That map could be hard to find, but here it is: http://www.planetmedalofhonor.com/rjuka ... t_map.html

When is the 'official' release by the way?
Admin .MAP Forums
Image
Head above heels.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Bjarne BZR wrote:When is the 'official' release by the way?
Oh uhm :oops: it's delayed :oops: basically due to lack of motivation but primarily a lack of time :(
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

jv_map wrote:Oh uhm :oops: it's delayed :oops: basically due to lack of motivation but primarily a lack of time :(
I know the problem man, found a map yesterday that I just lost interest in and forgot to release. Despite the fact that it was complete :shock: .
Maby I'll post it in a day or 2... if I can work up the energy... :oops:
Admin .MAP Forums
Image
Head above heels.
Post Reply