Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 3, 2007, 4:54:42 PM (18 years ago)
Author:
bknecht
Message:

Camera:

  • Added new ViewMode ViewFPS

FPSPlayer:

  • fixed crosshair bug

FPSPlayer/KeyMapper/Globals:

  • started to implement crouch function
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/hud/src/world_entities/creatures/fps_player.h

    r10566 r10647  
    4343    void init();
    4444
    45     bool                  bLeft;
    46     bool                  bRight;
    47     bool                  bForward;
    48     bool                  bBackward;
    49     bool                  bJump;              //!< jumping
    50     bool                  bPosBut;             //!< position button
    51     bool                  bFire;              //!< fire button
     45    bool                  bLeft;             //!< strafe left
     46    bool                  bRight;            //!< strafe right
     47    bool                  bForward;          //!< walk forward
     48    bool                  bBackward;         //!< walk backward
     49    bool                  bJump;             //!< jumping
     50    bool                  bPosBut;           //!< position button
     51    bool                  bFire;             //!< fire button
     52    bool                  bCrouch;           //!< crouch button
    5253
    53     float                 xMouse;             //!< mouse moved in x-Direction
    54     float                 yMouse;             //!< mouse moved in y-Direction
     54    float                 xMouse;            //!< mouse moved in x-Direction
     55    float                 yMouse;            //!< mouse moved in y-Direction
    5556
    5657
    57     float                 heading;
    58     float                 attitude;
     58    float                 heading;           //!< the direction where the player heads to
     59    float                 attitude;          //!< defines the camera angle to the x-z-plane
    5960
    60     PNode                 cameraNode;
     61    PNode                 cameraNode;        //!< the "eyes" of the player (or call it head if you want)
    6162
    62     float                 fallVelocity;        //!< velocity for falling down
    63     float                 jumpAcceleration;    //!< the jump acceleration
     63    float                 fallVelocity;      //!< velocity for falling down
     64    float                 jumpAcceleration;  //!< the jump acceleration
    6465
    6566    bool                  initWeapon;
    6667
    67     AimingSystem*         aimingSystem;        //!< aiming system of the player
     68    AimingSystem*         aimingSystem;      //!< aiming system of the player
    6869
    69     float                 damageTicker;        //!< ticker for dealing damage
     70    float                 damageTicker;      //!< ticker for dealing damage
     71   
    7072};
    7173
Note: See TracChangeset for help on using the changeset viewer.