2018-04-18 17:32:30 +02:00
|
|
|
/*
|
|
|
|
dedicated.c - stubs for dedicated server
|
|
|
|
Copyright (C) 2018 a1batross, mittorn
|
|
|
|
|
|
|
|
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.
|
2021-01-03 02:28:45 +01:00
|
|
|
*/
|
2019-11-24 01:52:08 +01:00
|
|
|
#if XASH_DEDICATED
|
2018-04-18 17:32:30 +02:00
|
|
|
#include "common.h"
|
2020-02-10 11:07:06 +01:00
|
|
|
#include "xash3d_mathlib.h"
|
2019-03-22 14:47:48 +01:00
|
|
|
#include "ref_api.h"
|
|
|
|
|
|
|
|
ref_globals_t refState;
|
2018-04-18 17:32:30 +02:00
|
|
|
|
2019-02-01 23:15:59 +01:00
|
|
|
void CL_ProcessFile( qboolean successfully_received, const char *filename )
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-01-19 02:15:54 +01:00
|
|
|
int GAME_EXPORT CL_Active( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
qboolean CL_Initialized( void )
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
qboolean CL_IsInGame( void )
|
|
|
|
{
|
|
|
|
return true; // always active for dedicated servers
|
|
|
|
}
|
|
|
|
|
|
|
|
qboolean CL_IsInMenu( void )
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
qboolean CL_IsInConsole( void )
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
qboolean CL_IsIntermission( void )
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
qboolean CL_IsPlaybackDemo( void )
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
qboolean CL_IsRecordDemo( void )
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
qboolean CL_DisableVisibility( void )
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-10-05 02:17:38 +02:00
|
|
|
void CL_Init( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-10-05 02:17:38 +02:00
|
|
|
void Key_Init( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-10-05 02:17:38 +02:00
|
|
|
void IN_Init( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-10-05 02:17:38 +02:00
|
|
|
void CL_Drop( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-10-05 02:17:38 +02:00
|
|
|
void CL_ClearEdicts( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-01-19 02:15:54 +01:00
|
|
|
void GAME_EXPORT Key_SetKeyDest(int key_dest)
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void UI_SetActiveMenu( qboolean fActive )
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-10-05 02:17:38 +02:00
|
|
|
void CL_WriteMessageHistory( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-10-05 02:17:38 +02:00
|
|
|
void Host_ClientBegin( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
2021-06-08 00:08:06 +02:00
|
|
|
Cbuf_Execute();
|
2018-04-18 17:32:30 +02:00
|
|
|
}
|
|
|
|
|
2019-10-05 02:17:38 +02:00
|
|
|
void Host_ClientFrame( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-10-05 02:17:38 +02:00
|
|
|
void Host_InputFrame( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2019-10-05 02:17:38 +02:00
|
|
|
void VID_InitDefaultResolution( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
2021-01-03 02:28:45 +01:00
|
|
|
|
2018-04-18 17:32:30 +02:00
|
|
|
}
|
|
|
|
|
2019-10-05 02:17:38 +02:00
|
|
|
void Con_Init( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
2021-01-03 02:28:45 +01:00
|
|
|
|
2018-04-18 17:32:30 +02:00
|
|
|
}
|
|
|
|
|
2019-10-05 02:17:38 +02:00
|
|
|
void R_ClearAllDecals( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
int R_CreateDecalList( struct decallist_s *pList )
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2020-01-19 02:15:54 +01:00
|
|
|
void GAME_EXPORT S_StopSound(int entnum, int channel, const char *soundname)
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
int S_GetCurrentStaticSounds( soundlist_t *pout, int size )
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2020-01-19 02:15:54 +01:00
|
|
|
int GAME_EXPORT CL_GetMaxClients( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-10-05 02:17:38 +02:00
|
|
|
void IN_TouchInitConfig( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-10-05 02:17:38 +02:00
|
|
|
void CL_Disconnect( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-10-05 02:17:38 +02:00
|
|
|
void CL_Shutdown( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-10-05 02:17:38 +02:00
|
|
|
void R_ClearStaticEntities( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-10-05 02:17:38 +02:00
|
|
|
void Host_Credits( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-10-05 02:17:38 +02:00
|
|
|
qboolean UI_CreditsActive( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-10-05 02:17:38 +02:00
|
|
|
void S_StopBackgroundTrack( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void SCR_BeginLoadingPlaque( qboolean is_background )
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
int S_GetCurrentDynamicSounds( soundlist_t *pout, int size )
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void S_StopAllSounds( qboolean ambient )
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-01-19 02:15:54 +01:00
|
|
|
void GAME_EXPORT Con_NPrintf( int idx, const char *fmt, ... )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-01-19 02:15:54 +01:00
|
|
|
void GAME_EXPORT Con_NXPrintf( struct con_nprint_s *info, const char *fmt, ... )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-10-05 02:17:38 +02:00
|
|
|
void SCR_CheckStartupVids( void )
|
2018-04-18 17:32:30 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-11-01 21:31:16 +01:00
|
|
|
void CL_StopPlayback( void )
|
|
|
|
{
|
|
|
|
|
2018-04-18 17:32:30 +02:00
|
|
|
}
|
|
|
|
|
2019-03-22 14:47:48 +01:00
|
|
|
void CL_ClearStaticEntities( void )
|
|
|
|
{
|
2018-04-18 17:32:30 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-07-13 19:54:16 +02:00
|
|
|
void UI_ShowConnectionWarning( void )
|
2019-07-12 21:41:57 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-11-28 17:23:34 +01:00
|
|
|
void CL_Crashed( void )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2023-01-31 05:14:26 +01:00
|
|
|
void CL_HudMessage( const char *pMessage )
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-05-01 16:27:14 +02:00
|
|
|
#endif // XASH_DEDICATED
|