summaryrefslogtreecommitdiff
path: root/gmod/CHLClient.hpp
blob: 4ed244cb8683e760e10f3292415291839f5fb0b1 (plain)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#pragma once
#include "util.hpp"
#include "IClientEntityList.hpp"
#include "ClientClass.hpp"
#include "color.hpp"

enum ClientFrameStage_t {
	FRAME_UNDEFINED = -1,
	FRAME_START,
	FRAME_NET_UPDATE_START,
	FRAME_NET_UPDATE_POSTDATAUPDATE_START,
	FRAME_NET_UPDATE_POSTDATAUPDATE_END,
	FRAME_NET_UPDATE_END,
	FRAME_RENDER_START,
	FRAME_RENDER_END
};

struct GlowObject_t {
	IClientEntity* m_pEntity;
	fclr_t color;
	char junk0[ 8 ];
	float m_flBloomAmount;
	char junk1[ 4 ];
	bool m_bRenderWhenOccluded;
	bool m_bRenderWhenUnoccluded;
	bool m_bFullBloom;
	char junk2[ 14 ];
};

struct GlowObjectManager_t {
	GlowObject_t* DataPtr; //0000 
	unsigned int Max; //0004 
	unsigned int unk02; //0008 
	unsigned int Count; //000C 
	unsigned int DataPtrBack; //0010 
	int m_nFirstFreeSlot; //0014 
	unsigned int unk1; //0018 
	unsigned int unk2; //001C 
	unsigned int unk3; //0020 
	unsigned int unk4; //0024 
	unsigned int unk5; //0028 
};

class IBaseClientDLL
{
public:
	ClientClass* GetAllClasses( ) {
		using fn = ClientClass*( __thiscall* )( void* );
		return util::get_vfunc< fn >( this, 8 )( this );
	}

	/*
	DONTCARE
	void SetCrosshairAngle( Vector& angle )
	{
		typedef void( __thiscall* SetCrosshairAngleFn )( void*, Vector& );
		CallVFunction<SetCrosshairAngleFn>( this, 29 )( this, angle );
	}

	void HudProcessInput( bool enable )
	{
		using fn = void( __thiscall* )( void*, bool );
		CallVFunction<fn>( this, 10 )( this, enable );
	}

	void HudUpdate( bool enable )
	{
		using fn = void( __thiscall* )( void*, bool );
		CallVFunction<fn>( this, 11 )( this, enable );
	}

	void IN_ActivateMouse( )
	{
		using fn = void( __thiscall* )( void* );
		CallVFunction<fn>( this, 15 )( this );
	}

	void IN_DeactivateMouse( )
	{
		using fn = void( __thiscall* )( void* );
		CallVFunction<fn>( this, 16 )( this );
	}*/
};