Changeset 10036 in orxonox.OLD for branches/playability/src/world_entities/weapons
- Timestamp:
- Dec 10, 2006, 1:08:50 PM (18 years ago)
- Location:
- branches/playability/src/world_entities/weapons
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/weapons/medium_blaster.cc
r9998 r10036 51 51 52 52 53 this->setStateDuration(WS_SHOOTING, 0. 1); // 10Schuss pro Sekunde53 this->setStateDuration(WS_SHOOTING, 0.2); // 5 Schuss pro Sekunde 54 54 55 55 this->setStateDuration(WS_RELOADING, 0); -
branches/playability/src/world_entities/weapons/weapon.cc
r10030 r10036 352 352 if (likely(this->isActive())) 353 353 { 354 if (this->requestedAction != WA_NONE)355 return;354 //if (this->requestedAction != WA_NONE) 355 // return; 356 356 PRINTF(5)("next action will be %s in %f seconds\n", actionToChar(action), this->stateDuration); 357 357 this->requestedAction = action; -
branches/playability/src/world_entities/weapons/weapon_manager.cc
r10023 r10036 116 116 117 117 this->hideCrosshair(); 118 119 this->bFire = false; 118 120 } 119 121 … … 441 443 } 442 444 445 /** 446 * triggers fire of all weapons in the current weaponconfig 447 */ 448 void WeaponManager::releaseFire() 449 { 450 Weapon* firingWeapon; 451 for(int i = 0; i < this->slotCount; i++) 452 { 453 firingWeapon = this->currentSlotConfig[i].currentWeapon; 454 if( firingWeapon != NULL) firingWeapon->requestAction(WA_NONE); 455 } 456 457 /* 458 this->crosshair->setRotationSpeed(500); 459 this->crossHairSizeAnim->replay(); 460 */ 461 } 443 462 444 463 /** … … 449 468 { 450 469 Weapon* tickWeapon; 470 451 471 452 472 for(int i = 0; i < this->slotCount; i++) -
branches/playability/src/world_entities/weapons/weapon_manager.h
r10004 r10036 103 103 //! @TODO: implement this function (maybe also in Weapon itself) 104 104 void releaseFire(); 105 //inline void setFire() { this->bFire = true; }; 105 106 106 107 void tick(float dt); … … 131 132 132 133 std::vector<CountPointer<AmmoContainer> > ammo; //!< Containers 134 135 bool bFire; 133 136 }; 134 137
Note: See TracChangeset
for help on using the changeset viewer.