aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/r2server.h
blob: 58b39a053773604f148ac99c18f0a349942eed95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

// use the R2 namespace for game funcs
namespace R2
{
	// server entity stuff
	class CBaseEntity;
	extern CBaseEntity* (*Server_GetEntityByIndex)(int index);

#pragma pack(push, 1)
	struct CBasePlayer
	{
		char pad[88];
		int m_nPlayerIndex;
	};
#pragma pack(pop)

	extern CBasePlayer*(__fastcall* UTIL_PlayerByIndex)(int playerIndex);
} // namespace R2