Merge pull request #15 from diamante0018/develop
[Menus] Change default value of patched dvar to falsepull/3/head
commit
9076c854be
|
@ -1,9 +1,21 @@
|
|||
#include maps\mp\_utility;
|
||||
|
||||
/*
|
||||
Author: Intricate, Diamante
|
||||
Dvars:
|
||||
- scr_player_forceautoassign <bool>
|
||||
false - (default) default game behaviour
|
||||
true - players will be automatically assigned to a team
|
||||
|
||||
Notes: fs_game check was removed as the default value is now false.
|
||||
If a server owner decides to set it to true, its their choice regardless of loaded mods.
|
||||
Mods should replace this file in case of conflicts.
|
||||
*/
|
||||
|
||||
init()
|
||||
{
|
||||
//Intricate - Create DVAR for forcing auto assign, useful for server that would like it.
|
||||
SetDvarIfUninitialized("scr_player_forceautoassign", true);
|
||||
SetDvarIfUninitialized( "scr_player_forceautoassign", false );
|
||||
|
||||
if ( !isDefined( game["gamestarted"] ) )
|
||||
{
|
||||
game["menu_team"] = "team_marinesopfor";
|
||||
|
@ -348,8 +360,7 @@ beginClassChoice( forceNewChoice )
|
|||
|
||||
beginTeamChoice()
|
||||
{
|
||||
//Intricate - We put the auto assign where the actual team selection is. Also make sure that a mod isn't loaded, mainly to prevent bugs with them.
|
||||
if( GetDvar("scr_player_forceautoassign") && GetDvar("fs_game") == "" )
|
||||
if ( getDvarInt( "scr_player_forceautoassign" ) != 0 )
|
||||
self notify( "menuresponse", game["menu_team"], "autoassign");
|
||||
else
|
||||
self openpopupMenu( game["menu_team"] );
|
||||
|
|
Loading…
Reference in New Issue