View Single Post
AIScript Questions
Old
  (#1)
Michelangelo
Member
 
Status: Offline
Posts: 6
Join Date: Jul 2006
Default AIScript Questions - 21-07-2006

Heya folks

the first thing i must say is, the fritzbot is the best Bot Mod for RTCW/ET i've ever seen

Well, i'm currently waypointing the map mlb_temple. It's a nice big desert Map with tank escorting and with steal objectives.

anyway
the first problem that i have is, that there are 3 bridges which the allies must construct. The bots construct the bridges, or should i better say, they construct only one bridge. the engineers stuck on the place after the first bridge goal is constructed. i've seen in other AIScripts (for example fueldump) that is anywhere another action which check, if the bridges are already constructed.

does this action have any special flags ? i dunno, take a look on my current aiscript (in progress):

PHP Code:
bot_SightDist 3000  //how far the highest skill bot can see on this map

spawnflag_is_priority  0 //should bots focus on spawnflags?

cmdpost_is_priority  1 //are cmdposts critical on this map?

construct_is_priority  1 //should engs focus more on constructibles

map_has_vehicle 1 //does this map have a vehicle? 0 = NO, 1 = TANK, 2 = TRAIN

vehicle_entity_number 90 //the entity number of the tank

vehicle_team_owner 2 //ALLIES own this tank! 1 = AXIS, 2 = ALLIES

default
{
    
// after tank repair, prepare allied bots for camping
    
activateAction 5 // mg42camp task
    
activateAction 4 // mobilemg42camp task
    
activateAction 7 // camp task
    
activateAction 8 // camp task
    
wait 20
    activateAction 0 
// first tank-bridge goal
    
activateAction 1 // foot across the other side
    
activateAction 2 // second tank-bridge goal
    
activateAction 3 // check if bridges had been build
}


action 0 //Main Bridge first goal
{
  
// toggle the node connections
  
if_construct_built_true 0
    node_connect 167 182 false
  if_construct_built_false 0
    node_disconnect 167 182 false
}

action 1 // foot-bridge
{
  
// toggle the node connections
  
if_construct_built_true 1
    node_connect 183 184 false
  if_construct_built_false 1
    node_disconnect 183 184 false

  if_construct_built_true 1
    node_connect 184 185 false
  if_construct_built_false 1
    node_disconnect 184 185 false

  if_construct_built_true 1
    node_connect 185 186 false
  if_construct_built_false 1
    node_disconnect 185 186 false

  if_construct_built_true 1
    node_connect 186 187 false
  if_construct_built_false 1
    node_disconnect 186 187 false

  if_construct_built_true 1
    node_connect 187 188 false
  if_construct_built_false 1
    node_disconnect 187 188 false

  if_construct_built_true 1
    node_connect 188 189 false
  if_construct_built_false 1
    node_disconnect 188 189 false
}
action 3 {
    
if_construct_built_true 0
        deactivateAction 0
    if_construct_built_true 1
        deactivateAction 1

btw, the fritzbot waypoint tool says that "default" is a not defined keyword, what does this means ? I think i've in the future some more questions , especially the axis side make no actions (no goal). maybe i get by myself the solution, i will see

...sorry for my poor english
michel (greetings from germany)
  
Reply With Quote