Changeset 9975 in orxonox.OLD for branches/playability/src/world_entities/weapons/light_blaster.cc
- Timestamp:
- Nov 29, 2006, 5:15:10 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/weapons/light_blaster.cc
r9972 r9975 44 44 void LightBlaster::init() 45 45 { 46 this->registerObject(this, LightBlaster::_objectList);46 //this->registerObject(this, LightBlaster::_objectList); 47 47 48 48 // this->model = (Model*)ResourceManager::getInstance()->load("models/guns/test_gun.obj", OBJ, RP_CAMPAIGN); … … 90 90 return; 91 91 92 // set the owner 93 pj->setOwner(this->getOwner()); 94 92 95 pj->setParent(PNode::getNullParent()); 93 96 94 pj->setVelocity(this->get Velocity() + this->getAbsDir().apply(Vector(1,0,0))*15+VECTOR_RAND(5));97 pj->setVelocity(this->getAbsDir().apply(Vector(1,0,0))*250 + VECTOR_RAND(5)); 95 98 96 99 pj->setAbsCoor(this->getEmissionPoint()); … … 112 115 { 113 116 } 117 118 void LightBlaster::draw() const 119 { 120 }
Note: See TracChangeset
for help on using the changeset viewer.