Changeset 9998 in orxonox.OLD for branches/playability/src/world_entities/weapons/weapon_manager.cc
- Timestamp:
- Dec 3, 2006, 7:40:07 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/weapons/weapon_manager.cc
r9996 r9998 103 103 104 104 this->currentConfigID = 0; 105 this->slotCount = 6;105 this->slotCount = WM_MAX_SLOTS; 106 106 //this->weaponChange; 107 107 … … 114 114 this->crossHairSizeAnim->addKeyFrame(100, .05, ANIM_LINEAR); 115 115 this->crossHairSizeAnim->addKeyFrame(50, .01, ANIM_LINEAR); 116 117 this->hideCrosshair(); 118 } 119 120 void WeaponManager::showCrosshair() 121 { 122 this->crosshair->setVisibility( true); 123 } 124 125 void WeaponManager::hideCrosshair() 126 { 127 this->crosshair->setVisibility( false); 116 128 } 117 129 … … 300 312 if (this->parentEntity->isA(Playable::staticClassID())) 301 313 dynamic_cast<Playable*>(this->parentEntity)->weaponConfigChanged(); 314 302 315 weapon->setDefaultTarget(this->crosshair); 303 316 } … … 416 429 if( firingWeapon != NULL) firingWeapon->requestAction(WA_SHOOT); 417 430 } 418 this->crosshair->setRotationSpeed(500); 419 this->crossHairSizeAnim->replay(); 431 432 /* 433 if( this->crosshair != NULL) 434 { 435 this->crosshair->setRotationSpeed(500); 436 this->crossHairSizeAnim->replay(); 437 } */ 420 438 } 421 439
Note: See TracChangeset
for help on using the changeset viewer.