Changeset 3877 in orxonox.OLD for orxonox/trunk/src/world_entities/player.cc
- Timestamp:
- Apr 18, 2005, 5:34:39 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/player.cc
r3875 r3877 60 60 this->weaponMan->addWeapon(wpLeft); 61 61 62 this->weapons->add(wpRight);63 this->activeWeapon = wpRight;64 this->activeWeaponL = wpLeft;62 //this->weapons->add(wpRight); 63 //this->activeWeapon = wpRight; 64 //this->activeWeaponL = wpLeft; 65 65 } 66 66 … … 157 157 glPopMatrix(); 158 158 159 this->activeWeapon->draw(); 160 this->activeWeaponL->draw(); 159 //this->activeWeapon->draw(); 160 //this->activeWeaponL->draw(); 161 this->weaponMan->draw(); 161 162 } 162 163 … … 169 170 { 170 171 /* link tick to weapon */ 171 this->activeWeapon->tick(time); 172 this->activeWeaponL->tick(time); //FIX FIX DELETE REMOVE 172 //this->activeWeapon->tick(time); 173 //this->activeWeaponL->tick(time); //FIX FIX DELETE REMOVE 174 this->weaponMan->tick(time); 173 175 // player controlled movement 174 176 this->move(time); … … 186 188 Vector accel(0.0, 0.0, 0.0); 187 189 /* FIXME: calculating the direction and orthDirection every timeSlice is redundant! save it somewhere */ 188 189 190 /* calculate the direction in which the craft is heading */ 190 191 Vector direction (1.0, 0.0, 0.0); … … 216 217 if( this->bFire) 217 218 { 218 //if(this->activeWeapon != NULL)219 //this->activeWeapon->fire();220 //FIX THIS FIX FIIIIIIIIIIIX221 //this->activeWeaponL->fire();222 219 this->weaponMan->fire(); 223 220 } 224 if( this->bWeaponChange && this->weapons->getSize() > 1)221 if( this->bWeaponChange) 225 222 { 226 PRINTF(1)("changing the weapon of the player: deactivate old, activate new\n"); 227 this->activeWeapon->deactivate(); 223 //this->activeWeapon->deactivate(); 228 224 //this->weapons->enumerate(); FIX: strang weapon change... 229 this->activeWeapon = this->weapons->nextElement(this->activeWeapon); 230 this->activeWeapon->activate(); 225 //this->activeWeapon = this->weapons->nextElement(this->activeWeapon); 226 //this->activeWeapon->activate(); 227 this->weaponMan->nextWeaponConf(); 231 228 } 232 229 }
Note: See TracChangeset
for help on using the changeset viewer.