Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10515 in orxonox.OLD for trunk/src/ai/attack_module.cc


Ignore:
Timestamp:
Jan 30, 2007, 8:57:58 PM (17 years ago)
Author:
patrick
Message:

ai fix, mp fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ai/attack_module.cc

    r10499 r10515  
    5454void AttackModule::process(float dt)
    5555{
     56        //PRINTF(0)("attack process\n");
     57
    5658        if(npc == NULL)return;
    5759
     
    116118        Vector vectorToDestination=destination-myPosition;
    117119
    118         Vector correction=              playerCollision*50*3 *6/myRadius
     120        Vector correction=              playerCollision*40*3 *6/myRadius
    119121                                                                +       npcCollision*50*3 *6/myRadius
    120122                                                                +       destinationMovement*2//-movement
     
    147149
    148150        view = target->getAbsCoor()+randomView-myPosition;
    149         view = view.cross( Vector(0,1,0) ).getNormalized();
     151        view = view.cross( Vector(0,-1,0) ).getNormalized();
    150152
    151153        npc->setAbsDirSoft( Quaternion( view, Vector(0,1,0)),8/myRadius);
     
    156158                if(fireTimeout<=0){
    157159                        fireTimeout=(rand()%21)/10+1;
    158                         std::cout << "Fiiiiirrreee!\n";
     160                        //std::cout << "Fiiiiirrreee!\n";
    159161                        NPC* npc2 = static_cast<NPC*>(npc);
    160162                        npc2->fire();
Note: See TracChangeset for help on using the changeset viewer.