Jump to content

Insane Limits Requests


ImportBot

Recommended Posts

Originally Posted by Rucki*:

 

I'm pretty sure I wrote that limit for someone already. Did you search this thread? Search for player.Tag, that should find it.

Thx, searched.

I think this is not what i will have. :/

 

Ill try it better:

I do not know any Clantag.

 

If all gamers have no clantag -> do nothing.

If only one gamer on the server with a clantag -> do nothing

If 5 gamers are on the server with different clantags -> do nothing

If 2 gamers are on the server with the same clantag -> write in proconchat "2 Players from Clan [yxz] online"

If 5 gamers are on the server with the same clantag -> write in proconchat "5 Players from Clan [yxz] online"

 

If

1 gamer wirth [abc] and

3 gamers with [yxz] and

5 gamers with [trb] are on the server ->

write in proconchat:

 

"3 Players from Clan [yxz] online"

"5 Players from Clan [trb] online"

 

Hope now its more understandable. :ohmy:

Thx!

Rucki

 

---edit---

Ashamed. :mad:

Thx HexaCanon for seaching......

http://www.phogue.net/forumvb/showth...ll=1#post58336*

* Restored post. It could be that the author is no longer active.
Link to comment
  • Replies 3.2k
  • Created
  • Last Reply

Originally Posted by HexaCanon*:

 

this is what i did for a clan counter on procon chat

 

onspawn

 

 

first check expression

Code:

(true)
second check code

Code:

String playerTag = player.Tag;
if (String.IsNullOrEmpty(playerTag)) return false;

List<PlayerInfoInterface> all = new List<PlayerInfoInterface>();
all.AddRange(team1.players);
all.AddRange(team2.players);
if (team3.players.Count > 0) all.AddRange(team3.players);
if (team4.players.Count > 0) all.AddRange(team4.players);

List<PlayerInfoInterface> clan = new List<PlayerInfoInterface>();

foreach (PlayerInfoInterface p in all) {
  String clanTag = p.Tag;
  if (String.IsNullOrEmpty(clanTag)) continue;
  if (clanTag != playerTag) continue;
  // Found a clan member!
  clan.Add(p);
}

String Counter = "Count";
    
int current = 0;
if (server.Data.issetInt(Counter)) current = server.Data.getInt(Counter);

if (clan.Count > 1 && limit.Activations(player.Name) == 1 && clan.Count != current) {
    server.Data.setInt(Counter, clan.Count);
    String message = plugin.R (clan.Count + " [" + playerTag + "] Clan members are online");
    plugin.PRoConChat("ADMIN > " + message);
    }
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by MDV666*:

 

Dear developer as in to bring in this line an exception for the Death weapon. That the condition would be carried out for all types of weapon except Death.

 

Code:

if (!Regex.Match(kill.Weapon, @"(_:Death)", RegexOptions.IgnoreCase).Success) return false;
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by HexaCanon*:

 

Hi,

 

 

 

working perfect!

Thank you! :smile:

Rucki

fixed something.

 

Code:

String playerTag = player.Tag;
if (String.IsNullOrEmpty(playerTag)) return false;

List<PlayerInfoInterface> all = new List<PlayerInfoInterface>();
all.AddRange(team1.players);
all.AddRange(team2.players);
if (team3.players.Count > 0) all.AddRange(team3.players);
if (team4.players.Count > 0) all.AddRange(team4.players);

List<PlayerInfoInterface> clan = new List<PlayerInfoInterface>();

foreach (PlayerInfoInterface p in all) {
  String clanTag = p.Tag;
  if (String.IsNullOrEmpty(clanTag)) continue;
  if (clanTag != playerTag) continue;
  // Found a clan member!
  clan.Add(p);
}

String Counter = player.Tag + "_Count";
    
int current = 0;
if (server.RoundData.issetInt(Counter)) current = server.RoundData.getInt(Counter);

