-
-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sv_alltalk enhancement #643
Comments
Confused feature with 1k vars 😃 |
@fred0r In my opinion, it is better to transfer all the settings from CS:GO. Otherwise, // Set game rules to allow all clients to talk to each other.
// Muted players still can't talk to each other.
ConVar sv_alltalk( "sv_alltalk", "0", FCVAR_REPLICATED | FCVAR_NOTIFY | FCVAR_RELEASE, "Deprecated. Replaced with sv_talk_enemy_dead and sv_talk_enemy_living." );
// [jason] Can the dead speak to the living?
ConVar sv_deadtalk( "sv_deadtalk", "0", FCVAR_REPLICATED | FCVAR_NOTIFY | FCVAR_RELEASE, "Dead players can speak (voice, text) to the living" );
// [jason] Override that removes all chat restrictions, including those for spectators
ConVar sv_full_alltalk( "sv_full_alltalk", "0", FCVAR_REPLICATED | FCVAR_RELEASE, "Any player (including Spectator team) can speak to any other player" );
ConVar sv_talk_enemy_dead( "sv_talk_enemy_dead", "0", FCVAR_REPLICATED | FCVAR_RELEASE, "Dead players can hear all dead enemy communication (voice, chat)" );
ConVar sv_talk_enemy_living( "sv_talk_enemy_living", "0", FCVAR_REPLICATED | FCVAR_RELEASE, "Living players can hear all living enemy communication (voice, chat)" );
#ifdef GAME_DLL
ConVar sv_auto_full_alltalk_during_warmup_half_end( "sv_auto_full_alltalk_during_warmup_half_end", "1", FCVAR_RELEASE, "When enabled will automatically turn on full all talk mode in warmup, at halftime and at the end of the match" );
#endif
ConVar sv_spec_hear( "sv_spec_hear", "1", FCVAR_REPLICATED | FCVAR_NOTIFY | FCVAR_RELEASE, "Determines who spectators can hear: 0: only spectators; 1: all players; 2: spectated team; 3: self only; 4: nobody" ); |
I would recommend use bitmasks to let people configure things as they want to.
etc. keep old value from original sv_all_talk, 1, 2, 3, 4. sv_add_talkmode "63" // add new row, for example if we already have 4 rows it will add new row with index 4 which is going to add new value to vector and later you can set this mode as the main one. sv_alltalk "index" Non specified args will show list: etc. New cvar which can identify index by bitsum.
В общем придумать можно много чего и реализовать это все можно максимально правильно. Соответственно игра должна проверять есть ли данный индекс и т.п., в случае чего переключаться на стандартные. Соответственно нужен еще один квар, sv_alltalk_fallback "0" который будет принимать лишь стандартные значения. Повторюсь, реализовать можно много чего подобным образом, но сначала нужно продумать саму идею, вместо добавления не понятных значений кваров. |
Why do you call these possible Options 'weird/obscure'? |
Need to add new type
sv_alltalk 5
https://github.com/s1lentq/ReGameDLL_CS/wiki/sv_alltalk
sv_alltalk "5"
The text was updated successfully, but these errors were encountered: