Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 5, 2006, 4:39:02 PM (18 years ago)
Author:
bensch
Message:

merged the presentation back

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/fps_sniper_rifle.cc

    r9003 r9235  
    3333#include "fps_sniper_rifle.h"
    3434
     35
     36#include "effects/explosion.h"
    3537
    3638using namespace std;
     
    145147    return;
    146148
    147   pj->setParent(PNode::getNullParent());
     149//   Explosion::explode(this, Vector(0.1,0.1,0.1));
    148150
    149   pj->setVelocity(this->getAbsDir().apply(Vector(1,0,0))*250 + VECTOR_RAND(5));
     151  pj->setParent(this);
     152  pj->setParentMode(PNODE_ROTATE_AND_MOVE);
    150153
    151   pj->setAbsCoor(this->getEmissionPoint());
     154  pj->setVelocity(this->getAbsDir().apply(Vector(1,0,0))*550 + VECTOR_RAND(5) );
     155
     156  pj->setAbsCoor(this->getEmissionPoint() + this->getAbsDirX() * 25.0f);
    152157  pj->setAbsDir(this->getAbsDir());
    153158  pj->activate();
Note: See TracChangeset for help on using the changeset viewer.