if (clan.Count > 1 && limit.Activations(player.Name) == 1 && clan.Count != current) {
    server.RoundData.setInt(Counter, clan.Count);
    String message = plugin.R ("^b ^3" + clan.Count + " [^6" + playerTag + "^3] Clan members are online ^0 ^n");
    plugin.PRoConChat("ADMIN > " + message);
    }
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by HexaCanon*:

 

end of round report for procon chat.

 

Posted Image

 

evaluation : OnRoundOver

 

first check expression

 

Code:

(true)
Code:
TimeSpan Duration = TimeSpan.FromSeconds(server.TimeRound);
String winner = "US";
if (server.WinTeamId == 2) winner = "RU";

String kMaxPlayers = "PCT_max"; // PCT = Player Count Tracker
String kMinPlayers = "PCT_min";
String kPlayers = "PCT_players";
String kTime = "PCT_time";
String kMapRound = "PCT_map_round";

if (!server.Data.issetInt(kPlayers)) {
    server.Data.setInt(kPlayers, 0);
}
if (!server.RoundData.issetInt(kMaxPlayers)) {
    server.RoundData.setInt(kMaxPlayers, 0);
}
if (!server.RoundData.issetInt(kMinPlayers)) {
    server.RoundData.setInt(kMinPlayers, 64);
}
if (!server.RoundData.issetObject(kTime)) {
	server.RoundData.setObject(kTime, DateTime.Now);
}
if (!server.RoundData.issetString(kMapRound)) {
	server.RoundData.setString(kMapRound, server.MapFileName + server.CurrentRound.ToString());
}

int level = 2;

try {
    level = Convert.ToInt32(plugin.getPluginVarValue("debug_level"));
} catch (Exception e) {}

/* Check for change */

int lastPlayers = server.Data.getInt(kPlayers);
int currentPlayers = server.PlayerCount;


/* Calculate net change */

int maxPlayers = server.RoundData.getInt(kMaxPlayers);
int minPlayers = server.RoundData.getInt(kMinPlayers);

int netChange = currentPlayers - lastPlayers;

if (maxPlayers < currentPlayers) {
	server.RoundData.setInt(kMaxPlayers, currentPlayers);
	maxPlayers = currentPlayers;
}
if (minPlayers > currentPlayers) {
	server.RoundData.setInt(kMinPlayers, currentPlayers);
	minPlayers = currentPlayers;
}
server.Data.setInt(kPlayers, currentPlayers);
server.RoundData.setObject(kTime, DateTime.Now);

/* BF3 friendly map names, including B2K */
Dictionary<String, String> maps = new Dictionary<String, String>();
maps.Add("MP_001", "Grand Bazaar");
maps.Add("MP_003", "Teheran Highway");
maps.Add("MP_007", "Caspian Border");
maps.Add("MP_011", "Seine Crossing");
maps.Add("MP_012", "Operation Firestorm");
maps.Add("MP_013", "Damavand Peak");
maps.Add("MP_017", "Noshahr Canals");
maps.Add("MP_018", "Kharg Island");
maps.Add("MP_Subway", "Operation Metro");
maps.Add("XP1_001", "Strike at Karkand");
maps.Add("XP1_002", "Gulf of Oman");
maps.Add("XP1_003", "Sharqi Peninsula");
maps.Add("XP1_004", "Wake Island");
maps.Add("XP2_Factory", "Scrapmetal");
maps.Add("XP2_Office", "Operation 925");
maps.Add("XP2_Palace", "Donya Fortress");
maps.Add("XP2_Skybar", "Ziba Tower");
maps.Add("XP3_Desert", "Bandar Desert");
maps.Add("XP3_Alborz", "Alborz Mountains");
maps.Add("XP3_Shield", "Armored Shield");
maps.Add("XP3_Valley", "Death Valley");

