Nuclide
Software Development Kit for id Technology (BETA)
Loading...
Searching...
No Matches
Radar.h
1/*
2 * Copyright (c) 2023 Vera Visions LLC.
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*/
16
21
28class
30{
31public:
32 void ncRadar(void);
33
35 nonvirtual ncRadar InitForCurrentMap(void);
37 nonvirtual ncRadar InitWithMapname(string);
38
40 nonvirtual ncRadar InitFromHLTVScript(string);
42 nonvirtual ncRadar InitFromSourceHLTVScript(string);
44 nonvirtual ncRadar InitWireframe(void);
46 nonvirtual ncRadar InitEmpty(void);
47
48 nonvirtual void RenderOverviewPlane(void);
49 nonvirtual void RenderWireframePlane(void);
50
51 nonvirtual void SetRadarPitch(float);
52
53 virtual void RenderPlayerIcon(entity);
54
55 /* overrides */
56 virtual void RenderView(void);
57 virtual void SetupView(void);
58
59private:
60 /* internal */
61 vector m_vecOrigin;
62 bool m_bRotated;
63 string m_strMaterial;
64 float m_flScale;
65 float m_flHeight;
66 float m_flZoom;
67
68 vector m_vecVert1;
69 vector m_vecVert2;
70 vector m_vecVert3;
71 vector m_vecVert4;
72
73 bool m_bShowPlayers;
74
75 float m_flRadarPitch;
76
77 nonvirtual void CalculateVertices(void);
78 nonvirtual void CalculateVerticesSource(float, float);
79};
80 // end of client
virtual void SetupView(void)
the only method we we want to call setproperty()
Definition Radar.qc:37
virtual void RenderView(void)
only does one thing: renderscene()
Definition Radar.qc:136
nonvirtual ncRadar InitFromHLTVScript(string)
Init as Overview from GoldSrc HLTV script file.
Definition Radar.qc:226
nonvirtual void RenderWireframePlane(void)
Definition Radar.qc:99
nonvirtual void RenderOverviewPlane(void)
Definition Radar.qc:81
nonvirtual ncRadar InitForCurrentMap(void)
Init a radar for the map we're currently on.
Definition Radar.qc:173
void ncRadar(void)
Definition Radar.qc:18
virtual void RenderPlayerIcon(entity)
Definition Radar.qc:56
nonvirtual ncRadar InitEmpty(void)
Init an empty overview.
Definition Radar.qc:153
nonvirtual ncRadar InitFromSourceHLTVScript(string)
Init as Overview from Source Engine HLTV script file.
Definition Radar.qc:313
nonvirtual void SetRadarPitch(float)
Definition Radar.qc:31
nonvirtual ncRadar InitWireframe(void)
Init a wireframe overview.
Definition Radar.qc:163
nonvirtual ncRadar InitWithMapname(string)
Init a radar for a specified map, will automatically choose the best available type.
Definition Radar.qc:179
void ncView(void)
Definition View.qc:23