Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6883


Ignore:
Timestamp:
May 10, 2010, 4:17:20 PM (15 years ago)
Author:
freicy
Message:

by cyrill

Location:
code/branches/fps
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/fps/data/levels/templates/fps.oxt

    r6872 r6883  
    11<Template name=fps>
    22  <FpsPlayer
    3    hudtemplate            = spaceshiphud
     3   hudtemplate            = fpshud
    44   camerapositiontemplate = fpscamera
    55 
     
    2929-->
    3030    <collisionShapes>
    31       <BoxCollisionShape position="0,0,0" halfExtents="100,10,100" />
     31      <BoxCollisionShape position="0,0,0" halfExtents="7,7,7" />
    3232    <!--
    3333      <SphereCollisionShape radius="10" />
  • code/branches/fps/data/overlays/hudtamplates_fps.oxo

    r6867 r6883  
    44</Template>
    55
    6 <Template name="spaceshiphud">
    7   <OverlayGroup name = "spaceshiphud" scale = "1, 1">
     6<Template name="fpshud">
     7  <OverlayGroup name = "fpshud" scale = "1, 1">
    88    <Map />
    99
     
    7373    />
    7474
    75     <GUIOverlay
     75 <!--   <GUIOverlay
    7676      name = "QuestGUI"
    7777      guiname = "QuestGUI"
    7878      visible = "false"
    7979    />
    80 
     80-->
    8181  </OverlayGroup>
    8282</Template>
  • code/branches/fps/src/orxonox/controllers/NewHumanController.cc

    r6866 r6883  
    210210                if (!controlPaused_ )
    211211                {
    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();}
    214218
    215219                    this->crossHairOverlay_->setPosition(Vector2(static_cast<float>(this->currentYaw_)/2*-1+.5f-overlaySize_/2, static_cast<float>(this->currentPitch_)/2*-1+.5f-overlaySize_/2));
     
    460464        if (this->getControllableEntity() && (this->getControllableEntity()->isExactlyA(ClassByString("SpaceShip")) || this->getControllableEntity()->isExactlyA(ClassByString("Rocket"))))
    461465        {
     466           
    462467            this->showOverlays_ = true;
    463468            if (!this->controlPaused_)
Note: See TracChangeset for help on using the changeset viewer.