mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 06:41:58 +00:00
Update also already stored default player name with random suffix
This commit is contained in:
parent
d4785e8a9e
commit
e903dc373b
1 changed files with 3 additions and 0 deletions
|
@ -3625,6 +3625,9 @@ void CL_Init( void ) {
|
|||
char playerName[256];
|
||||
Com_sprintf(playerName, 256, "[VR] Player#%i", rand() % (99999999 - 10000000) + 10000000);
|
||||
Cvar_Get ("name", playerName, CVAR_USERINFO | CVAR_ARCHIVE );
|
||||
if (strcmp(Cvar_VariableString("name"), "[VR] Player") == 0) {
|
||||
Cvar_Set( "name", playerName);
|
||||
}
|
||||
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