/* BF3 friendly game modes, including B2K */
Dictionary<String, String> modes = new Dictionary<String, String>();    
modes.Add("ConquestLarge0", "CQ64");
modes.Add("ConquestSmall0", "CQ");
modes.Add("ConquestSmall1", "CQA");
modes.Add("RushLarge0", "Rush");
modes.Add("SquadRush0", "SQRush");
modes.Add("SquadDeathMatch0", "SQDM");
modes.Add("TeamDeathMatch0", "TDM");
modes.Add("Domination0", "CQD");
modes.Add("GunMaster0", "GM");
modes.Add("TeamDeathMatchC0", "TDMC");
modes.Add("TankSuperiority0", "TankS");

String mapName = (maps.ContainsKey(server.MapFileName)) _ maps[server.MapFileName] : server.MapFileName;
String modeName = (modes.ContainsKey(server.Gamemode)) _ modes[server.Gamemode] : server.Gamemode;
String color = (netChange >= 0) _ "^2+" : "^8";
String time = DateTime.Now.ToString("HH:mm:ss");
String currMapRound = server.MapFileName + server.CurrentRound.ToString();

String ticket = "US : " + team1.Tickets + "/" + server.TargetTickets + " | RU : " + team2.Tickets + "/" + server.TargetTickets;
if (server.Gamemode == "ConquestLarge0" ||
server.Gamemode == "ConquestSmall0" ||
server.Gamemode == "ConquestSmall1" ||
server.Gamemode == "Domination0" ||
server.Gamemode == "TankSuperiority0") ticket = "US : " + team1.Tickets  + " | RU : " + team2.Tickets ;


List<String> LogLines = new List<String>();
LogLines.Add("^8Time : " + time +"^0");
LogLines.Add("^8Duration : " + Duration +"^0");
LogLines.Add("^8Map Name : " + mapName +"^0");
LogLines.Add("^8Mode Name : " + modeName +"^0");
LogLines.Add("^8Round : " + (server.CurrentRound+1) + "/" + server.TotalRounds +"^0");
LogLines.Add("^8winner : " + winner +"^0");
if (server.Gamemode == "ConquestLarge0" ||
server.Gamemode == "ConquestSmall0" ||
server.Gamemode == "ConquestSmall1" ||
server.Gamemode == "Domination0" ||
server.Gamemode == "TankSuperiority0" ||
server.Gamemode == "SquadDeathMatch0" ||
server.Gamemode == "TeamDeathMatch0" ||
server.Gamemode == "TeamDeathMatchC0") LogLines.Add("^8Tickets : " + ticket +"^0");
LogLines.Add("^8Players : "  + currentPlayers + "/" + server.MaxPlayers +"^0");
LogLines.Add("^8Minimum players on round : " + minPlayers +"^0");
LogLines.Add("^8Maximum players on round : " + maxPlayers +"^0");

if (true) {
    plugin.PRoConChat("^8>>>>RoundOver Report<<<<^0");
    foreach(string Line in LogLines) {
        plugin.PRoConChat(Line);
    }
return false;
}
i still need to see if min and max players only working properly hopefully PC can tell.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

Dear developer as in to bring in this line an exception for the Death weapon. That the condition would be carried out for all types of weapon except Death.

 

Code:

if (!Regex.Match(kill.Weapon, @"(_:Death)", RegexOptions.IgnoreCase).Success) return false;
No. You have a double negative. Assuming this is a first_check Expression, you need to do either this:

 

Code:

if (!Regex.Match(kill.Weapon, @"(_:Death)", RegexOptions.IgnoreCase).Success) return true;
or this:

 

Code:

if (Regex.Match(kill.Weapon, @"(_:Death)", RegexOptions.IgnoreCase).Success) return false;
Notice that I removed the ! in the second choice.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by HexaCanon*:

 

end of round report for procon chat.

 

Posted Image

 

evaluation : OnRoundOver

 

first check expression

 

Code:

(true)
Code:
TimeSpan Duration = TimeSpan.FromSeconds(server.TimeRound);
String winner = "US";
if (server.WinTeamId == 2) winner = "RU";

String kMaxPlayers = "PCT_max"; // PCT = Player Count Tracker
String kMinPlayers = "PCT_min";
String kPlayers = "PCT_players";
String kTime = "PCT_time";
String kMapRound = "PCT_map_round";

