- Timestamp:
- Nov 27, 2017, 3:28:41 PM (7 years ago)
- Location:
- code/branches/SOBv2_HS17
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SOBv2_HS17/data/levels/SOB.oxw
r11597 r11599 57 57 58 58 <collisionShapes> 59 <BoxCollisionShape position=" -2,0,2" halfExtents="3,1,10" />59 <BoxCollisionShape position="0,0,2" halfExtents="3,1,10" /> 60 60 </collisionShapes> 61 61 … … 69 69 <attached> 70 70 <Model mesh="planets/sol.mesh" position="0,0,0" scale=3 pitch=90/> 71 72 <ParticleSpawner source="Orxonox/fire4" startdelay=0 position="-4,0,0" visible="false"/> 71 73 72 74 </attached> -
code/branches/SOBv2_HS17/src/modules/superorxobros/SOBFigure.cc
r11597 r11599 23 23 * Julien Kindle 24 24 * Co-authors: 25 * Noah Zarro 26 * Theo von Arx 25 27 * 26 28 * … … 160 162 161 163 else if (fireball != nullptr && !(fireball->hasCollided_)){ 164 if(PowerUpCounter_ == 0){ 165 this->die(); 166 } 162 167 PowerUpCounter_--; 163 168 this->changeClothes(); … … 232 237 particlespawner_ = object; 233 238 } 234 } 239 240 } 241 235 242 236 243 … … 300 307 else 301 308 particlespawner_->setVisible(false); 302 309 303 310 304 311 //If player hits space and collides against an object under him then jump 305 312 if (inputAllowed && firePressed_ && isColliding_ && (collDisZ_ >= 0 && collDisZ_ <+ 10)) { 306 gravityAcceleration_ = 100.0;307 velocity.z = 1 10;313 gravityAcceleration_ = 350; 314 velocity.z = 175; 308 315 } 309 316 -
code/branches/SOBv2_HS17/src/modules/superorxobros/SOBFireball.cc
r11597 r11599 42 42 #include "util/Output.h" 43 43 #include <BulletCollision/NarrowPhaseCollision/btManifoldPoint.h> 44 #include "graphics/ParticleSpawner.h" 45 44 46 45 47 … … 58 60 this->enableCollisionCallback(); 59 61 gravityAcceleration_ = 350.0; 62 60 63 speed_ = 0; 61 64 hasCollided_=false; … … 68 71 collDisZ_ = 0; 69 72 hitCounter_ = 0; 70 73 particlespawner_ = NULL ; 74 75 76 77 78 71 79 } 72 80 … … 147 155 SUPER(SOBFireball, tick, dt); 148 156 157 //the particle spawner that generates the fire from the backpack when pressed 158 if (particlespawner_ == NULL) { 159 for (WorldEntity* object : this->getAttachedObjects()) 160 { 161 if (object->isA(Class(ParticleSpawner))) 162 particlespawner_ = object; 163 } 164 165 } 166 167 if(particlespawner_ != NULL) 168 particlespawner_->setVisible(true); 149 169 if (!changeAllowed_) { 150 170 changedOn_+= dt; -
code/branches/SOBv2_HS17/src/modules/superorxobros/SOBFireball.h
r11577 r11599 72 72 float changedOn_; 73 73 int hitCounter_; 74 WorldEntity* particlespawner_; 75 74 76 75 77
Note: See TracChangeset
for help on using the changeset viewer.