Changeset 6883
- Timestamp:
- May 10, 2010, 4:17:20 PM (15 years ago)
- Location:
- code/branches/fps
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/fps/data/levels/templates/fps.oxt
r6872 r6883 1 1 <Template name=fps> 2 2 <FpsPlayer 3 hudtemplate = spaceshiphud3 hudtemplate = fpshud 4 4 camerapositiontemplate = fpscamera 5 5 … … 29 29 --> 30 30 <collisionShapes> 31 <BoxCollisionShape position="0,0,0" halfExtents=" 100,10,100" />31 <BoxCollisionShape position="0,0,0" halfExtents="7,7,7" /> 32 32 <!-- 33 33 <SphereCollisionShape radius="10" /> -
code/branches/fps/data/overlays/hudtamplates_fps.oxo
r6867 r6883 4 4 </Template> 5 5 6 <Template name=" spaceshiphud">7 <OverlayGroup name = " spaceshiphud" scale = "1, 1">6 <Template name="fpshud"> 7 <OverlayGroup name = "fpshud" scale = "1, 1"> 8 8 <Map /> 9 9 … … 73 73 /> 74 74 75 <GUIOverlay75 <!-- <GUIOverlay 76 76 name = "QuestGUI" 77 77 guiname = "QuestGUI" 78 78 visible = "false" 79 79 /> 80 80 --> 81 81 </OverlayGroup> 82 82 </Template> -
code/branches/fps/src/orxonox/controllers/NewHumanController.cc
r6866 r6883 210 210 if (!controlPaused_ ) 211 211 { 212 if (this->getControllableEntity() && (this->getControllableEntity()->isExactlyA(ClassByString("SpaceShip")) || this->getControllableEntity()->isExactlyA(ClassByString("Rocket")) || this->getControllableEntity()->isExactlyA(ClassByString("FpsPlayer")))) 213 this->showOverlays(); 212 if (this->getControllableEntity() && (this->getControllableEntity()->isExactlyA(ClassByString("SpaceShip")) || this->getControllableEntity()->isExactlyA(ClassByString("Rocket")))) 213 {this->showOverlays();} 214 215 if (this->getControllableEntity() && this->getControllableEntity()->isExactlyA(ClassByString("FpsPlayer")))\ 216 {this->showOverlays(); 217 this->hideArrows();} 214 218 215 219 this->crossHairOverlay_->setPosition(Vector2(static_cast<float>(this->currentYaw_)/2*-1+.5f-overlaySize_/2, static_cast<float>(this->currentPitch_)/2*-1+.5f-overlaySize_/2)); … … 460 464 if (this->getControllableEntity() && (this->getControllableEntity()->isExactlyA(ClassByString("SpaceShip")) || this->getControllableEntity()->isExactlyA(ClassByString("Rocket")))) 461 465 { 466 462 467 this->showOverlays_ = true; 463 468 if (!this->controlPaused_)
Note: See TracChangeset
for help on using the changeset viewer.