mirror of
https://github.com/ENSL/NS.git
synced 2025-01-22 09:11:30 +00:00
added nsversion
This commit is contained in:
parent
03bcd1f167
commit
9ebab42ec7
1 changed files with 17 additions and 0 deletions
|
@ -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 );
|
||||||
|
|
Loading…
Reference in a new issue