Skip to content
This repository has been archived by the owner on Nov 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7 from phoenixprojectsoftware/master
Browse files Browse the repository at this point in the history
Remove un-need files from and add version info to demo SDK
  • Loading branch information
sabianroberts authored May 7, 2020
2 parents 95f116f + b33caaf commit e4c8e91
Show file tree
Hide file tree
Showing 396 changed files with 26 additions and 174,345 deletions.
13 changes: 13 additions & 0 deletions cl_dll/hud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "demo.h"
#include "demo_api.h"
#include "vgui_ScorePanel.h"
#include "GreySourceVersionInfo.h"

hud_player_info_t g_PlayerInfoList[MAX_PLAYERS+1]; // player info from the engine
extra_player_info_t g_PlayerExtraInfo[MAX_PLAYERS+1]; // additional player info sent directly to the client dll
Expand Down Expand Up @@ -282,6 +283,16 @@ int __MsgFunc_AllowSpec(const char *pszName, int iSize, void *pbuf)
return 0;
}

void PrintVersion()
{
gEngfuncs.Con_Printf("\n");
gEngfuncs.Con_Printf("\n 'Half-Life: Zombies Ate My Neighbours' is running %s built on %s\n", build, buildDate);
gEngfuncs.Con_Printf("\n Type of build: %s", buildType);
gEngfuncs.Con_Printf("\n %s", buildAuthor);
gEngfuncs.Con_Printf("\n The game SDK can be found at %s", gameSdk);
gEngfuncs.Con_Printf("\n The engine SDK can be found at %s", engineSdk);
}

// This is called every time the DLL is loaded
void CHud :: Init( void )
{
Expand Down Expand Up @@ -337,6 +348,8 @@ void CHud :: Init( void )
m_pCvarDraw = CVAR_CREATE( "hud_draw", "1", FCVAR_ARCHIVE );
cl_lw = gEngfuncs.pfnGetCvarPointer( "cl_lw" );

gEngfuncs.pfnAddCommand("version_greysource", PrintVersion);

m_pSpriteList = NULL;

// Clear any old HUD list
Expand Down
246 changes: 0 additions & 246 deletions dmc/cl_dll/CTF_FlagStatus.cpp

This file was deleted.

Loading

0 comments on commit e4c8e91

Please sign in to comment.