Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 29, 2006, 5:15:10 PM (17 years ago)
Author:
marcscha
Message:

fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/weapons/light_blaster.cc

    r9972 r9975  
    4444void LightBlaster::init()
    4545{
    46   this->registerObject(this, LightBlaster::_objectList);
     46  //this->registerObject(this, LightBlaster::_objectList);
    4747
    4848//  this->model = (Model*)ResourceManager::getInstance()->load("models/guns/test_gun.obj", OBJ, RP_CAMPAIGN);
     
    9090    return;
    9191
     92  // set the owner
     93  pj->setOwner(this->getOwner());
     94
    9295  pj->setParent(PNode::getNullParent());
    9396
    94   pj->setVelocity(this->getVelocity() + 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));
    9598
    9699  pj->setAbsCoor(this->getEmissionPoint());
     
    112115{
    113116}
     117
     118void LightBlaster::draw() const
     119{
     120}
Note: See TracChangeset for help on using the changeset viewer.