|
@@ -7,7 +7,7 @@
|
|
|
|
|
|
#pragma newdecls required
|
|
|
|
|
|
-#define PLUGIN_VERSION "1.3.5"
|
|
|
+#define PLUGIN_VERSION "1.3.6"
|
|
|
|
|
|
public Plugin myinfo = {
|
|
|
name = "[TF2] Bot Manager",
|
|
@@ -205,30 +205,27 @@ void AddBot() {
|
|
|
char strDifficulty[16], strTeam[16], strClass[16];
|
|
|
|
|
|
switch (difficulty) {
|
|
|
- case 0: Format(strDifficulty, sizeof(strDifficulty), "easy");
|
|
|
- case 1: Format(strDifficulty, sizeof(strDifficulty), "normal");
|
|
|
- case 2: Format(strDifficulty, sizeof(strDifficulty), "hard");
|
|
|
- case 3: Format(strDifficulty, sizeof(strDifficulty), "expert");
|
|
|
- default: Format(strDifficulty, sizeof(strDifficulty), "");
|
|
|
+ case 0: strDifficulty = "easy";
|
|
|
+ case 1: strDifficulty = "normal";
|
|
|
+ case 2: strDifficulty = "hard";
|
|
|
+ case 3: strDifficulty = "expert";
|
|
|
}
|
|
|
|
|
|
switch (team) {
|
|
|
- case TFTeam_Red: Format(strTeam, sizeof(strTeam), "red");
|
|
|
- case TFTeam_Blue: Format(strTeam, sizeof(strTeam), "blue");
|
|
|
- default: Format(strTeam, sizeof(strTeam), "");
|
|
|
+ case TFTeam_Red: strTeam = "red";
|
|
|
+ case TFTeam_Blue: strTeam = "blue";
|
|
|
}
|
|
|
|
|
|
switch (class) {
|
|
|
- case TFClass_Scout: Format(strClass, sizeof(strClass), "Scout");
|
|
|
- case TFClass_Soldier: Format(strClass, sizeof(strClass), "Soldier");
|
|
|
- case TFClass_Pyro: Format(strClass, sizeof(strClass), "Pyro");
|
|
|
- case TFClass_DemoMan: Format(strClass, sizeof(strClass), "Demoman");
|
|
|
- case TFClass_Heavy: Format(strClass, sizeof(strClass), "HeavyWeapons");
|
|
|
- case TFClass_Engineer: Format(strClass, sizeof(strClass), "Engineer");
|
|
|
- case TFClass_Medic: Format(strClass, sizeof(strClass), "Medic");
|
|
|
- case TFClass_Sniper: Format(strClass, sizeof(strClass), "Sniper");
|
|
|
- case TFClass_Spy: Format(strClass, sizeof(strClass), "Spy");
|
|
|
- default: Format(strClass, sizeof(strClass), "");
|
|
|
+ case TFClass_Scout: strClass = "Scout";
|
|
|
+ case TFClass_Soldier: strClass = "Soldier";
|
|
|
+ case TFClass_Pyro: strClass = "Pyro";
|
|
|
+ case TFClass_DemoMan: strClass = "Demoman";
|
|
|
+ case TFClass_Heavy: strClass = "HeavyWeapons";
|
|
|
+ case TFClass_Engineer: strClass = "Engineer";
|
|
|
+ case TFClass_Medic: strClass = "Medic";
|
|
|
+ case TFClass_Sniper: strClass = "Sniper";
|
|
|
+ case TFClass_Spy: strClass = "Spy";
|
|
|
}
|
|
|
|
|
|
char quotedName[MAX_NAME_LENGTH + 2];
|