mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-22 01:45:19 +01:00
267 lines
3.2 KiB
C
267 lines
3.2 KiB
C
/*
|
|
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.
|
|
*/
|
|
#if XASH_DEDICATED
|
|
#include "common.h"
|
|
#include "xash3d_mathlib.h"
|
|
#include "ref_api.h"
|
|
#include "server.h"
|
|
|
|
ref_globals_t refState;
|
|
|
|
const char *CL_MsgInfo( int cmd )
|
|
{
|
|
static string sz;
|
|
|
|
Q_strncpy( sz, "???", sizeof( sz ));
|
|
|
|
if( cmd >= 0 && cmd <= svc_lastmsg )
|
|
{
|
|
// get engine message name
|
|
const char *svc_string = svc_strings[cmd];
|
|
|
|
Q_strncpy( sz, svc_string, sizeof( sz ));
|
|
}
|
|
else if( cmd > svc_lastmsg && cmd <= ( svc_lastmsg + MAX_USER_MESSAGES ))
|
|
{
|
|
int i;
|
|
|
|
for( i = 0; i < MAX_USER_MESSAGES; i++ )
|
|
{
|
|
if( svgame.msg[i].number == cmd )
|
|
{
|
|
Q_strncpy( sz, svgame.msg[i].name, sizeof( sz ));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return sz;
|
|
}
|
|
|
|
int GAME_EXPORT CL_Active( void )
|
|
{
|
|
return false;
|
|
}
|
|
|
|
qboolean CL_Initialized( void )
|
|
{
|
|
return false;
|
|
}
|
|
|
|
qboolean CL_IsInGame( void )
|
|
{
|
|
return true; // always active for dedicated servers
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
void CL_Init( void )
|
|
{
|
|
|
|
}
|
|
|
|
void Key_Init( void )
|
|
{
|
|
|
|
}
|
|
|
|
void IN_Init( void )
|
|
{
|
|
|
|
}
|
|
|
|
void CL_Drop( void )
|
|
{
|
|
|
|
}
|
|
|
|
void CL_ClearEdicts( void )
|
|
{
|
|
|
|
}
|
|
|
|
void GAME_EXPORT Key_SetKeyDest(int key_dest)
|
|
{
|
|
|
|
}
|
|
|
|
void UI_SetActiveMenu( qboolean fActive )
|
|
{
|
|
|
|
}
|
|
|
|
void CL_WriteMessageHistory( void )
|
|
{
|
|
|
|
}
|
|
|
|
void Host_ClientBegin( void )
|
|
{
|
|
Cbuf_Execute();
|
|
}
|
|
|
|
void Host_ClientFrame( void )
|
|
{
|
|
|
|
}
|
|
|
|
void Host_InputFrame( void )
|
|
{
|
|
}
|
|
|
|
void VID_InitDefaultResolution( void )
|
|
{
|
|
|
|
}
|
|
|
|
void Con_Init( void )
|
|
{
|
|
|
|
}
|
|
|
|
void GAME_EXPORT S_StopSound(int entnum, int channel, const char *soundname)
|
|
{
|
|
|
|
}
|
|
|
|
int GAME_EXPORT CL_GetMaxClients( void )
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
void IN_TouchInitConfig( void )
|
|
{
|
|
|
|
}
|
|
|
|
void CL_Disconnect( void )
|
|
{
|
|
|
|
}
|
|
|
|
void CL_Shutdown( void )
|
|
{
|
|
|
|
}
|
|
|
|
void R_ClearStaticEntities( void )
|
|
{
|
|
|
|
}
|
|
|
|
void Host_Credits( void )
|
|
{
|
|
|
|
}
|
|
|
|
qboolean UI_CreditsActive( void )
|
|
{
|
|
return false;
|
|
}
|
|
|
|
void S_StopBackgroundTrack( void )
|
|
{
|
|
|
|
}
|
|
|
|
void SCR_BeginLoadingPlaque( qboolean is_background )
|
|
{
|
|
|
|
}
|
|
|
|
int S_GetCurrentDynamicSounds( soundlist_t *pout, int size )
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
void S_StopAllSounds( qboolean ambient )
|
|
{
|
|
|
|
}
|
|
|
|
void GAME_EXPORT Con_NPrintf( int idx, const char *fmt, ... )
|
|
{
|
|
|
|
}
|
|
|
|
void GAME_EXPORT Con_NXPrintf( struct con_nprint_s *info, const char *fmt, ... )
|
|
{
|
|
|
|
}
|
|
|
|
void SCR_CheckStartupVids( void )
|
|
{
|
|
|
|
}
|
|
|
|
void CL_StopPlayback( void )
|
|
{
|
|
|
|
}
|
|
|
|
void CL_ClearStaticEntities( void )
|
|
{
|
|
|
|
}
|
|
|
|
void UI_ShowConnectionWarning( void )
|
|
{
|
|
|
|
}
|
|
|
|
void CL_Crashed( void )
|
|
{
|
|
}
|
|
|
|
void CL_HudMessage( const char *pMessage )
|
|
{
|
|
|
|
}
|
|
|
|
byte TextureToGamma( byte b )
|
|
{
|
|
return b;
|
|
}
|
|
|
|
byte LightToTexGamma( byte b )
|
|
{
|
|
return b;
|
|
}
|
|
|
|
#endif // XASH_DEDICATED
|