Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10275 in orxonox.OLD for branches/ai/src/ai/ai_team.cc


Ignore:
Timestamp:
Jan 17, 2007, 7:05:42 PM (17 years ago)
Author:
tfahrni
Message:

npc can shoot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ai/src/ai/ai_team.cc

    r10266 r10275  
    4848                        float maxTime=10;
    4949
     50
    5051                        //find new Position
    5152                        if(isPlayer){
     
    5354                                int zNorm=(position.z>targetPos.z)?1:-1;
    5455
    55                                 if((position.z-targetPos.z)*zNorm>80){  //go to start position
     56                                if((position.z-targetPos.z)*zNorm>60){  //go to start position
    5657                                        std::cout << "Go Start Position\n";
    5758                                        changeSwarmModule(it, new SwarmGoRel);
    58                                         newPosition=Vector(220,0,zNorm*60);
    59                                         speed=100;
     59                                        newPosition=Vector(180,0,zNorm*60);
     60                                        speed=80;
    6061                                }else if(position.x > targetPos.x+150){ //go to attack position
    6162                                        std::cout << "Go Attack Position\n";
    6263                                        changeSwarmModule(it, new SwarmGoRel);
    6364                                        newPosition=Vector(100,0,0);
    64                                         speed=60;
     65                                        speed=80;
    6566                                }else if(position.x > targetPos.x+90){  //go to attack mode
    6667                                        std::cout << "Go Attack Mode\n";
     
    7273                                        std::cout << "Go  Fallback Point\n";
    7374                                        changeSwarmModule(it, new SwarmGoRel);
    74                                         newPosition=Vector(0,0,zNorm*150);
    75                                         speed=60;
     75                                        newPosition=Vector(0,0,zNorm*100);
     76                                        speed=80;
    7677                                }
    7778                        }else{
Note: See TracChangeset for help on using the changeset viewer.