Changeset 10515 in orxonox.OLD for trunk/src/ai/attack_module.cc
- Timestamp:
- Jan 30, 2007, 8:57:58 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ai/attack_module.cc
r10499 r10515 54 54 void AttackModule::process(float dt) 55 55 { 56 //PRINTF(0)("attack process\n"); 57 56 58 if(npc == NULL)return; 57 59 … … 116 118 Vector vectorToDestination=destination-myPosition; 117 119 118 Vector correction= playerCollision* 50*3 *6/myRadius120 Vector correction= playerCollision*40*3 *6/myRadius 119 121 + npcCollision*50*3 *6/myRadius 120 122 + destinationMovement*2//-movement … … 147 149 148 150 view = target->getAbsCoor()+randomView-myPosition; 149 view = view.cross( Vector(0, 1,0) ).getNormalized();151 view = view.cross( Vector(0,-1,0) ).getNormalized(); 150 152 151 153 npc->setAbsDirSoft( Quaternion( view, Vector(0,1,0)),8/myRadius); … … 156 158 if(fireTimeout<=0){ 157 159 fireTimeout=(rand()%21)/10+1; 158 std::cout << "Fiiiiirrreee!\n";160 //std::cout << "Fiiiiirrreee!\n"; 159 161 NPC* npc2 = static_cast<NPC*>(npc); 160 162 npc2->fire();
Note: See TracChangeset
for help on using the changeset viewer.