if (!server.Data.issetInt(kPlayers)) {
    server.Data.setInt(kPlayers, 0);
}
if (!server.RoundData.issetInt(kMaxPlayers)) {
    server.RoundData.setInt(kMaxPlayers, 0);
}
if (!server.RoundData.issetInt(kMinPlayers)) {
    server.RoundData.setInt(kMinPlayers, 64);
}
if (!server.RoundData.issetObject(kTime)) {
	server.RoundData.setObject(kTime, DateTime.Now);
}
if (!server.RoundData.issetString(kMapRound)) {
	server.RoundData.setString(kMapRound, server.MapFileName + server.CurrentRound.ToString());
}

int level = 2;

try {
    level = Convert.ToInt32(plugin.getPluginVarValue("debug_level"));
} catch (Exception e) {}

/* Check for change */

int lastPlayers = server.Data.getInt(kPlayers);
int currentPlayers = server.PlayerCount;


/* Calculate net change */

int maxPlayers = server.RoundData.getInt(kMaxPlayers);
int minPlayers = server.RoundData.getInt(kMinPlayers);

int netChange = currentPlayers - lastPlayers;

if (maxPlayers < currentPlayers) {
	server.RoundData.setInt(kMaxPlayers, currentPlayers);
	maxPlayers = currentPlayers;
}
if (minPlayers > currentPlayers) {
	server.RoundData.setInt(kMinPlayers, currentPlayers);
	minPlayers = currentPlayers;
}
server.Data.setInt(kPlayers, currentPlayers);
server.RoundData.setObject(kTime, DateTime.Now);

/* BF3 friendly map names, including B2K */
Dictionary<String, String> maps = new Dictionary<String, String>();
maps.Add("MP_001", "Grand Bazaar");
maps.Add("MP_003", "Teheran Highway");
maps.Add("MP_007", "Caspian Border");
maps.Add("MP_011", "Seine Crossing");
maps.Add("MP_012", "Operation Firestorm");
maps.Add("MP_013", "Damavand Peak");
maps.Add("MP_017", "Noshahr Canals");
maps.Add("MP_018", "Kharg Island");
maps.Add("MP_Subway", "Operation Metro");
maps.Add("XP1_001", "Strike at Karkand");
maps.Add("XP1_002", "Gulf of Oman");
maps.Add("XP1_003", "Sharqi Peninsula");
maps.Add("XP1_004", "Wake Island");
maps.Add("XP2_Factory", "Scrapmetal");
maps.Add("XP2_Office", "Operation 925");
maps.Add("XP2_Palace", "Donya Fortress");
maps.Add("XP2_Skybar", "Ziba Tower");
maps.Add("XP3_Desert", "Bandar Desert");
maps.Add("XP3_Alborz", "Alborz Mountains");
maps.Add("XP3_Shield", "Armored Shield");
maps.Add("XP3_Valley", "Death Valley");

/* BF3 friendly game modes, including B2K */
Dictionary<String, String> modes = new Dictionary<String, String>();    
modes.Add("ConquestLarge0", "CQ64");
modes.Add("ConquestSmall0", "CQ");
modes.Add("ConquestSmall1", "CQA");
modes.Add("RushLarge0", "Rush");
modes.Add("SquadRush0", "SQRush");
modes.Add("SquadDeathMatch0", "SQDM");
modes.Add("TeamDeathMatch0", "TDM");
modes.Add("Domination0", "CQD");
modes.Add("GunMaster0", "GM");
modes.Add("TeamDeathMatchC0", "TDMC");
modes.Add("TankSuperiority0", "TankS");

String mapName = (maps.ContainsKey(server.MapFileName)) _ maps[server.MapFileName] : server.MapFileName;
String modeName = (modes.ContainsKey(server.Gamemode)) _ modes[server.Gamemode] : server.Gamemode;
String color = (netChange >= 0) _ "^2+" : "^8";
String time = DateTime.Now.ToString("HH:mm:ss");
String currMapRound = server.MapFileName + server.CurrentRound.ToString();

