added nsversion

This commit is contained in:
pierow 2021-01-22 20:39:28 -05:00
parent 03bcd1f167
commit 9ebab42ec7

View file

@ -1488,6 +1488,21 @@ void CL_ResetButtonBits( int bits )
} }
} }
void NsVersion(void)
{
static char theGameVersion[1024];
string theGameVersionString;
theGameVersionString = "v" + MakeStringFromInt(BALANCE_VAR(kGameVersionMajor)) + "." + MakeStringFromInt(BALANCE_VAR(kGameVersionMinor)) + "." +
MakeStringFromInt(BALANCE_VAR(kGameVersionRevision)) + " " + __DATE__ + " " + __TIME__;
//memset(theGameVersion, 0, 1024);
strcpy(theGameVersion, theGameVersionString.c_str());
gEngfuncs.Con_Printf(theGameVersion);
}
/* /*
============ ============
InitInput InitInput
@ -1560,6 +1575,8 @@ void InitInput (void)
gEngfuncs.pfnAddCommand("+scrollright", IN_ScrollRightDown); gEngfuncs.pfnAddCommand("+scrollright", IN_ScrollRightDown);
gEngfuncs.pfnAddCommand("-scrollright", IN_ScrollRightUp); gEngfuncs.pfnAddCommand("-scrollright", IN_ScrollRightUp);
gEngfuncs.pfnAddCommand("nsversion", NsVersion);
lookstrafe = gEngfuncs.pfnRegisterVariable ( "lookstrafe", "0", FCVAR_ARCHIVE ); lookstrafe = gEngfuncs.pfnRegisterVariable ( "lookstrafe", "0", FCVAR_ARCHIVE );
lookspring = gEngfuncs.pfnRegisterVariable ( "lookspring", "0", FCVAR_ARCHIVE ); lookspring = gEngfuncs.pfnRegisterVariable ( "lookspring", "0", FCVAR_ARCHIVE );
cl_anglespeedkey = gEngfuncs.pfnRegisterVariable ( "cl_anglespeedkey", "0.67", 0 ); cl_anglespeedkey = gEngfuncs.pfnRegisterVariable ( "cl_anglespeedkey", "0.67", 0 );