diff --git a/README.md b/README.md index 4df82a681..36b8e1d59 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,7 @@ This means that plugins that do binary code analysis (Orpheu for example) probab | mp_fadetoblack | 0 | 0 | 2 | Observer's screen will fade to black on kill event or permanent.
`0` No fade.
`1` Fade to black and won't be able to watch anybody.
`2` fade to black only on kill moment. | | mp_falldamage | 1 | 0 | 1 | Damage from falling.
`0` disabled
`1` enabled | | sv_allchat | 1 | 0 | 1 | Players can receive all other players text chat, team restrictions apply
`0` disabled
`1` enabled | +| mp_max_alive_name_changes | -1 | -1 | - | Maximum amount of nickname changes before next respawn
`-1` unlimited (default behaviour)
`0` Allow to change only at spawn
`>0` Allow to change arbitrary amount of nicks | ## How to install zBot for CS 1.6? diff --git a/dist/game.cfg b/dist/game.cfg index 175f8d803..771460441 100644 --- a/dist/game.cfg +++ b/dist/game.cfg @@ -462,3 +462,11 @@ mp_free_armor 0 // // Default value: "0" sv_allchat 0 + +// Maximum amount of nickname changes before next respawn. +// -1 - unlimited (default behaviour) +// 0 - Allow to change only at spawn +// >0 - Allow to change arbitrary amount of nicks +// +// Default value: "-1" +mp_max_alive_name_changes -1 diff --git a/regamedll/dlls/game.cpp b/regamedll/dlls/game.cpp index dbe9b9ae7..ed904ada0 100644 --- a/regamedll/dlls/game.cpp +++ b/regamedll/dlls/game.cpp @@ -159,6 +159,7 @@ cvar_t t_default_weapons_secondary = { "mp_t_default_weapons_secondary", " cvar_t t_default_weapons_primary = { "mp_t_default_weapons_primary", "", 0, 0.0f, nullptr }; cvar_t free_armor = { "mp_free_armor", "0", 0, 0.0f, nullptr }; cvar_t allchat = { "sv_allchat", "0", 0, 0.0f, nullptr }; +cvar_t max_alive_name_changes = { "mp_max_alive_name_changes", "-1", 0, 0.0f, nullptr }; void GameDLL_Version_f() { @@ -387,6 +388,7 @@ void EXT_FUNC GameDLLInit() CVAR_REGISTER(&t_default_weapons_primary); CVAR_REGISTER(&free_armor); CVAR_REGISTER(&allchat); + CVAR_REGISTER(&max_alive_name_changes); // print version CONSOLE_ECHO("ReGameDLL version: " APP_VERSION "\n"); diff --git a/regamedll/dlls/game.h b/regamedll/dlls/game.h index cc04e1c68..48d9a29d9 100644 --- a/regamedll/dlls/game.h +++ b/regamedll/dlls/game.h @@ -185,6 +185,7 @@ extern cvar_t t_default_weapons_secondary; extern cvar_t t_default_weapons_primary; extern cvar_t free_armor; extern cvar_t allchat; +extern cvar_t max_alive_name_changes; #endif