Changeset 10613
- Timestamp:
- Oct 4, 2015, 12:15:43 PM (9 years ago)
- Location:
- code/branches/presentationFS15merge
- Files:
-
- 7 edited
- 15 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationFS15merge
- Property svn:mergeinfo changed
/code/branches/ParticleEffectsFS15 (added) merged: 10309,10428,10433,10603
- Property svn:mergeinfo changed
-
code/branches/presentationFS15merge/data/levels/includes/weaponSettingsAssff.oxi
r10610 r10613 40 40 </Weapon> 41 41 <Weapon> 42 <SimpleRocketFire mode=2 muzzleoffset="0,0,0" damage=30 shielddamage=20 />42 <SimpleRocketFire mode=2 muzzleoffset="0,0,0" damage=30 healthdamage=50 shielddamage=20 /> 43 43 <RocketFire mode=3 muzzleoffset="0,0,0" damage=30 healthdamage=50 shielddamage=20 /> 44 44 </Weapon> -
code/branches/presentationFS15merge/src/modules/weapons/WeaponsPrereqs.h
r8855 r10613 82 82 class Projectile; 83 83 class Rocket; 84 class RocketOld; 84 85 class SimpleRocket; 85 86 … … 91 92 class LightningGun; 92 93 class RocketFire; 94 class RocketFireOld; 93 95 class SimpleRocketFire; 94 96 } -
code/branches/presentationFS15merge/src/modules/weapons/projectiles/CMakeLists.txt
r8855 r10613 6 6 LightningGunProjectile.cc 7 7 Rocket.cc 8 RocketOld.cc 8 9 SimpleRocket.cc 9 10 ) -
code/branches/presentationFS15merge/src/modules/weapons/projectiles/Rocket.cc
r10216 r10613 48 48 #include "worldentities/CameraPosition.h" 49 49 #include "worldentities/pawns/Pawn.h" 50 //#include "particleuniverse/include/ParticleUniverseSystemManager.h" 50 51 51 52 namespace orxonox … … 83 84 fire->setOrientation(this->getOrientation()); 84 85 fire->setSource("Orxonox/rocketfire"); 86 87 // Add Particle Universe Effects 88 //ParticleUniverse::ParticleSystemManager* pManager = ParticleUniverse::ParticleSystemManager::getSingletonPtr(); 89 //ParticleUniverse::ParticleSystem* pSys1 = pManager->createParticleSystem("pSys1", "bubbles", this->getScene()->getSceneManager()); 90 //this->attachOgreObject(pSys1); 85 91 86 92 this->enableCollisionCallback(); … … 223 229 void Rocket::destructionEffect() 224 230 { 225 ParticleSpawner *effect1, *effect2 ;231 ParticleSpawner *effect1, *effect2, *effect3, *effect4, *effect5; 226 232 if(this->getShooter()) 227 233 { 228 234 effect1 = new ParticleSpawner(this->getShooter()->getContext()); 229 235 effect2 = new ParticleSpawner(this->getShooter()->getContext()); 236 effect3 = new ParticleSpawner(this->getShooter()->getContext()); 237 effect4 = new ParticleSpawner(this->getShooter()->getContext()); 238 effect5 = new ParticleSpawner(this->getShooter()->getContext()); 230 239 } 231 240 else … … 233 242 effect1 = new ParticleSpawner(this->getContext()); 234 243 effect2 = new ParticleSpawner(this->getContext()); 244 effect3 = new ParticleSpawner(this->getContext()); 245 effect4 = new ParticleSpawner(this->getContext()); 246 effect5 = new ParticleSpawner(this->getContext()); 235 247 } 236 248 … … 238 250 effect1->setOrientation(this->getOrientation()); 239 251 effect1->setDestroyAfterLife(true); 240 effect1->setSource(" Orxonox/explosion4");252 effect1->setSource("orxonox/explosion_flash"); 241 253 effect1->setLifetime(2.0f); 242 254 … … 244 256 effect2->setOrientation(this->getOrientation()); 245 257 effect2->setDestroyAfterLife(true); 246 effect2->setSource(" Orxonox/smoke4");258 effect2->setSource("orxonox/explosion_flame"); 247 259 effect2->setLifetime(3.0f); 260 261 effect3->setPosition(this->getPosition()); 262 effect3->setOrientation(this->getOrientation()); 263 effect3->setDestroyAfterLife(true); 264 effect3->setSource("orxonox/explosion_shockwave"); 265 effect3->setLifetime(3.0f); 266 267 effect4->setPosition(this->getPosition()); 268 effect4->setOrientation(this->getOrientation()); 269 effect4->setDestroyAfterLife(true); 270 effect4->setSource("orxonox/explosion_sparks"); 271 effect4->setLifetime(3.0f); 272 273 effect5->setPosition(this->getPosition()); 274 effect5->setOrientation(this->getOrientation()); 275 effect5->setDestroyAfterLife(true); 276 effect5->setSource("orxonox/explosion_streak1"); 277 effect5->setLifetime(3.0f); 248 278 } 249 279 -
code/branches/presentationFS15merge/src/modules/weapons/weaponmodes/CMakeLists.txt
r7163 r10613 6 6 LightningGun.cc 7 7 RocketFire.cc 8 RocketFireOld.cc 8 9 SimpleRocketFire.cc 9 10 ) -
code/branches/presentationFS15merge/src/orxonox/worldentities/pawns/Pawn.cc
r10216 r10613 367 367 if (GameMode::isMaster()) 368 368 { 369 // this->deathEffect();369 this->deatheffect(); 370 370 this->goWithStyle(); 371 371 } … … 387 387 { 388 388 // play death effect 389 {389 /*{ 390 390 ParticleSpawner* effect = new ParticleSpawner(this->getContext()); 391 391 effect->setPosition(this->getPosition()); … … 410 410 effect->setSource("Orxonox/sparks"); 411 411 effect->setLifetime(4.0f); 412 } 412 }*/ 413 414 415 { 416 ParticleSpawner* effect = new ParticleSpawner(this->getContext()); 417 effect->setPosition(this->getPosition()); 418 effect->setOrientation(this->getOrientation()); 419 effect->setDestroyAfterLife(true); 420 effect->setSource("orxonox/explosion_flash2"); 421 effect->setLifetime(5.0f); 422 } 423 { 424 ParticleSpawner* effect = new ParticleSpawner(this->getContext()); 425 effect->setPosition(this->getPosition()); 426 effect->setOrientation(this->getOrientation()); 427 effect->setDestroyAfterLife(true); 428 effect->setSource("orxonox/explosion_flame2"); 429 effect->setLifetime(5.0f); 430 } 431 { 432 ParticleSpawner* effect = new ParticleSpawner(this->getContext()); 433 effect->setPosition(this->getPosition()); 434 effect->setOrientation(this->getOrientation()); 435 effect->setDestroyAfterLife(true); 436 effect->setSource("orxonox/explosion_shockwave2"); 437 effect->scale(20); 438 effect->setLifetime(5.0f); 439 }{ 440 ParticleSpawner* effect = new ParticleSpawner(this->getContext()); 441 effect->setPosition(this->getPosition()); 442 effect->setOrientation(this->getOrientation()); 443 effect->setDestroyAfterLife(true); 444 effect->setSource("orxonox/explosion_sparks2"); 445 effect->setLifetime(5.0f); 446 } 447 { 448 ParticleSpawner* effect = new ParticleSpawner(this->getContext()); 449 effect->setPosition(this->getPosition()); 450 effect->setOrientation(this->getOrientation()); 451 effect->setDestroyAfterLife(true); 452 effect->setSource("orxonox/explosion_streak2"); 453 effect->setLifetime(5.0f); 454 } 455 { 456 ParticleSpawner* effect = new ParticleSpawner(this->getContext()); 457 effect->setPosition(this->getPosition()); 458 effect->setOrientation(this->getOrientation()); 459 effect->setDestroyAfterLife(true); 460 effect->setSource("orxonox/explosion_afterglow"); 461 effect->scale(20); 462 effect->setLifetime(5.0f); 463 } 464 465 413 466 for (unsigned int i = 0; i < this->numexplosionchunks_; ++i) 414 467 {
Note: See TracChangeset
for help on using the changeset viewer.