Changeset 10710 in orxonox.OLD for branches/presentation/src/world_entities/weapons/fps_sniper_rifle.cc
- Timestamp:
- Jun 17, 2007, 2:25:20 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/weapons/fps_sniper_rifle.cc
r10705 r10710 81 81 this->registerObject(this, FPSSniperRifle::_objectList); 82 82 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); 84 85 this->material = new Material(); 85 86 this->material->setIllum(3); 86 87 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"); 88 89 89 90 this->setStateDuration(WS_SHOOTING, .1); … … 169 170 glPushMatrix(); 170 171 171 Vector pos = this->getAbsCoor() + this->getAbsDir().apply( Vector( 2, 0, 0 ) );172 Vector pos = this->getAbsCoor() + this->getAbsDir().apply( Vector( 1, 0, 0 ) ); 172 173 glTranslatef (pos.x, 173 174 pos.y,
Note: See TracChangeset
for help on using the changeset viewer.