Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10528 in orxonox.OLD for trunk


Ignore:
Timestamp:
Jan 31, 2007, 12:13:14 AM (17 years ago)
Author:
patrick
Message:

iterative mp part sys fix

Location:
trunk/src/world_entities
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/mount_point.cc

    r10526 r10528  
    146146    {
    147147      PRINTF(0)("got particle system. attaching it to mp\n");
    148       dynamic_cast<ParticleSystem*>(this->_mount)->attachEmmittersTo(this, Vector(0,0,0));
     148      dynamic_cast<ParticleSystem*>(this->_mount)->attachEmmittersTo(this, Vector(0,0,0), this->getRelDir());
    149149    }
    150150  }
  • trunk/src/world_entities/particles/particle_system.cc

    r10523 r10528  
    286286 * @param node
    287287 */
    288 void ParticleSystem::attachEmmittersTo(PNode* node, const Vector& offset)
     288void ParticleSystem::attachEmmittersTo(PNode* node, const Vector& offset, const Quaternion& dir)
    289289{
    290290  std::list<ParticleEmitter*>::iterator it = this->emitters.begin();
     
    294294    (*it)->setParent(node);
    295295    (*it)->setRelCoor(offset);
     296    (*it)->setRelDir(dir);
    296297  }
    297298}
  • trunk/src/world_entities/particles/particle_system.h

    r10523 r10528  
    9696  void removeEmitter(ParticleEmitter* emitter);
    9797
    98   void attachEmmittersTo(PNode* node, const Vector& offset);
     98  void attachEmmittersTo(PNode* node, const Vector& offset, const Quaternion& dir);
    9999
    100100  virtual void applyField(const Field* field);
  • trunk/src/world_entities/weapons/light_blaster.cc

    r10516 r10528  
    127127void LightBlaster::fire()
    128128{
     129  PRINTF(0)("=>>fir\n");
    129130  Projectile* pj =  this->getProjectile();
    130131  if (pj == NULL)
  • trunk/src/world_entities/weapons/weapon.cc

    r10516 r10528  
    440440    if (this->requestedAction != WA_NONE)
    441441      return;
    442     PRINTF(5)("next action will be %s in %f seconds\n", actionToChar(action), this->stateDuration);
     442    PRINTF(0)("next action will be %s in %f seconds\n", actionToChar(action), this->stateDuration);
    443443    this->requestedAction = action;
    444444  }
  • trunk/src/world_entities/weapons/weapon_manager.cc

    r10526 r10528  
    441441    if( firingWeapon != NULL)
    442442    {
    443       PRINTF(0)("!=NULL\n");
    444443      if( firingWeapon->getCurrentState() == WS_SHOOTING) continue;
    445       PRINTF(0)("FIRE\n");
    446444
    447445      firingWeapon->requestAction(WA_SHOOT);
     
    464462  {
    465463    firingWeapon = this->currentSlotConfig[i]->getCurrentWeapon();
    466     if( firingWeapon != NULL) firingWeapon->requestAction(WA_NONE);
     464    if( firingWeapon != NULL)
     465      firingWeapon->requestAction(WA_NONE);
    467466  }
    468467
Note: See TracChangeset for help on using the changeset viewer.