- Timestamp:
- Dec 25, 2009, 1:18:03 PM (16 years ago)
- Location:
- code/branches/pickup2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup2
- Property svn:mergeinfo changed
-
code/branches/pickup2/src/modules/weapons/weaponmodes/HsW01.cc
r5929 r6412 39 39 #include "weaponsystem/WeaponPack.h" 40 40 #include "weaponsystem/WeaponSystem.h" 41 #include "worldentities/WorldEntity.h" 42 #include "worldentities/pawns/Pawn.h" 41 43 42 44 namespace orxonox … … 56 58 this->delayTimer_.setTimer(1.0f, false, createExecutor(createFunctor(&HsW01::shot, this))); 57 59 this->delayTimer_.stopTimer(); 60 61 this->setDefaultSound("sounds/Weapon_HsW01.ogg"); 62 } 63 64 HsW01::~HsW01() 65 { 58 66 } 59 67 … … 103 111 void HsW01::shot() 104 112 { 113 assert( this->getWeapon() && this->getWeapon()->getWeaponPack() && this->getWeapon()->getWeaponPack()->getWeaponSystem() && this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn() ); 105 114 Projectile* projectile = new Projectile(this); 106 115 Model* model = new Model(projectile); … … 110 119 model->setScale(5); 111 120 121 this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition()); 112 122 projectile->setOrientation(this->getMuzzleOrientation()); 113 123 projectile->setPosition(this->getMuzzlePosition());
Note: See TracChangeset
for help on using the changeset viewer.