mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-04-24 17:41:31 +00:00
Generate random suffix for default player name
This commit is contained in:
parent
709c0abdcf
commit
d4785e8a9e
1 changed files with 3 additions and 1 deletions
|
@ -3622,7 +3622,9 @@ void CL_Init( void ) {
|
|||
cl_consoleKeys = Cvar_Get( "cl_consoleKeys", "~ ` 0x7e 0x60", CVAR_ARCHIVE);
|
||||
|
||||
// userinfo
|
||||
Cvar_Get ("name", "[VR] Player", CVAR_USERINFO | CVAR_ARCHIVE );
|
||||
char playerName[256];
|
||||
Com_sprintf(playerName, 256, "[VR] Player#%i", rand() % (99999999 - 10000000) + 10000000);
|
||||
Cvar_Get ("name", playerName, CVAR_USERINFO | CVAR_ARCHIVE );
|
||||
cl_rate = Cvar_Get ("rate", "25000", CVAR_USERINFO | CVAR_ARCHIVE );
|
||||
Cvar_Get ("snaps", "40", CVAR_USERINFO | CVAR_ARCHIVE );
|
||||
Cvar_Get ("model", "sarge", CVAR_USERINFO | CVAR_ARCHIVE );
|
||||
|
|
Loading…
Reference in a new issue