Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

weapon tuned for good

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.