Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2006, 7:40:07 PM (18 years ago)
Author:
marcscha
Message:

multiple weapons, crosshair visibility → changelog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/weapons/weapon_manager.cc

    r9996 r9998  
    103103
    104104  this->currentConfigID = 0;
    105   this->slotCount = 6;
     105  this->slotCount = WM_MAX_SLOTS;
    106106  //this->weaponChange;
    107107
     
    114114  this->crossHairSizeAnim->addKeyFrame(100, .05, ANIM_LINEAR);
    115115  this->crossHairSizeAnim->addKeyFrame(50, .01, ANIM_LINEAR);
     116
     117  this->hideCrosshair();
     118}
     119
     120void WeaponManager::showCrosshair()
     121{
     122  this->crosshair->setVisibility( true);
     123}
     124
     125void WeaponManager::hideCrosshair()
     126{
     127  this->crosshair->setVisibility( false);
    116128}
    117129
     
    300312    if (this->parentEntity->isA(Playable::staticClassID()))
    301313      dynamic_cast<Playable*>(this->parentEntity)->weaponConfigChanged();
     314   
    302315    weapon->setDefaultTarget(this->crosshair);
    303316  }
     
    416429          if( firingWeapon != NULL) firingWeapon->requestAction(WA_SHOOT);
    417430  }
    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  } */
    420438}
    421439
Note: See TracChangeset for help on using the changeset viewer.