Changeset 9213 in orxonox.OLD for branches/presentation/src/world_entities/weapons/fps_sniper_rifle.cc
- Timestamp:
- Jul 5, 2006, 12:13:06 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/weapons/fps_sniper_rifle.cc
r9003 r9213 145 145 return; 146 146 147 pj->setParent(PNode::getNullParent()); 147 pj->setParent(this); 148 pj->setParentMode(PNODE_ROTATE_AND_MOVE); 148 149 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) ); 150 151 151 pj->setAbsCoor(this->getEmissionPoint() );152 pj->setAbsCoor(this->getEmissionPoint() + this->getAbsDirX() * 25.0f); 152 153 pj->setAbsDir(this->getAbsDir()); 153 154 pj->activate();
Note: See TracChangeset
for help on using the changeset viewer.