You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ConVar tf_mvm_buybacks_method( "tf_mvm_buybacks_method", "0", FCVAR_REPLICATED | FCVAR_HIDDEN, "When set to 0, use the traditional, currency-based system. When set to 1, use finite, charge-based system.", true, 0.0, true, 1.0 );
919
919
ConVar tf_mvm_buybacks_per_wave( "tf_mvm_buybacks_per_wave", "3", FCVAR_REPLICATED | FCVAR_HIDDEN, "The fixed number of buybacks players can use per-wave." );
920
920
921
+
ConVar tf_robot_team( "tf_robot_team", "1", FCVAR_GAMEDLL, "Whether to turn a given team into robots outside of Man vs Machine." );
922
+
921
923
922
924
#ifdef GAME_DLL
923
925
enum { kMVM_CurrencyPackMinSize = 1, };
@@ -1023,6 +1025,24 @@ bool IsCustomGameMode()
1023
1025
}
1024
1026
#endif
1025
1027
1028
+
bool IsRobotTeam( int team )
1029
+
{
1030
+
const int setting = tf_robot_team.GetInt();
1031
+
1032
+
if ( setting == 1 )
1033
+
{
1034
+
return true;
1035
+
}
1036
+
else if ( setting == 0 )
1037
+
{
1038
+
return false;
1039
+
}
1040
+
else
1041
+
{
1042
+
return team == setting;
1043
+
}
1044
+
}
1045
+
1026
1046
// Fetch holiday setting taking into account convars, etc, but NOT
1027
1047
// taking into consideration the current game rules, map, etc.
0 commit comments