Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9213 in orxonox.OLD for branches


Ignore:
Timestamp:
Jul 5, 2006, 12:13:06 PM (18 years ago)
Author:
patrick
Message:

weapon tuned for good

Location:
branches/presentation/src/world_entities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/creatures/fps_player.cc

    r9212 r9213  
    169169
    170170  this->initWeapon = false;
     171  toList( OM_PLAYERS );
    171172}
    172173
     
    366367    velocity -= Vector(0.0, 1.0, 0.0) * this->fallVelocity;
    367368
    368     PRINTF(0)("vel %f\n", this->fallVelocity);
     369//     PRINTF(0)("vel %f\n", this->fallVelocity);
    369370  }
    370371  else
     
    463464}
    464465
     466
    465467void FPSPlayer::destroy( WorldEntity* killer )
    466468{
  • branches/presentation/src/world_entities/projectiles/laser.cc

    r9162 r9213  
    4242
    4343  this->setMinEnergy(10);
    44   this->setHealthMax(10);
     44  this->setHealthMax(0);
    4545  this->lifeSpan = 5.0;
    4646
     
    8888  }
    8989
    90   this->setHealth(10);
     90  this->setDamage(0);
     91  this->setHealth(0);
    9192}
    9293
  • branches/presentation/src/world_entities/weapons/fps_sniper_rifle.cc

    r9003 r9213  
    145145    return;
    146146
    147   pj->setParent(PNode::getNullParent());
     147  pj->setParent(this);
     148  pj->setParentMode(PNODE_ROTATE_AND_MOVE);
    148149
    149   pj->setVelocity(this->getAbsDir().apply(Vector(1,0,0))*250 + VECTOR_RAND(5));
     150  pj->setVelocity(this->getAbsDir().apply(Vector(1,0,0))*550 + VECTOR_RAND(5) );
    150151
    151   pj->setAbsCoor(this->getEmissionPoint());
     152  pj->setAbsCoor(this->getEmissionPoint() + this->getAbsDirX() * 25.0f);
    152153  pj->setAbsDir(this->getAbsDir());
    153154  pj->activate();
Note: See TracChangeset for help on using the changeset viewer.