Changeset 4504 in orxonox.OLD for orxonox/trunk/src/world_entities/test_gun.cc
- Timestamp:
- Jun 4, 2005, 12:38:30 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/test_gun.cc
r4467 r4504 31 31 #include "list.h" 32 32 #include "animation3d.h" 33 #include "sound_engine.h" 33 34 34 35 #include "object_manager.h" … … 89 90 this->animation3->addKeyFrame(Vector(-2.6, 0.1, -2.0), Quaternion(), 0.1, ANIM_LINEAR, ANIM_CONSTANT); 90 91 } 91 92 93 this->fireSound = (SoundBuffer*)ResourceManager::getInstance()->load("sound/shot1.wav", WAV); 94 this->weaponSource = new SoundSource(this->fireSound, this); 95 this->weaponSource->setRolloffFactor(.1); 92 96 Projectile* p = new TestBullet(this); 93 97 ObjectManager::getInstance()->cache(CL_TEST_BULLET, 100, p); … … 146 150 147 151 Projectile* pj = dynamic_cast<Projectile*>(ObjectManager::getInstance()->getFromDeadList(CL_TEST_BULLET)); 152 weaponSource->play(); 153 148 154 pj->setAbsCoor(this->getAbsCoor() + this->projectileOffset); 149 155 pj->setAbsDir(this->getAbsDir());
Note: See TracChangeset
for help on using the changeset viewer.