- Timestamp:
- Nov 3, 2015, 3:56:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/AI_HS15/src/orxonox/controllers/WingmanController.cc
r10761 r10762 111 111 void WingmanController::tick(float dt) 112 112 { 113 //------------------------------------------------------- 114 /* if (this->target_) 115 { 116 this->aimAtTarget(); 117 this->doFire(); 118 this->bShooting_ = true; 119 }*/ 113 120 114 121 115 if (!this->isActive()) 122 116 return; 123 //--------------------------Stay in formation--------------------------124 117 if (!this->target_) 125 118 { … … 128 121 else 129 122 { 130 123 131 124 } 132 125 if (this->bHasTargetPosition_) … … 135 128 } 136 129 137 //--------------------------Attack same target as the Leader-------------------------- 138 139 /*if (this->target_) 140 { 141 this->aimAtTarget(); 142 this->doFire(); 143 } 144 */ 145 146 //orxout(internal_error) << "I am " << this << endl; 147 130 148 131 149 132 SUPER(WingmanController, tick, dt); … … 169 152 170 153 } 154 155 if (canFire()) 156 doFire(); 171 157 } 172 158
Note: See TracChangeset
for help on using the changeset viewer.