mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-26 22:55:41 +03:00
Add new CVar sv_allchat (#665)
This commit is contained in:
parent
d85b03096f
commit
fbbd6bd083
@ -99,6 +99,7 @@ This means that plugins that do binary code analysis (Orpheu for example) probab
|
||||
| mp_free_armor | 0 | 0 | 2 | Give free armor on player spawn.<br/>`0` disabled <br/>`1` Give Kevlar <br/>`2` Give Kevlar + Helmet |
|
||||
| mp_fadetoblack | 0 | 0 | 2 | Observer's screen will fade to black on kill event or permanent.<br/> `0` No fade.<br/>`1` Fade to black and won't be able to watch anybody.<br/>`2` fade to black only on kill moment. |
|
||||
| mp_falldamage | 1 | 0 | 1 | Damage from falling.<br/>`0` disabled <br/>`1` enabled |
|
||||
| sv_allchat | 1 | 0 | 1 | Players can receive all other players text chat, team restrictions apply<br/>`0` disabled <br/>`1` enabled |
|
||||
</details>
|
||||
|
||||
## How to install zBot for CS 1.6?
|
||||
|
7
dist/game.cfg
vendored
7
dist/game.cfg
vendored
@ -455,3 +455,10 @@ mp_ct_default_weapons_secondary "usp"
|
||||
//
|
||||
// Default value: "0"
|
||||
mp_free_armor 0
|
||||
|
||||
// Players can receive all other players text chat, team restrictions apply.
|
||||
// 0 - disabled (default behaviour)
|
||||
// 1 - enabled
|
||||
//
|
||||
// Default value: "0"
|
||||
sv_allchat 0
|
||||
|
@ -980,7 +980,11 @@ void Host_Say(edict_t *pEntity, BOOL teamonly)
|
||||
if (teamonly && pReceiver->m_iTeam != pPlayer->m_iTeam)
|
||||
continue;
|
||||
|
||||
if ((pReceiver->pev->deadflag != DEAD_NO && !bSenderDead) || (pReceiver->pev->deadflag == DEAD_NO && bSenderDead))
|
||||
if (
|
||||
#ifdef REGAMEDLL_ADD
|
||||
!(bool)allchat.value &&
|
||||
#endif
|
||||
((pReceiver->pev->deadflag != DEAD_NO && !bSenderDead) || (pReceiver->pev->deadflag == DEAD_NO && bSenderDead)))
|
||||
{
|
||||
if (!(pPlayer->pev->flags & FL_PROXY))
|
||||
continue;
|
||||
|
@ -158,6 +158,7 @@ cvar_t t_give_player_knife = { "mp_t_give_player_knife", "1", 0, 1
|
||||
cvar_t t_default_weapons_secondary = { "mp_t_default_weapons_secondary", "glock18", 0, 0.0f, nullptr };
|
||||
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 };
|
||||
|
||||
void GameDLL_Version_f()
|
||||
{
|
||||
@ -385,6 +386,7 @@ void EXT_FUNC GameDLLInit()
|
||||
CVAR_REGISTER(&t_default_weapons_secondary);
|
||||
CVAR_REGISTER(&t_default_weapons_primary);
|
||||
CVAR_REGISTER(&free_armor);
|
||||
CVAR_REGISTER(&allchat);
|
||||
|
||||
// print version
|
||||
CONSOLE_ECHO("ReGameDLL version: " APP_VERSION "\n");
|
||||
|
@ -184,6 +184,7 @@ extern cvar_t t_give_player_knife;
|
||||
extern cvar_t t_default_weapons_secondary;
|
||||
extern cvar_t t_default_weapons_primary;
|
||||
extern cvar_t free_armor;
|
||||
extern cvar_t allchat;
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user