Fix classique titles display
[ryzomcore.git] / ryzom / client / src / motion / modes / death_mode.cpp
blobcd987b635946469ee065af62d8a22860539aba7b
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
20 //////////////
21 // INCLUDES //
22 //////////////
23 #include "stdpch.h"
24 // Client.
25 #include "../../input.h"
26 #include "../user_controls.h"
27 #include "../../user_entity.h"
28 #include "../../view.h"
29 #include "../../interface_v3/interface_manager.h"
30 #include "../../entities.h"
33 ///////////
34 // USING //
35 ///////////
38 ////////////
39 // EXTERN //
40 ////////////
43 ///////////////
44 // Functions //
45 ///////////////
46 //-----------------------------------------------
47 // deathModeStart :
48 // Manage interactions in interactive mode (start).
49 //-----------------------------------------------
50 void CUserControls::deathModeStart()
52 // Mouse free look
53 SetMouseCursor();
54 // No more Velocity.
55 UserEntity->frontVelocity(0);
56 UserEntity->lateralVelocity(0);
57 // No more autowalk
58 _DirectionMove = none;
59 // Third person view but player dead, user is not selectable.
60 UserEntity->selectable(false);
61 _InternalView = false;
62 // Show/hide all or parts of the user body (after _InternaView is set).
63 UserEntity->updateVisualDisplay();
64 }// deathModeStart //
66 //-----------------------------------------------
67 // deathModeStop :
68 // Manage interactions in interactive mode (stop).
69 //-----------------------------------------------
70 void CUserControls::deathModeStop()
72 }// deathModeStop //
74 //-----------------------------------------------
75 // deathMode :
76 // Manage interactions in free head mode.
77 //-----------------------------------------------
78 void CUserControls::deathMode()
80 // Set the view.
81 View.view(CVector(0,0.01f,-1));
82 View.viewPos(UserEntity->pos() + CVector(0,0,4));
83 }// deathMode //