Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10109 in orxonox.OLD


Ignore:
Timestamp:
Dec 19, 2006, 11:14:27 PM (17 years ago)
Author:
nicolasc
Message:

bump

Location:
branches/playability/src/world_entities
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/projectiles/hbolt.cc

    r10104 r10109  
    117117{
    118118  printf("Collision with HBolt\n");
    119   if (this->hitEntity != entity/* && entity->isA(CL_NPC)*/ || entity == this->target)
     119  if (this->hitEntity != entity && entity->isA(CL_NPC) || entity == this->target)
    120120    this->destroy( entity );
    121121  this->hitEntity = entity;
    122122  dynamic_cast<SpaceShip*>(entity)->damage( this->getPhysDamage(), this->getElecDamage());
    123 //   this->deactivate();
     123  this->deactivate();
    124124}
    125125
  • branches/playability/src/world_entities/projectiles/swarm_projectile.cc

    r10104 r10109  
    137137  this->hitEntity = entity;
    138138  dynamic_cast<SpaceShip*>(entity)->damage(this->getPhysDamage(),this->getElecDamage());
    139   this->destroy(NULL);
     139  this->destroy(this);
    140140}
    141141
     
    243243  this->lastDir = this->curDir;
    244244  this->curDir = this->velocity;
    245   if( (this->getAbsCoor() - this->target->getAbsCoor()).len() < 1)   // FIXME  Temp fake workaround for collision :)
     245  if( (this->getAbsCoor() - this->target->getAbsCoor()).len() < 3)   // FIXME  Temp fake workaround for collision :)
    246246  {
    247247    dynamic_cast<WorldEntity*>(target)->destroy( this);
     
    256256{
    257257
    258   printf("THIS SHOULD WORK!\n");
     258//   printf("THIS SHOULD WORK!\n");
    259259
    260260  Projectile::destroy( killer );
  • branches/playability/src/world_entities/space_ships/space_ship.cc

    r10107 r10109  
    376376  this->secWeaponMan.showCrosshair();
    377377  this->toList( OM_GROUP_01 );
    378   /*
     378 
    379379  for(ObjectList<PNode>::const_iterator it = this->getNodesChildren().begin(); it != this->getNodesChildren().end(); it++)
    380380  {
    381381    if( likely( dynamic_cast<Weapon*>(*it) != NULL))
    382382      dynamic_cast<WorldEntity*>(*it)->toList( OM_GROUP_01);
    383   }*/
     383  }
    384384  //dynamic_cast<Element2D*>(this->secWeaponMan.getFixedTarget())->setVisibility( true);
    385385  //this->attachCamera();
     
    391391  this->secWeaponMan.hideCrosshair();
    392392  this->toList( OM_GROUP_00);
    393   /*
     393 
    394394  for(ObjectList<PNode>::const_iterator it = this->getNodesChildren().begin(); it != this->getNodesChildren().end(); it++)
    395395  {
    396396    if( likely( dynamic_cast<Weapon*>(*it) != NULL))
    397397      dynamic_cast<WorldEntity*>(*it)->toList( OM_GROUP_00);
    398   }*/
     398  }
    399399  //dynamic_cast<Element2D*>(this->secWeaponMan.getFixedTarget())->setVisibility( false);
    400400  //this->detachCamera();
  • branches/playability/src/world_entities/weapons/heavy_blaster.cc

    r10046 r10109  
    101101  pj->setAbsCoor(this->getEmissionPoint());
    102102  pj->setAbsDir(this->getAbsDir());
     103  pj->toList(OM_GROUP_01_PROJ);
    103104  pj->activate();
    104105}
  • branches/playability/src/world_entities/weapons/light_blaster.cc

    r10046 r10109  
    9898  pj->setAbsCoor(this->getEmissionPoint());
    9999  pj->setAbsDir(this->getAbsDir());
     100  pj->toList(OM_GROUP_01_PROJ);
    100101  pj->activate();
    101102}
  • branches/playability/src/world_entities/weapons/medium_blaster.cc

    r10098 r10109  
    100100  pj->setAbsCoor(this->getEmissionPoint());
    101101  pj->setAbsDir(this->getAbsDir());
     102  pj->toList(OM_GROUP_01_PROJ);
    102103  pj->activate();
    103104}
  • branches/playability/src/world_entities/weapons/swarm_launcher.cc

    r10107 r10109  
    163163      pj->setAbsDir(this->getAbsDir());
    164164      dynamic_cast<SwarmProjectile*>(pj)->setTarget( (PNode*)(*eIterator) );
     165      pj->toList(OM_GROUP_01_PROJ);
    165166      pj->activate();
    166 
    167167    }
    168168  }
Note: See TracChangeset for help on using the changeset viewer.