Changeset 11175 for code/branches/sagerjFS16/src/modules/weapons
- Timestamp:
- Apr 28, 2016, 3:09:26 PM (9 years ago)
- Location:
- code/branches/sagerjFS16/src/modules/weapons
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sagerjFS16/src/modules/weapons/projectiles/Rocket.cc
r11071 r11175 218 218 Destroys the Rocket upon pressing "fire". 219 219 */ 220 void Rocket:: fired(unsigned int firemode)220 void Rocket::pushed(unsigned int firemode) 221 221 { 222 222 this->destroyObject(); -
code/branches/sagerjFS16/src/modules/weapons/projectiles/Rocket.h
r11071 r11175 116 116 virtual void setShooter(Pawn* shooter) override; 117 117 118 virtual void fired(unsigned int firemode) override;118 virtual void pushed(unsigned int firemode) override; 119 119 120 120 /** -
code/branches/sagerjFS16/src/modules/weapons/projectiles/RocketOld.cc
r11071 r11175 218 218 Destroys the RocketOld upon pressing "fire". 219 219 */ 220 void RocketOld:: fired(unsigned int firemode)220 void RocketOld::pushed(unsigned int firemode) 221 221 { 222 222 this->destroyObject(); -
code/branches/sagerjFS16/src/modules/weapons/projectiles/RocketOld.h
r11071 r11175 116 116 virtual void setShooter(Pawn* shooter) override; 117 117 118 virtual void fired(unsigned int firemode) override;118 virtual void pushed(unsigned int firemode) override; 119 119 120 120 private: -
code/branches/sagerjFS16/src/modules/weapons/weaponmodes/Discharger.cc
r11174 r11175 54 54 this->damage_ = 90.01f; 55 55 this->speed_ = 90.01f; 56 this->chargeable_ = 0;56 this->chargeable_ = true; 57 57 58 58 this->setMunitionName("LaserMunition"); … … 65 65 void Discharger::fire() 66 66 { 67 orxout() << "release" << cTime_ << endl;67 // orxout() << "release" << cTime_ << endl; 68 68 BillboardProjectile* projectile = new BillboardProjectile(this->getContext()); 69 69 … … 71 71 projectile->setOrientation(this->getMuzzleOrientation()); 72 72 projectile->setPosition(this->getMuzzlePosition()); 73 projectile->setVelocity(this->getMuzzleDirection() * this->speed_ * charges_);73 projectile->setVelocity(this->getMuzzleDirection() * this->speed_); 74 74 75 75 projectile->setShooter(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()); 76 76 projectile->setDamage(this->getDamage() * charges_); 77 projectile->setShieldDamage(this->getShieldDamage() * charges_);78 projectile->setHealthDamage(this->getHealthDamage() * charges_);79 this->charges_ = 0;77 projectile->setShieldDamage(this->getShieldDamage()); 78 projectile->setHealthDamage(this->getHealthDamage()); 79 // this->charges_ = 0; 80 80 } 81 81 } -
code/branches/sagerjFS16/src/modules/weapons/weaponmodes/Discharger.h
r11174 r11175 58 58 59 59 private: 60 bool chargeable_; // An indicator that this weapon type is chargeable. 61 float speed_; // The speed of the fired projectile. 62 float ctime_; // time the weapon has charged. 63 }; 60 //bool chargeable_; // An indicator that this weapon type is chargeable. 61 int charges_; 62 float speed_; // The speed of the fired projectile. 63 float ctime_; // time the weapon has charged. 64 }; 64 65 } 65 66
Note: See TracChangeset
for help on using the changeset viewer.