2022-12-17 13:32:43 +01:00
|
|
|
/***
|
2013-08-30 13:34:05 -07:00
|
|
|
*
|
|
|
|
* Copyright (c) 1996-2001, Valve LLC. All rights reserved.
|
|
|
|
*
|
|
|
|
* This product contains software technology licensed from Id
|
|
|
|
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
|
|
|
|
* All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use, distribution, and modification of this source code and/or resulting
|
|
|
|
* object code is restricted to non-commercial enhancements to products from
|
|
|
|
* Valve LLC. All other use, distribution, or modification is prohibited
|
|
|
|
* without written permission from Valve LLC.
|
|
|
|
*
|
|
|
|
****/
|
2021-11-18 19:17:53 +01:00
|
|
|
|
|
|
|
#pragma once
|
2013-08-30 13:34:05 -07:00
|
|
|
|
2021-11-28 16:54:48 +01:00
|
|
|
extern void respawn(entvars_t* pev, bool fCopyCorpse);
|
|
|
|
extern qboolean ClientConnect(edict_t* pEntity, const char* pszName, const char* pszAddress, char szRejectReason[128]);
|
|
|
|
extern void ClientDisconnect(edict_t* pEntity);
|
|
|
|
extern void ClientKill(edict_t* pEntity);
|
|
|
|
extern void ClientPutInServer(edict_t* pEntity);
|
|
|
|
extern void ClientCommand(edict_t* pEntity);
|
|
|
|
extern void ClientUserInfoChanged(edict_t* pEntity, char* infobuffer);
|
|
|
|
extern void ServerActivate(edict_t* pEdictList, int edictCount, int clientMax);
|
2021-03-05 20:54:33 +01:00
|
|
|
extern void ServerDeactivate();
|
2023-10-29 14:31:56 +01:00
|
|
|
void InitMapLoadingUtils();
|
2021-03-05 20:54:33 +01:00
|
|
|
extern void StartFrame();
|
2021-11-28 16:54:48 +01:00
|
|
|
extern void PlayerPostThink(edict_t* pEntity);
|
|
|
|
extern void PlayerPreThink(edict_t* pEntity);
|
2021-03-05 20:54:33 +01:00
|
|
|
extern void ParmsNewLevel();
|
|
|
|
extern void ParmsChangeLevel();
|
2013-08-30 13:34:05 -07:00
|
|
|
|
2021-03-05 20:54:33 +01:00
|
|
|
extern void ClientPrecache();
|
2013-08-30 13:34:05 -07:00
|
|
|
|
2021-11-28 16:54:48 +01:00
|
|
|
extern const char* GetGameDescription();
|
|
|
|
extern void PlayerCustomization(edict_t* pEntity, customization_t* pCust);
|
2013-08-30 13:34:05 -07:00
|
|
|
|
2021-11-28 16:54:48 +01:00
|
|
|
extern void SpectatorConnect(edict_t* pEntity);
|
|
|
|
extern void SpectatorDisconnect(edict_t* pEntity);
|
|
|
|
extern void SpectatorThink(edict_t* pEntity);
|
2013-08-30 13:34:05 -07:00
|
|
|
|
2021-11-28 16:54:48 +01:00
|
|
|
extern void Sys_Error(const char* error_string);
|
2013-08-30 13:34:05 -07:00
|
|
|
|
2021-11-28 16:54:48 +01:00
|
|
|
extern void SetupVisibility(edict_t* pViewEntity, edict_t* pClient, unsigned char** pvs, unsigned char** pas);
|
|
|
|
extern void UpdateClientData(const struct edict_s* ent, int sendweapons, struct clientdata_s* cd);
|
|
|
|
extern int AddToFullPack(struct entity_state_s* state, int e, edict_t* ent, edict_t* host, int hostflags, int player, unsigned char* pSet);
|
|
|
|
extern void CreateBaseline(int player, int eindex, struct entity_state_s* baseline, struct edict_s* entity, int playermodelindex, Vector* player_mins, Vector* player_maxs);
|
2021-03-05 20:54:33 +01:00
|
|
|
extern void RegisterEncoders();
|
2013-08-30 13:34:05 -07:00
|
|
|
|
2021-11-28 16:54:48 +01:00
|
|
|
extern int GetWeaponData(struct edict_s* player, struct weapon_data_s* info);
|
2013-08-30 13:34:05 -07:00
|
|
|
|
2021-11-28 16:54:48 +01:00
|
|
|
extern void CmdStart(const edict_t* player, const struct usercmd_s* cmd, unsigned int random_seed);
|
|
|
|
extern void CmdEnd(const edict_t* player);
|
2013-08-30 13:34:05 -07:00
|
|
|
|
2021-11-28 16:54:48 +01:00
|
|
|
extern int ConnectionlessPacket(const struct netadr_s* net_from, const char* args, char* response_buffer, int* response_buffer_size);
|
2013-08-30 13:34:05 -07:00
|
|
|
|
2021-11-28 16:54:48 +01:00
|
|
|
extern int GetHullBounds(int hullnumber, float* mins, float* maxs);
|
2013-08-30 13:34:05 -07:00
|
|
|
|
2021-11-28 16:54:48 +01:00
|
|
|
extern void CreateInstancedBaselines();
|
2013-08-30 13:34:05 -07:00
|
|
|
|
2021-11-28 16:54:48 +01:00
|
|
|
extern int InconsistentFile(const edict_t* player, const char* filename, char* disconnect_message);
|
2013-08-30 13:34:05 -07:00
|
|
|
|
2021-03-05 20:54:33 +01:00
|
|
|
extern int AllowLagCompensation();
|