Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9158 in orxonox.OLD


Ignore:
Timestamp:
Jul 4, 2006, 5:34:16 PM (18 years ago)
Author:
patrick
Message:

fps player better

Location:
branches/presentation/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/WorldEntities.am

    r9131 r9158  
    2929                world_entities/weapons/hyperblaster.cc \
    3030                world_entities/weapons/aim.cc \
     31                world_entities/weapons/aiming_system.cc \
    3132                world_entities/weapons/fps_sniper_rifle.cc \
    3233                \
     
    9596                weapons/targeting_turret.h \
    9697                weapons/aim.h \
     98                weapons/aiming_system.h \
    9799                weapons/fps_sniper_rifle.h \
    98100                \
  • branches/presentation/src/world_entities/creatures/fps_player.cc

    r9151 r9158  
    230230      State::getCameraTargetNode()->setRelCoor(10, box->halfLength[1] * f, 0);
    231231
     232      State::getCameraNode()->setParentMode(PNODE_ROTATE_AND_MOVE);
     233
     234
    232235      this->getWeaponManager().setSlotPosition(0, Vector(1.5, box->halfLength[1] * f - 0.7, 1.1));
    233236      this->getWeaponManager().setSlotPosition(1, Vector(5.0, box->halfLength[1] * f, 0.0));
     
    253256    attitude-= yMouse;
    254257
    255     if ( attitude > 2.05 )
    256       attitude = 2.05;
    257 
    258     else if ( attitude < -1.15 )
    259       attitude = -1.15;
     258    PRINTF(0)("attitude: %f\n", attitude);
     259
     260    if ( attitude > 0.32 )
     261      attitude = 0.32;
     262
     263    else if ( attitude < -2.1 )
     264      attitude = -2.1;
    260265
    261266    xMouse = yMouse = 0;
     
    405410}
    406411
     412
    407413void FPSPlayer::respawn( )
    408414{
Note: See TracChangeset for help on using the changeset viewer.