Page 1 of 2

Bots and ladders

Posted: Sat Jul 02, 2005 3:13 am
by MasterMind
I did everything in the manual but i cant seem to get the bots to go up my ladder. Can someone please explain to me in MUCH detail how make "botable ladders".

thx yall :)

Posted: Sat Jul 02, 2005 8:01 am
by bdbodger
Do you have a route node with the $action key set to ladder and $actionset set to a number for the set ? Did you make a script_origin with the targetname ladderbottom placed 32 units away from the ladder and set the angle key ? Did you make a script_origin with the targetname laddertop placed 32 units away from the ladder and set the angle key . Did you set the #set key on the script _origins to match the $actionset value of the route node ? Is there enough space around the ladder for bots ? Do they goto the ladder but seem to have a problem climbing ?

Posted: Sat Jul 02, 2005 2:56 pm
by MasterMind
yes i have all that stuff and it doesnt work. Can someone please send me a map with a simple botable ladder :)

thx

Posted: Sat Jul 02, 2005 3:47 pm
by Bjarne BZR
Isent the source for op-center BOT on jv's site? That one has BOT ladders in it.

Posted: Sat Jul 02, 2005 11:48 pm
by MasterMind
one question, do the ladders have to be in some kind of route that leads to a camper node(or something like that)? or can i just place nodes around it so that bots can just find the camper node(which is up the ladder) without a manully made route that leads to it?

the bots only seam to climb the ladder when the ladder is part of a route that leads to a camper node and the camper node has a key value of $route/nameofladderroute.

Posted: Sun Jul 03, 2005 8:35 am
by jv_map
That's right jv_bots only use ladders if they're part of a route system.

Posted: Sun Jul 03, 2005 1:51 pm
by bdbodger
I belive jv that you wrote in the manual that bots do not use the one node closest to the destination with id #1 so I guess a 2 node route will work with the ladder set up on the id #2 node and the camper or whatever type of node has that route key .

Posted: Sun Jul 03, 2005 2:43 pm
by jv_map
True. Node #1 is only used by bots to determine which route is nearest to them at a given time. I.e. if node #1 is nearest they'll go to node #2 so they won't 'reverse' part of the route.

Posted: Mon Jul 04, 2005 1:20 am
by MasterMind
alrighty, i pretty much got my ladder to work, but i have one more question: my bots ONLY go through the ladder route if the first node of the ladder route is right next to them. How do i make it so that they go through the ladder route even when there far away from the first route node? do they only go through the route if they just so happen to run into the first node? or choose to go through the route from a distance away?

if you have any questions about my questions, jsut ask(i know, i can be confusing sometimes) :oops:

Posted: Mon Jul 04, 2005 11:44 am
by bdbodger
You will need to make a routelist . What you do is instead of giveing your camper node for example the $route key use the $routelist key then make your list like this

level.routelist[my_first_list] = "route1"::"route2"::"route3"

so instead of the camper node haveing the key:$route value:Sroute1 it will have the key:$routelist value:$my_first_list

The $ in front of the value means that the value is a string just like the # if front of a value means a number . level.routelist[my_first_list] is an array of routes so separate each item with :: and use " around the items as they are strings . Also more than 1 node can use that routelist or the routes as well for example if in the same area you have a sniper node you can set the same routelist key for it too .

Posted: Mon Jul 04, 2005 3:39 pm
by MasterMind
i know, i know. The question is: is there any way to get a bot to go through a route to a camper node even when the bot is far away from the first node of the route(or any one of the routes)?

Posted: Mon Jul 04, 2005 3:43 pm
by jv_map
Uhm.. try increasing the #weight of the camper node so bots will like it better :)

Posted: Mon Jul 04, 2005 3:57 pm
by MasterMind
ok thx, :)

do bots only go through routes if the route is right next to them?

Posted: Sun Jul 10, 2005 8:23 pm
by proximo
MasterMind wrote:ok thx, :)

do bots only go through routes if the route is right next to them?

the bots follow the routes or route liste you gived , you can increase the possibillty to spawn by change weight.


like this.

//<-------------------SNIPER Ladder-------------------->
level.obj_model[62] = spawn script_origin
level.obj_model[62].targetname = so13
level.obj_model[62].origin = ( 2473.394 -787.937 128.875 )
level.obj_model[62].angles = ( 0.000 0.000 0.000 )
level.obj_model[62].set = 0
//<------------------------------------------------------------->
level.obj_model[63] = spawn info_pathnode
level.obj_model[63].targetname = sniper
level.obj_model[63].origin = ( 2805.981 -787.123 128.135 )
level.obj_model[63].angles = ( 0.000 270.000 0.000 )
level.obj_model[63].target = so13
level.obj_model[63].tag = NIL
level.obj_model[63].noaxis = 1
level.obj_model[63].noallies = 0
level.obj_model[63].weight = 3.000
level.obj_model[63].nocrouch = 0
level.obj_model[63].set = 5
level.obj_model[63].route = weg2
//<------------------------------------------------------------->

Posted: Mon Jul 11, 2005 8:40 am
by bdbodger
If a bot is assigned the task to goto a camper node for example and the script sends him to one he will use the route or routelist set on that camper node . The camper node would have the route or routelist key set that is the $name value set on a route node or the name of a routelist array . The weight is for decideing what task to do or which camper node to use if that is the task picked . JV would know which it is .