Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 17, 2007, 2:25:20 PM (17 years ago)
Author:
rennerc
Message:

player cannot shoot throu walls
per default worldentities cannot be killed
weapon correct again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/weapons/fps_sniper_rifle.cc

    r10705 r10710  
    8181  this->registerObject(this, FPSSniperRifle::_objectList);
    8282
    83   this->loadModel("models/guns/fps_sniper_rifle.obj", 0.2);
     83  this->setAbsDir( this->getAbsDir() * Quaternion( -PI/2, Vector(1, 0, 0) ) );
     84  this->loadModel("models/guns/fps_sniper_rifle.obj", 1.5);
    8485  this->material = new Material();
    8586  this->material->setIllum(3);
    8687  this->material->setAmbient(1.0, 1.0, 1.0);
    87   this->material->setDiffuseMap("textures/rifle01tex.jpg");
     88  this->material->setDiffuseMap("textures/fps_sniper_rifle.jpg");
    8889
    8990  this->setStateDuration(WS_SHOOTING, .1);
     
    169170  glPushMatrix();
    170171
    171   Vector pos = this->getAbsCoor() + this->getAbsDir().apply( Vector( 2, 0, 0 ) );
     172  Vector pos = this->getAbsCoor() + this->getAbsDir().apply( Vector( 1, 0, 0 ) );
    172173  glTranslatef (pos.x,
    173174                pos.y,
Note: See TracChangeset for help on using the changeset viewer.