-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathPlayerModelView.h
More file actions
62 lines (49 loc) · 1.33 KB
/
PlayerModelView.h
File metadata and controls
62 lines (49 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
PlayerModelView.cpp -- player model view
Copyright (C) 2018 a1batross
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
#ifndef CMENUPLAYERMODELVIEW_H
#define CMENUPLAYERMODELVIEW_H
#include "xash3d_types.h"
// HLSDK includes
#include "const.h"
#include "ref_params.h"
#include "cl_entity.h"
#include "com_model.h"
#include "entity_types.h"
// HLSDK includes end
#include "BaseItem.h"
class CMenuPlayerModelView : public CMenuBaseItem
{
public:
CMenuPlayerModelView();
void VidInit() override;
void Draw() override;
bool KeyDown( int key ) override;
bool KeyUp( int key ) override;
void CalcFov();
HIMAGE hPlayerImage;
ref_viewpass_t refdef;
cl_entity_t *ent;
bool bDrawAsPlayer;
enum
{
PMV_DONTCARE = 0,
PMV_SHOWMODEL,
PMV_SHOWIMAGE
} eOverrideMode;
CColor backgroundColor;
CColor outlineFocusColor;
private:
bool mouseYawControl;
int prevCursorX, prevCursorY;
};
#endif // CMENUPLAYERMODELVIEW_H