Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10713 in orxonox.OLD


Ignore:
Timestamp:
Jun 18, 2007, 2:00:28 PM (17 years ago)
Author:
rennerc
Message:
 
Location:
branches/presentation/src/world_entities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/npcs/actionbox_enemy.cc

    r10712 r10713  
    321321  explosionParticles = new SpriteParticles(200);
    322322  explosionParticles->setName("SpaceShipExplosionParticles");
    323   explosionParticles->setLifeSpan(.2, .3);
     323  explosionParticles->setLifeSpan(.3, .7);
    324324  explosionParticles->setRadius(0.0, 10.0);
    325325  explosionParticles->setRadius(.5, 6.0);
     
    334334  emitter->setEmissionRate( 200.0);
    335335
    336   node  = new EmitterNode( .1f);
     336  node  = new EmitterNode( .4f );
    337337  node->setupParticle( emitter, explosionParticles);
    338338  node->setAbsDir( this->getAbsDir());
     
    343343 
    344344  this->setAbsCoor( this->getAbsCoor() + Vector(100,0,0) + Vector(1,0,0) * VECTOR_RAND(150).dot(Vector(1,0,0)));
    345 }
     345 
     346  toList( OM_DEAD );
     347}
  • branches/presentation/src/world_entities/weapons/bsp_weapon.cc

    r10712 r10713  
    119119        bFire = false;
    120120        range = 1000;
     121#ifdef DEBUG_AIMING
     122        debugDist = 1000;
     123#endif
    121124        damage = 10;
    122125        fireRate = 0.5;
     
    168171  {
    169172    printf("HIT WALL\n");
     173#ifdef DEBUG_AIMING
     174    this->debugDist = shortestDist;
     175#endif
    170176    return;
    171177  }
     178#ifdef DEBUG_AIMING
     179  else
     180  {
     181    this->debugDist = 1000;
     182  }
     183#endif
    172184  if (!alwaysHits)
    173185  {
     
    205217    (*it)->draw();
    206218  }
    207 #if 0
     219#if 1
    208220  glMatrixMode(GL_MODELVIEW);
    209221  glPushMatrix();
     
    219231  Vector mp = this->getAbsCoor();
    220232  Vector op = this->getAbsDir().apply( Vector(1, 0, 0) );
     233#ifdef DEBUG_AIMING
     234  op *= debugDist;
     235#else
    221236  op *= 1000;
     237#endif
    222238  op += mp;
    223239
  • branches/presentation/src/world_entities/weapons/bsp_weapon.h

    r10712 r10713  
    8181                float bRate;
    8282                bool bFire;
     83#ifdef DEBUG_AIMING
     84                float debugDist;
     85#endif
    8386
    8487                AimingSystem* aimingSystem;
Note: See TracChangeset for help on using the changeset viewer.