Changeset 9235 in orxonox.OLD for trunk/src/world_entities/weapons
- Timestamp:
- Jul 5, 2006, 4:39:02 PM (18 years ago)
- Location:
- trunk/src/world_entities/weapons
- Files:
-
- 1 edited
- 6 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/fps_sniper_rifle.cc
r9003 r9235 33 33 #include "fps_sniper_rifle.h" 34 34 35 36 #include "effects/explosion.h" 35 37 36 38 using namespace std; … … 145 147 return; 146 148 147 pj->setParent(PNode::getNullParent());149 // Explosion::explode(this, Vector(0.1,0.1,0.1)); 148 150 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); 150 153 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); 152 157 pj->setAbsDir(this->getAbsDir()); 153 158 pj->activate();
Note: See TracChangeset
for help on using the changeset viewer.