String ticket = "US : " + team1.Tickets + "/" + server.TargetTickets + " | RU : " + team2.Tickets + "/" + server.TargetTickets;
if (server.Gamemode == "ConquestLarge0" ||
server.Gamemode == "ConquestSmall0" ||
server.Gamemode == "ConquestSmall1" ||
server.Gamemode == "Domination0" ||
server.Gamemode == "TankSuperiority0") ticket = "US : " + team1.Tickets  + " | RU : " + team2.Tickets ;


List<String> LogLines = new List<String>();
LogLines.Add("^8Time : " + time +"^0");
LogLines.Add("^8Duration : " + Duration +"^0");
LogLines.Add("^8Map Name : " + mapName +"^0");
LogLines.Add("^8Mode Name : " + modeName +"^0");
LogLines.Add("^8Round : " + (server.CurrentRound+1) + "/" + server.TotalRounds +"^0");
LogLines.Add("^8winner : " + winner +"^0");
if (server.Gamemode == "ConquestLarge0" ||
server.Gamemode == "ConquestSmall0" ||
server.Gamemode == "ConquestSmall1" ||
server.Gamemode == "Domination0" ||
server.Gamemode == "TankSuperiority0" ||
server.Gamemode == "SquadDeathMatch0" ||
server.Gamemode == "TeamDeathMatch0" ||
server.Gamemode == "TeamDeathMatchC0") LogLines.Add("^8Tickets : " + ticket +"^0");
LogLines.Add("^8Players : "  + currentPlayers + "/" + server.MaxPlayers +"^0");
LogLines.Add("^8Minimum players on round : " + minPlayers +"^0");
LogLines.Add("^8Maximum players on round : " + maxPlayers +"^0");

if (true) {
    plugin.PRoConChat("^8>>>>RoundOver Report<<<<^0");
    foreach(string Line in LogLines) {
        plugin.PRoConChat(Line);
    }
return false;
}
i still need to see if min and max players only working properly hopefully PC can tell.
i think to make sure that the "minimum players on round" and "maximum players on round" values to be accurate you need

 

Player Count Tracker* to be on, you will find a nice log version there that logs your rounds into a file (at the end posted by me).

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

i think to make sure that the "minimum players on round" and "maximum players on round" values to be accurate you need

 

Player Count Tracker* to be on, you will find a nice log version there that logs your rounds into a file (at the end posted by me).

No, don't need Player Count Tracker to be on, though having it on makes currentPlayer and netChange correct. All you actually need is a separate limit that evaluates OnIntervalServer every 60 seconds.

 

