Changeset 8855 for code/trunk/src/modules/weapons/weaponmodes/FusionFire.cc
- Timestamp:
- Aug 22, 2011, 3:05:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/weapons/weaponmodes/FusionFire.cc
r8706 r8855 27 27 */ 28 28 29 /** 30 @file FusionFire.h 31 @brief Implementation of the FusionFire class. 32 */ 33 29 34 #include "FusionFire.h" 30 35 36 #include "core/CoreIncludes.h" 31 37 #include "util/Math.h" 32 #include "core/CoreIncludes.h"33 #include "weapons/projectiles/BillboardProjectile.h"34 38 35 39 #include "weaponsystem/Weapon.h" … … 37 41 #include "weaponsystem/WeaponSystem.h" 38 42 #include "worldentities/pawns/Pawn.h" 43 44 #include "weapons/projectiles/BillboardProjectile.h" 39 45 40 46 namespace orxonox … … 46 52 RegisterObject(FusionFire); 47 53 48 this->reloadTime_ = 1.0 ;54 this->reloadTime_ = 1.0f; 49 55 this->bParallelReload_ = false; 50 this->damage_ = 0 ; //default 4051 this->speed_ = 1250 ;56 this->damage_ = 0.0f; 57 this->speed_ = 1250.0f; 52 58 53 59 this->setMunitionName("FusionMunition"); 54 60 } 55 61 56 /* Creates the projectile (BillboardProjectile) object, sets its properties to the FusionFire properties 57 */ 62 /** 63 @brief 64 Fires the weapon, by creating a projectile. 65 */ 58 66 void FusionFire::fire() 59 67 { … … 65 73 projectile->scale(5); 66 74 67 projectile->set Owner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());75 projectile->setShooter(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()); 68 76 projectile->setDamage(this->getDamage()); 69 77 projectile->setShieldDamage(this->getShieldDamage());
Note: See TracChangeset
for help on using the changeset viewer.