Changeset 11153 for code/branches/sagerjFS16/src/modules/weapons
- Timestamp:
- Mar 24, 2016, 3:56:35 PM (9 years ago)
- Location:
- code/branches/sagerjFS16/src/modules/weapons/weaponmodes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sagerjFS16/src/modules/weapons/weaponmodes/Discharger.cc
r11142 r11153 52 52 53 53 this->reloadTime_ = 0.1f; 54 this->damage_ = 9000.1f ;55 this->speed_ = 9000.1f ;54 this->damage_ = 9000.1f*loaded_; 55 this->speed_ = 9000.1f*loaded_; 56 56 57 57 this->setMunitionName("dEnergy"); … … 68 68 void Discharger::fire() 69 69 { 70 71 } 72 void Discharger::unfire() 73 { 74 BillboardProjectile* projectile = new BillboardProjectile(this->getContext()); 70 /*BillboardProjectile* projectile = new BillboardProjectile(this->getContext()); 75 71 76 72 this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition()); … … 82 78 projectile->setDamage(this->getDamage()); 83 79 projectile->setShieldDamage(this->getShieldDamage()); 84 projectile->setHealthDamage(this->getHealthDamage()); 80 projectile->setHealthDamage(this->getHealthDamage());*/ 81 extern unsigned int beginLoad_ = time; 82 } 83 void Discharger::release() 84 { 85 extern unsigned int endLoad_ = time; 86 extern unsigned int loaded_ = endLoad_ - beginLoad_; 87 85 88 } 86 89 } -
code/branches/sagerjFS16/src/modules/weapons/weaponmodes/Discharger.h
r11142 r11153 55 55 56 56 virtual void fire() override; 57 virtual void unfire() override;57 virtual void release() override; 58 58 59 59 private: 60 60 float speed_; //!< The speed of the fired projectile. 61 float loaded_; // The time how long the weapon charged 62 float beginLoad_; 63 float endLoad_; 61 64 }; 62 65 }
Note: See TracChangeset
for help on using the changeset viewer.