1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
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.
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/>.
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"
46 //-----------------------------------------------
48 // Manage interactions in interactive mode (start).
49 //-----------------------------------------------
50 void CUserControls::deathModeStart()
55 UserEntity
->frontVelocity(0);
56 UserEntity
->lateralVelocity(0);
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();
66 //-----------------------------------------------
68 // Manage interactions in interactive mode (stop).
69 //-----------------------------------------------
70 void CUserControls::deathModeStop()
74 //-----------------------------------------------
76 // Manage interactions in free head mode.
77 //-----------------------------------------------
78 void CUserControls::deathMode()
81 View
.view(CVector(0,0.01f
,-1));
82 View
.viewPos(UserEntity
->pos() + CVector(0,0,4));