Move this code into the OnIntervalServer limit (you don't need it in OnRoundOver):

 

Code:

String kMaxPlayers = "PCT_max"; // PCT = Player Count Tracker
String kMinPlayers = "PCT_min";

if (!server.RoundData.issetInt(kMaxPlayers)) {
    server.RoundData.setInt(kMaxPlayers, 0);
}
if (!server.RoundData.issetInt(kMinPlayers)) {
    server.RoundData.setInt(kMinPlayers, 64);
}

int maxPlayers = server.RoundData.getInt(kMaxPlayers);
int minPlayers = server.RoundData.getInt(kMinPlayers);

if (maxPlayers < currentPlayers) {
	server.RoundData.setInt(kMaxPlayers, currentPlayers);
	maxPlayers = currentPlayers;
}
if (minPlayers > currentPlayers) {
	server.RoundData.setInt(kMinPlayers, currentPlayers);
	minPlayers = currentPlayers;
}
Don't do both, though! Either run PCT limit or make your own OnIntervalServer limit.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by HexaCanon*:

 

No, don't need Player Count Tracker to be on, though having it on makes currentPlayer and netChange correct. All you actually need is a separate limit that evaluates OnIntervalServer every 60 seconds.

 

Move this code into the OnIntervalServer limit (you don't need it in OnRoundOver):

 

Code:

String kMaxPlayers = "PCT_max"; // PCT = Player Count Tracker
String kMinPlayers = "PCT_min";

if (!server.RoundData.issetInt(kMaxPlayers)) {
    server.RoundData.setInt(kMaxPlayers, 0);
}
if (!server.RoundData.issetInt(kMinPlayers)) {
    server.RoundData.setInt(kMinPlayers, 64);
}

int maxPlayers = server.RoundData.getInt(kMaxPlayers);
int minPlayers = server.RoundData.getInt(kMinPlayers);

if (maxPlayers < currentPlayers) {
	server.RoundData.setInt(kMaxPlayers, currentPlayers);
	maxPlayers = currentPlayers;
}
if (minPlayers > currentPlayers) {
	server.RoundData.setInt(kMinPlayers, currentPlayers);
	minPlayers = currentPlayers;
}
Don't do both, though! Either run PCT limit or make your own OnIntervalServer limit.
yeah i refered to PCT because it was already there :smile: , and it gives a real benefit (2 birds 1 stone _)
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by MDV666*:

 

Thanks everything works!

Write how to use please

 

Code:

/* Weapon Stats, Current Round, All Rounds (Total) */
        WeaponStatsInterface this[String WeaponName] { get; }
I want to make a script which will take accuracy percent, percent of headshots and number of the killed on a certain type of the weapon for example M416, M4, AEK971 and other from statistics of battlelog and on certain parameters to execute actions for example a log or kick/
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by HexaCanon*:

 

Thanks everything works!

Write how to use please

 

Code:

/* Weapon Stats, Current Round, All Rounds (Total) */
        WeaponStatsInterface this[String WeaponName] { get; }
I want to make a script which will take accuracy percent, percent of headshots and number of the killed on a certain type of the weapon for example M416, M4, AEK971 and other from statistics of battlelog and on certain parameters to execute actions for example a log or kick/
yeah i would love to take some weapon stats, but i dont think insane limits really takes weapon stats at the moment.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by pharbehind*:

 

Papa, pairing with the !surrender command from your other limit, can you provide code for a Yell Spam that would start when these thresholds are met?

 

double minTicketPercent = 10; // CUSTOMIZE: minimum ticket percentage remaining in the round

double minTicketGap = 50; // CUSTOMIZE: minimum ticket gap between winning and losing teams

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by HexaCanon*:

 

Papa, pairing with the !surrender command from your other limit, can you provide code for a Yell Spam that would start when these thresholds are met?

 

double minTicketPercent = 10; // CUSTOMIZE: minimum ticket percentage remaining in the round

double minTicketGap = 50; // CUSTOMIZE: minimum ticket gap between winning and losing teams

what do you want the yell to say ?

 

minTicketPercent is to stop players from !surrender . no idea why you want to spam on it.

 

minTicketGap is also the same :s

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by HexaCanon*:

 

B/c I want a message to appear telling users that they can use this command, but only show it when they're eligible to.

 

Make sense?

try and test this, i compiled it but did not see if it does the intended function

 

OnIntervalServer

 

interval : 60

 

first check code

 

Code:

String kCount = "mycounter";

int count = 0;
if (plugin.RoundData.issetInt(kCount)) count = plugin.RoundData.getInt(kCount);


double minTicketPercent = 10;
double minTicketGap = 50;
int SpamEveryMinute = 2; // must be 1 , 2 ,3 ,4 ,5 no decimals, at 60 interval this spam will show up every 2 minutes, this is to avoid a bug in insane limits.

if (count % SpamEveryMinute != 0) {
    count  = count + 1;
    plugin.RoundData.setInt(kCount, count);
    return false;
}

if (server.RemainTicketsPercent(1) > minTicketPercent && server.RemainTicketsPercent(2) > minTicketPercent) {
    double t1 = server.RemainTickets(1);
    double t2 = server.RemainTickets(2);
    if (Math.Abs(t1 - t2) > minTicketGap) {
        String message = plugin.R("if you are losing you can !votenext");
        plugin.ServerCommand("admin.yell", message, "12");
    }
}

count  = count + 1;
plugin.RoundData.setInt(kCount, count);

return false;
please read the int SpamEveryMinute note

 

Edit : just tested it and it is working.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by HexaCanon*:

 

anyone have a team or skill scrambler.

i seen the one for live balancer but it says not for noobs

 

anyone have one that is lol

truebalancer is the only procon balancer that works easly.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

B/c I want a message to appear telling users that they can use this command, but only show it when they're eligible to.

 

Make sense?

Did you want a separate limit like Hex made, or did you want a change to the !surrender limit itself? I thought you wanted a change in the limit itself, otherwise, you have to copy the values of minTicketPercent and minTicketGap into both and make sure they are the same all the time.

 

If you want it in the original limit, post your request in that thread.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by MDV666*:

 

Dear PapaCharlie9. My idea is very important for game process on the server. Prompt please concerning my message placed at the beginning of page about percent headshots from statistics of the player.Thx.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by HexaCanon*:

 

Dear PapaCharlie9. My idea is very important for game process on the server. Prompt please concerning my message placed at the beginning of page about percent headshots from statistics of the player.Thx.

i still agree with this.

 

also someway of pulling the maplist will be wonderful , but weapon stats is very important.

 

today this guy joined "Maximanimo", cheatometer.hedix.de stats :

- Kill-Assists-Percentage 1.05

PDW UMP45 Damage per Shot 100

Supporter M249 Damage per Shot 100

Supporter RPK74 Damage per Shot 100

Assault GLOBAL Damage per Shot 95.24

Assault M16 Damage per Shot 95.24

Supporter Type 88 Damage per Shot 91.67

 

 

would have banned him before he joined if we could retrieve weapon stats xD

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by MDV666*:

 

i still agree with this.

 

also someway of pulling the maplist will be wonderful , but weapon stats is very important.

 

today this guy joined "Maximanimo", cheatometer.hedix.de stats :

- Kill-Assists-Percentage 1.05

PDW UMP45 Damage per Shot 100

Supporter M249 Damage per Shot 100

Supporter RPK74 Damage per Shot 100

Assault GLOBAL Damage per Shot 95.24

Assault M16 Damage per Shot 95.24

Supporter Type 88 Damage per Shot 91.67

 

 

would have banned him before he joined if we could retrieve weapon stats xD

Every day I study some log for the last days. Every day I find dishonest players and noted direct link with statistics on the weapon. Namely on headshots percent. Having possibility of requests from battlelog of such parameters on several types of weapon as headshots percent, percent of accuracy and number of kills from it it is possible to lock an input on the server with explicit cheater. Therefore as they have values which are unavailable to honest players. Very much I hope for the help of the developer. It could help very much with creation of an interesting and fair play on the server.

 

Taking an opportunity I want to share a script which found at this forum and a little it added.

 

 

Code:

/* BF3 friendly map names, including B2K */
    Dictionary<String, String> Maps = new Dictionary<String, String>();
    Maps.Add("MP_001", "Grand Bazaar");
    Maps.Add("MP_003", "Teheran Highway");
    Maps.Add("MP_007", "Caspian Border");
    Maps.Add("MP_011", "Seine Crossing");
    Maps.Add("MP_012", "Operation Firestorm");
    Maps.Add("MP_013", "Damavand Peak");
    Maps.Add("MP_017", "Noshahr Canals");
    Maps.Add("MP_018", "Kharg Island");
    Maps.Add("MP_Subway", "Operation Metro");
    Maps.Add("XP1_001", "Strike At Karkand");
    Maps.Add("XP1_002", "Gulf of Oman");
    Maps.Add("XP1_003", "Sharqi Peninsula");
    Maps.Add("XP1_004", "Wake Island");
    
    /* BF3 friendly game modes, including B2K */
    Dictionary<String, String> Modes = new Dictionary<String, String>();    
    Modes.Add("ConquestLarge0", "Conquest64");
    Modes.Add("ConquestSmall0", "Conquest");
    Modes.Add("ConquestSmall1", "Conquest Assault");
    Modes.Add("RushLarge0", "Rush");
    Modes.Add("SquadRush0", "Squad Rush");
    Modes.Add("SquadDeathMatch0", "Squad Deathmatch");
    Modes.Add("TeamDeathMatch0", "Team Deathmatch");
// List all the players
List<PlayerInfoInterface> all = new List<PlayerInfoInterface>();
all.AddRange(team1.players);
all.AddRange(team2.players);
if (team3.players.Count > 0) all.AddRange(team3.players);
if (team4.players.Count > 0) all.AddRange(team4.players);

String header = server.MapFileName + Maps[server.MapFileName] + " - " + Modes[server.Gamemode] + "(" + server.TimeRound + " - " + server.CurrentRound + "/" + server.TotalRounds + ")";
plugin.Log("stats.csv", "");
plugin.Log("stats.csv", header);

if (!plugin.Data.issetBool("FreshLog")) {
    // Write the heading line
    plugin.Log("stats.csv", "Name,Tag,Team,Squad,Kills,Deaths,KDRatio,Score,SPM,KPM,Time,TeamKills,TeamDeaths");
    plugin.Data.setBool("FreshLog", true);
}


// Dump all the players to the log
foreach (PlayerInfoInterface p in all) {
    // Build up the log line:
    String line = p.Name + ",";
    line += p.Tag + ",";
    line += p.TeamId + ",";
    line += p.SquadId + ",";
    line += p.KillsRound + ",";
    line += p.DeathsRound + ",";
    line += p.KdrRound + ",";
    line += p.ScoreRound + ",";
    line += p.SpmRound + ",";
    line += p.KpmRound + ",";
    line += p.TimeRound + ",";
    line += p.TeamKillsRound + ",";
    line += p.TeamDeathsRound + ",";

    // Log it
    plugin.Log("stats.csv", line);
}
return false;
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

Dear PapaCharlie9. My idea is very important for game process on the server. Prompt please concerning my message placed at the beginning of page about percent headshots from statistics of the player.Thx.

I understand. I don't know how to add this feature. The weapon stats code was originally written by micovery. He or someone with more programming skill than me would have to write the new code. That is beyond my skill and knowledge.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by MDV666*:

 

I understand. I don't know how to add this feature. The weapon stats code was originally written by micovery. He or someone with more programming skill than me would have to write the new code. That is beyond my skill and knowledge.

And you can give information on this command? In total that know?

 

Code:

/* Weapon Stats, Current Round, All Rounds (Total) */
        WeaponStatsInterface this[String WeaponName] { get; }
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Itz_cujo666*:

 

Ah...I saw SQDM, the magic word and I thought it was a sparkling new balancer to try... eheh :smile:

 

So, I try my first helpful post, instead of always requesting.

 

For vehicles, to disable or punish in SQDM, there are a couple of options...

 

is probably your best bet.*

 

disables vehicles*, based on map.

 

punishes for weapons*. It's set up for M320, etc...but you can adjust the weapon names to BMP, or whatever vehicles are on your map.

 

I go back to hoping for a SQDM balancer now. :smile:

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

And you can give information on this command? In total that know?

 

Code:

/* Weapon Stats, Current Round, All Rounds (Total) */
        WeaponStatsInterface this[String WeaponName] { get; }
No, sorry. I never used it myself.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by aduh*:

 

This limit combines both Kdr, and Accuracy measurements from Battlelog to kick suspicious players.

 

Set limit to evaluate OnJoin, and action to Kick

 

Set first_check to this Expression:

 

Code:

(  player.Kdr > 4.0   ||  player.Accuracy > 50  )
You may adjust the values of Kdr, and Accuracy as you see fit.
How can I add a "white list" with players excluded from that limit ?
* Restored post. It could be that the author is no longer active.
Link to comment

Archived

This topic is now archived and is closed to further replies.




×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.