Changeset 10911
- Timestamp:
- Dec 1, 2015, 5:52:53 PM (9 years ago)
- Location:
- code/branches/particleEffectsHS15
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/particleEffectsHS15/data/levels/includes/weaponSettingsEscort.oxi
r10908 r10911 14 14 </links> 15 15 <Weapon> 16 <MineGun mode=0 munitionpershot=0 delay=0.125 damage=50 shielddamage=15 healthdamage=10 muzzleoffset=" 0.1, 1.4,- 3" maxtimeuntilexplosion=25 timeuntilactivation=2.5/>16 <MineGun mode=0 munitionpershot=0 delay=0.125 damage=50 shielddamage=15 healthdamage=10 muzzleoffset=" 0.1, 1.4,-10" maxtimeuntilexplosion=25 timeuntilactivation=2.5/> 17 17 </Weapon> 18 18 <Weapon> -
code/branches/particleEffectsHS15/src/modules/weapons/projectiles/IceGunProjectile.cc
r10836 r10911 48 48 RegisterClass(IceGunProjectile); 49 49 50 const float IceGunProjectile::particleDestructionDelay_ = 15.0f; 51 50 52 IceGunProjectile::IceGunProjectile(Context* context) : Projectile(context) 51 53 { … … 67 69 this->attach(emitter_); 68 70 emitter_->setOrientation(this->getOrientation()); 69 emitter_->setSource("Orxonox/ice"); 71 emitter_->setSource("Orxonox/ice"); 72 emitter_->setDeleteWithParent(false); 70 73 } 71 74 … … 83 86 84 87 const ExecutorPtr& executor = createExecutor(createFunctor(&ParticleEmitter::destroy, emitter_)); 85 new Timer( 15, false, executor, true);88 new Timer(particleDestructionDelay_, false, executor, true); 86 89 } 87 90 } -
code/branches/particleEffectsHS15/src/modules/weapons/projectiles/IceGunProjectile.h
r10836 r10911 63 63 protected: 64 64 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint); 65 static const float particleDestructionDelay_; 65 66 private: 66 67 ParticleEmitter* emitter_; -
code/branches/particleEffectsHS15/src/modules/weapons/projectiles/MineProjectile.cc
r10908 r10911 117 117 { 118 118 this->setMass(10.0f); 119 this->setFriction(100.0f); 119 this->setLinearDamping(0.5f); 120 this->setAngularDamping(0.1f); 120 121 this->enableCollisionCallback(); 121 this->setCollisionResponse( false);122 this->setCollisionResponse(true); 122 123 this->setCollisionType(Dynamic); 123 124 … … 150 151 modelRing4_->destroy(); 151 152 152 distanceTrigger_->destroy(); 153 153 if (distanceTrigger_) 154 { 155 distanceTrigger_->destroy(); 156 } 154 157 if (emitter_) 155 158 { -
code/branches/particleEffectsHS15/src/modules/weapons/weaponmodes/MineGun.cc
r10889 r10911 51 51 RegisterObject(MineGun); 52 52 53 this->speed_ = 0.0f;53 this->speed_ = 1000.0f; 54 54 this->reloadTime_ = 1.0f; 55 55 this->damage_ = 0.0f;
Note: See TracChangeset
for help on using the changeset viewer.