Changeset 10711 in orxonox.OLD for branches/presentation/src
- Timestamp:
- Jun 18, 2007, 12:34:45 AM (18 years ago)
- Location:
- branches/presentation/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/creatures/fps_player.cc
r10709 r10711 136 136 #if 1 137 137 this->getWeaponManager().changeWeaponConfig(1); 138 this->getWeaponManager().setSlotCount( 2);139 this->getWeaponManager().setSlotDirection(0, Quaternion(M_PI_4*-0.55f, Vector(0,0,1)));138 this->getWeaponManager().setSlotCount(1); 139 //this->getWeaponManager().setSlotDirection(0, Quaternion(M_PI_4*-0.55f, Vector(0,0,1))); 140 140 this->getWeaponManager().setSlotCapability(0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 141 this->getWeaponManager().setSlotDirection(1, Quaternion(M_PI_4*.5, Vector(1,0,0)));141 /*this->getWeaponManager().setSlotDirection(1, Quaternion(M_PI_4*.5, Vector(1,0,0))); 142 142 this->getWeaponManager().setSlotPosition(0, Vector(1.5, -0.7, 1.1)); 143 this->getWeaponManager().setSlotPosition(1, Vector(5.0, 0.0, 0.0)); 143 this->getWeaponManager().setSlotPosition(1, Vector(5.0, 0.0, 0.0));*/ 144 144 145 145 this->getWeaponManager().setParentNode(this->cameraNode); … … 152 152 if( true /*State::isOnline()*/ ) 153 153 { 154 FPSSniperRifle* wpRight= new FPSSniperRifle(0);155 w pRight->setName("testGun Right");156 this->addWeapon(w pRight,1, 0);157 w pRight->toList( this->getOMListNumber() );158 w pRight->setParent( this->cameraNode );159 w pRight->setForwardDamageToParent( true );154 weapon = new FPSSniperRifle(0); 155 weapon->setName("testGun Right"); 156 this->addWeapon(weapon,1, 0); 157 weapon->toList( this->getOMListNumber() ); 158 weapon->setParent( this->cameraNode ); 159 weapon->setForwardDamageToParent( true ); 160 160 //wpRight->requestAction( WA_ACTIVATE ); 161 161 //wpRight->addChild(this->aimingSystem); … … 173 173 this->weaponMan.setSlotCount(2); 174 174 this->weaponMan.createWeaponSlot(0, 0, 0, 0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 175 this->weaponMan.createWeaponSlot(1, 0, 0, 0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);175 //this->weaponMan.createWeaponSlot(1, 0, 0, 0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 176 176 this->weaponMan.addWeapon(wpRight, 0, 0); 177 177 this->weaponMan.changeWeaponConfig(0); … … 307 307 //this->getWeaponManager().setSlotPosition(0, Vector(-8.0, box->halfLength[1] * v, 1.1)); 308 308 //this->getWeaponManager().setSlotPosition(1, Vector(5.0, box->halfLength[1] * v, 0.0)); 309 this->getWeaponManager().setSlotDirection( 0, Quaternion( 0.04, Vector( 0, 0, 1 ) ) );309 //this->getWeaponManager().setSlotDirection( 0, Quaternion( 0.04, Vector( 0, 0, 1 ) ) ); 310 310 } 311 311 -
branches/presentation/src/world_entities/weapons/bsp_weapon.cc
r10710 r10711 200 200 (*it)->draw(); 201 201 } 202 #if 1202 #if 0 203 203 glMatrixMode(GL_MODELVIEW); 204 204 glPushMatrix(); … … 214 214 Vector mp = this->getAbsCoor(); 215 215 Vector op = this->getAbsDir().apply( Vector(1, 0, 0) ); 216 op *= 100 ;216 op *= 1000; 217 217 op += mp; 218 218 -
branches/presentation/src/world_entities/weapons/fps_sniper_rifle.cc
r10710 r10711 170 170 glPushMatrix(); 171 171 172 Vector pos = this->getAbsCoor() + this->getAbsDir().apply( Vector( 1, 0, 0) );172 Vector pos = this->getAbsCoor() + this->getAbsDir().apply( Vector(3, -1.6622, -0.967) ); 173 173 glTranslatef (pos.x, 174 174 pos.y,
Note: See TracChangeset
for help on using the changeset viewer.