Jump to content

Insane Limits Requests


ImportBot

Recommended Posts

  • Replies 3.2k
  • Created
  • Last Reply

Originally Posted by LCARSx64*:

 

Uh, did Gun Master just get re-released?

It's a new mode for BF4, maybe you were thinking of either BF3 or the CTE. :ohmy:

 

Hi

i want to make bow and MARE'S LEG only server

if someone use any other weapons i want ban for one hour

is it possible ?

Thanks

The following limit will do as you asked in the Insane Limits thread:

 

1st uses of a weapon other than Mare's Leg or Phantom is a kill with a message.

2nd use is a 1 hour ban.

On returning to the server, all subsequent uses are 1 hour bans.


Allow Mare's Leg && Phantom Only

 

Create a new limit to evaluate OnKill. Set action to None.

 

Set first_check to this Code:

Code:

// Allow Mare's Leg & Phantom Only - Limit 1 of 1
// v1.0 - OnKill - first_check
//

String mplKey = killer.EAGuid + "_MLPB_";
String msg = "Only Mare's Leg & Phantom Bow Allowed!";
String[] logMsgs = { "^b^1Weapon Limiter^0^n: ",
                     "Weapon Limiter: ",
                     " has been ",
                     "killed",
                     "kicked",
                     " for using a weapon other than Mare's Leg or Phantom Bow!" };
int mplCount = 0;

if (kill.Weapon == "dlSHTR" || kill.Weapon == "U_SaddlegunSnp") return false;
if (server.Data.issetInt(mplKey)) mplCount = server.Data.getInt(mplKey);
mplCount++;
if (mplCount == 1)
{
    logMsgs[0] = logMsgs[0] + killer.Name + logMsgs[2] + logMsgs[3] + logMsgs[5];
    logMsgs[1] = logMsgs[1] + killer.Name + logMsgs[2] + logMsgs[3] + logMsgs[5];
    plugin.SendPlayerMessage(killer.Name, msg);
    plugin.SendPlayerYell(killer.Name, "\n" + msg, 8);
    plugin.KillPlayer(killer.Name, 0);
}
else
{
    if (mplCount > 2) mplCount = 2;
    logMsgs[0] = logMsgs[0] + killer.Name + logMsgs[2] + logMsgs[4] + logMsgs[5];
    logMsgs[1] = logMsgs[1] + killer.Name + logMsgs[2] + logMsgs[4] + logMsgs[5];
    plugin.EABanPlayerWithMessage(EABanType.EA_GUID, EABanDuration.Temporary, killer.Name, 60, msg);
}
plugin.ConsoleWrite(logMsgs[0]);
plugin.PRoConChat(logMsgs[0]);
plugin.PRoConEvent(logMsgs[1], "Insane Limits");
server.Data.setInt(mplKey, mplCount);

return false;

End of post.

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

Originally Posted by MRniceGuy*:

 

@LCARSx64 thank you so much

but i forgot to mention knife xD i want bow, MARE'S LEG and knife

i dont understand the cod to edit on

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

Originally Posted by LCARSx64*:

 

@LCARSx64 thank you so much

but i forgot to mention knife xD i want bow, MARE'S LEG and knife

i dont understand the cod to edit on

Change the code to:

Code:

// Allow Mare's Leg, Phantom & Knife Only - Limit 1 of 1
// v1.0 - OnKill - first_check
//

String mplKey = killer.Name + "_MLPB_";
String msg = "Only Mare's Leg, Phantom Bow & Knife Allowed!";
String[] logMsgs = { "^b^1Weapon Limiter^0^n: ",
                     "Weapon Limiter: ",
                     " has been ",
                     "killed",
                     "kicked",
                     " for using a weapon other than Mare's Leg, Phantom Bow or Knife!" };
int mplCount = 0;

if (kill.Weapon == "dlSHTR" || kill.Weapon == "U_SaddlegunSnp" || kill.Weapon == "Melee" || kill.Weapon == "U_Knife") return false;
if (server.Data.issetInt(mplKey)) mplCount = server.Data.getInt(mplKey);
mplCount++;
if (mplCount == 1)
{
    logMsgs[0] = logMsgs[0] + killer.Name + logMsgs[2] + logMsgs[3] + logMsgs[5];
    logMsgs[1] = logMsgs[1] + killer.Name + logMsgs[2] + logMsgs[3] + logMsgs[5];
    plugin.SendPlayerMessage(killer.Name, msg);
    plugin.SendPlayerYell(killer.Name, "\n" + msg, 8);
    plugin.KillPlayer(killer.Name, 0);
}
else
{
    if (mplCount > 2) mplCount = 2;
    logMsgs[0] = logMsgs[0] + killer.Name + logMsgs[2] + logMsgs[4] + logMsgs[5];
    logMsgs[1] = logMsgs[1] + killer.Name + logMsgs[2] + logMsgs[4] + logMsgs[5];
    plugin.EABanPlayerWithMessage(EABanType.EA_GUID, EABanDuration.Temporary, killer.Name, 60, msg);
}
plugin.ConsoleWrite(logMsgs[0]);
plugin.PRoConChat(logMsgs[0]);
plugin.PRoConEvent(logMsgs[1], "Insane Limits");
server.Data.setInt(mplKey, mplCount);

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

Originally Posted by LCARSx64*:

 

Hi and thank you

but this code kills when people use mares leg :/

Oh sorry, I made a stupid mistake. I've edited the code in my previous post and fixed the issue.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by MRniceGuy*:

 

now it works :P

but just in case if i wanted to make it with 2 warning before the ban!

would be great if you also post the code with 2 warning so if i wanted to change later

again thank you.

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

Originally Posted by LCARSx64*:

 

now it works :P

but just in case if i wanted to make it with 2 warning before the ban!

would be great if you also post the code with 2 warning so if i wanted to change later

again thank you.

For that, change the code to the following (Change the value highlighted in red to the number of warnings you want):

Code:

// Allow Mare's Leg & Phantom Only - Limit 1 of 1
// v1.0 - OnKill - first_check
//

String mplKey = killer.EAGuid + "_MLPB_";
String msg = "Only Mare's Leg, Phantom Bow & Knife Allowed!";
String[] logMsgs = { "^b^1Weapon Limiter^0^n: ",
                     "Weapon Limiter: ",
                     " has been ",
                     "killed",
                     "kicked",
                     " for using a weapon other than Mare's Leg, Phantom Bow or Knife!" };
int mplCount = 0;
int numWarns = 1;

if (kill.Weapon == "dlSHTR" || kill.Weapon == "U_SaddlegunSnp" || kill.Weapon == "Melee" || kill.Weapon == "U_Knife") return false;
if (server.Data.issetInt(mplKey)) mplCount = server.Data.getInt(mplKey);
mplCount++;
numWarns++;
if (mplCount < numWarns)
{
    logMsgs[0] = logMsgs[0] + killer.Name + logMsgs[2] + logMsgs[3] + logMsgs[5];
    logMsgs[1] = logMsgs[1] + killer.Name + logMsgs[2] + logMsgs[3] + logMsgs[5];
    plugin.SendPlayerMessage(killer.Name, msg);
    plugin.SendPlayerYell(killer.Name, "\n" + msg, 8);
    plugin.KillPlayer(killer.Name, 0);
}
else
{
    if (mplCount > numWarns) mplCount = numWarns;
    logMsgs[0] = logMsgs[0] + killer.Name + logMsgs[2] + logMsgs[4] + logMsgs[5];
    logMsgs[1] = logMsgs[1] + killer.Name + logMsgs[2] + logMsgs[4] + logMsgs[5];
    plugin.EABanPlayerWithMessage(EABanType.EA_GUID, EABanDuration.Temporary, killer.Name, 60, msg);
}
plugin.ConsoleWrite(logMsgs[0]);
plugin.PRoConChat(logMsgs[0]);
plugin.PRoConEvent(logMsgs[1], "Insane Limits");
server.Data.setInt(mplKey, mplCount);

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

Originally Posted by Rucki*:

 

Hi,

i am looking for a pointles script, but with a nice effect. :ohmy:

 

Script should check all countrycodes from players on the server.

For the country with is most present at this time -> admin.yell as Example:

 

Players from Italy are dominating the server at this time.

 

Fired on 10. kill, or someone has a better idea?

 

Hope anyone can help me.

Thx!

 

Rucki

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

Originally Posted by ColColonCleaner*:

 

Would suggest doing that on round end or round start with stats from the previous round.

 

Also might be best to have it add the kill counts or score counts of the players from each country to determine which country is dominating, not just the player count.

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

Originally Posted by Rucki*:

 

Also might be best to have it add the kill counts or score counts of the players from each country to determine which country is dominating, not just the player count.

Thx, i think domination was the wrong word.

Should have nothing to do with gamestats.

 

Maybe the better yell:

Country check: Most players on server are from Spain!

 

Thx!

Rucki

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

Originally Posted by LCARSx64*:

 

Hi,

i am looking for a pointles script, but with a nice effect. :ohmy:

 

Script should check all countrycodes from players on the server.

For the country with is most present at this time -> admin.yell as Example:

 

Players from Italy are dominating the server at this time.

 

Fired on 10. kill, or someone has a better idea?

 

Hope anyone can help me.

Thx!

 

Rucki

Thx, i think domination was the wrong word.

Should have nothing to do with gamestats.

 

Maybe the better yell:

Country check: Most players on server are from Spain!

 

Thx!

Rucki

What happens when the country balance is even? E.g. 4 players in the server, 2 from country A and 2 from country B or 1 from country A, 1 from country B, 1 from country C and 1 from country D. What would the limit do in cases such as these?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Rucki*:

 

What happens when the country balance is even? E.g. 4 players in the server, 2 from country A and 2 from country B or 1 from country A, 1 from country B, 1 from country C and 1 from country D. What would the limit do in cases such as these?

I hope this situation is rare on a full server.

On your examples, nothing should happen on server.

Only ProconChat a short msg like "Unable to generate CountryMostPlayers"

 

Thanks a lot!

Rucki

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

Originally Posted by MadDark_DK*:

 

You add the following vars to your startup.txt to change the preset:

Code:

vars.gunMasterWeaponsPreset X

Where X is:

0 - Standard
1 - Classic
2 - Pistol
3 - DLC
4 - Troll
As for if it can be randomly changed each round, try the following limit:

NOTE: This is untested and may not work.

 

If you added vars.gunMasterWeaponsPreset to your startup.txt, change the value highlighted in red in the code to the same value as your startup.txt

If you don't want the limit to display the next preset in Procon chat, remove the lines highlighted in green from the code.


BF4 Gunmaster Random Presets

 

Create a new limit to evaluate OnRoundOver. Set action to None.

 

Set first_check to this Code:

Code:

// BF4 Gunmaster Random Presets - Limit 1 of 1
// v1.0 - OnRoundOver - first_check
//

int lastPreset = 0;
int nextPreset = 0;
Random rnd = new Random();
String lastKey = "_LASTGM_";
String[] msgs = { "Standard",
                  "Classic",
                  "Pistol",
                  "DLC",
                  "Troll" };

if (server.Data.issetInt(lastKey)) lastPreset = server.Data.getInt(lastKey);
nextPreset = rnd.Next(5);
while (nextPreset == lastPreset)
{
    nextPreset = rnd.Next(5);
}
plugin.ServerCommand("vars.gunMasterWeaponsPreset", nextPreset.ToString());
plugin.PRoConChat("Next Gunmaster preset changed to: ^b^1" + msgs[nextPreset] + "^0^n.");
server.Data.setInt(lastKey, nextPreset);

return false;

End of post.

Can you make it to change efter map to Standard,Classic,Pistol,DLC and Troll ? So its not Random?

 

The first map. with Standard

Next map. Classic

And next map. Pistol

And next map DLC

And the last map. Troll

And then all over?

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

Originally Posted by LCARSx64*:

 

Can you make it to change efter map to Standard,Classic,Pistol,DLC and Troll ? So its not Random?

 

The first map. with Standard

Next map. Classic

And next map. Pistol

And next map DLC

And the last map. Troll

And then all over?

Change the code to the following (you will still need to change the value highlighted in red to whatever you have set in your startup.txt).

Code:

// BF4 Gunmaster Random Presets - Limit 1 of 1
// v1.0 - OnRoundOver - first_check
//

int lastPreset = 0;
int nextPreset = 0;
String lastKey = "_LASTGM_";
String[] msgs = { "Standard",
                  "Classic",
                  "Pistol",
                  "DLC",
                  "Troll" };

if (server.Data.issetInt(lastKey)) lastPreset = server.Data.getInt(lastKey);
nextPreset = lastPreset + 1;
if (nextPreset > 4) nextPreset = 0;
plugin.ServerCommand("vars.gunMasterWeaponsPreset", nextPreset.ToString());
plugin.PRoConChat("Next Gunmaster preset changed to: ^b^1" + msgs[nextPreset] + "^0^n.");
server.Data.setInt(lastKey, nextPreset);

return false;
To exclude the Troll preset, change the value highlighted in blue to 3.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by MadDark_DK*:

 

Change the code to the following (you will still need to change the value highlighted in red to whatever you have set in your startup.txt).

Code:

// BF4 Gunmaster Random Presets - Limit 1 of 1
// v1.0 - OnRoundOver - first_check
//

int lastPreset = 0;
int nextPreset = 0;
String lastKey = "_LASTGM_";
String[] msgs = { "Standard",
                  "Classic",
                  "Pistol",
                  "DLC",
                  "Troll" };

if (server.Data.issetInt(lastKey)) lastPreset = server.Data.getInt(lastKey);
nextPreset = lastPreset + 1;
if (nextPreset > 4) nextPreset = 0;
plugin.ServerCommand("vars.gunMasterWeaponsPreset", nextPreset.ToString());
plugin.PRoConChat("Next Gunmaster preset changed to: ^b^1" + msgs[nextPreset] + "^0^n.");
server.Data.setInt(lastKey, nextPreset);

return false;
To exclude the Troll preset, change the value highlighted in blue to 3.
Thanks. u the man :smile:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by MadDark_DK*:

 

Change the code to the following (you will still need to change the value highlighted in red to whatever you have set in your startup.txt).

Code:

// BF4 Gunmaster Random Presets - Limit 1 of 1
// v1.0 - OnRoundOver - first_check
//

int lastPreset = 0;
int nextPreset = 0;
String lastKey = "_LASTGM_";
String[] msgs = { "Standard",
                  "Classic",
                  "Pistol",
                  "DLC",
                  "Troll" };

if (server.Data.issetInt(lastKey)) lastPreset = server.Data.getInt(lastKey);
nextPreset = lastPreset + 1;
if (nextPreset > 4) nextPreset = 0;
plugin.ServerCommand("vars.gunMasterWeaponsPreset", nextPreset.ToString());
plugin.PRoConChat("Next Gunmaster preset changed to: ^b^1" + msgs[nextPreset] + "^0^n.");
server.Data.setInt(lastKey, nextPreset);

return false;
To exclude the Troll preset, change the value highlighted in blue to 3.
We have a server there is running this code, is it possible to remove Ballistic Shield in troll ?

And replace it with C4 ?

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

Originally Posted by LCARSx64*:

 

We have a server there is running this code, is it possible to remove Ballistic Shield in troll ?

And replace it with C4 ?

Unfortunately no, the weapons presets are predetermined by DICE, you cannot customize them. :sad:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by God_Zilla*:

 

Good time comrades!

 

We would like to ask for your help.

 

Need new Limits: Switching maplist depending refers to the amount of players online.

 

We have five sets of MapList's that we want to use. It is necessary that they are automatically switched as a function of amount of players online.

 

Example:

MapList1.txt

MapList2.txt => 8 players

MapList3.txt => 16 players

MapList4.txt => 32 players

MapList5.txt => 40 players

 

The number of players - it is editable settings for.

 

But that is not all. It would be too easy:ohmy:

 

- When changing current MapList procon remembered what map it was next and when return to it MapList starts rotation not from the beginning, and since with the "last saved map".

- Clearing all "last saved map" for all MapList's when ProCon restart.

- Switch MapList's only after the specified refers to the amount rounds.

 

We know about the wonderful plugin "Ultimate Map Manager*", but it has some significant drawbacks for us and has in its arsenal a few little things we need.

 

 

We hope to help, thank you very much!

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

Originally Posted by moacco07*:

 

Can anyone direct me to link that can teach me C++ for Procon BF4? I would like to learn and when i'm familiar i can help do codes on this forum.

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

Originally Posted by EBassie*:

 

Good time comrades!

 

We would like to ask for your help.

 

Need new Limits: Switching maplist depending refers to the amount of players online.

 

We have five sets of MapList's that we want to use. It is necessary that they are automatically switched as a function of amount of players online.

 

Example:

MapList1.txt

MapList2.txt => 8 players

MapList3.txt => 16 players

MapList4.txt => 32 players

MapList5.txt => 40 players

 

The number of players - it is editable settings for.

 

But that is not all. It would be too easy:ohmy:

 

- When changing current MapList procon remembered what map it was next and when return to it MapList starts rotation not from the beginning, and since with the "last saved map".

- Clearing all "last saved map" for all MapList's when ProCon restart.

- Switch MapList's only after the specified refers to the amount rounds.

 

We know about the wonderful plugin "Ultimate Map Manager*", but it has some significant drawbacks for us and has in its arsenal a few little things we need.

 

 

We hope to help, thank you very much!

Why isn't Ultimate Map Manager good enough for you? It's not like this is an easy limit to program and with UMM you can do 99% of the things you need?

 

Maybe you should ask feature requests for UMM?

 

Sent from my SM-G925F using Tapatalk

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

Originally Posted by _gp_*:

 

I finally got access to a BF4 server via ProCon,

Here is some code that I have been using on my BF3 GunMaster Server to RaNDomize gunlists, the code is working on GunMaster only maplist, have not tested BF4 mix modes, but it did work for BF3...

 

Create A New Limit

 

limit_state

 

enabled

 

limit_name

 

RndGunList

 

limit_evaluation

 

OnRoundOver

 

first_check

 

Expression

Code:

(server.NextGamemode == "GunMaster0")
second_check

 

code

Code:

//from bf3 server, thanks to papacharlie9 long ago my first limit
//gp bf4_06052015

Random rnd = new Random();

// to not use troll change following to read  int gunlist=rnd.Next(4);

int gunlist=rnd.Next(5);

if(gunlist==0)
       {plugin.ServerCommand("vars.gunMasterWeaponsPreset","0");}
else if(gunlist==1)
       {plugin.ServerCommand("vars.gunMasterWeaponsPreset","1");}
else if(gunlist==2) 
       {plugin.ServerCommand("vars.gunMasterWeaponsPreset","2");}
else if(gunlist==3)
       {plugin.ServerCommand("vars.gunMasterWeaponsPreset","3");}
else if(gunlist==4)
       {plugin.ServerCommand("vars.gunMasterWeaponsPreset","4");}
return false;
limit_action

 

none

 

 

thanks again papa...

 

_gp?

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

Originally Posted by EntraVenuS*:

 

Request for limit.

 

Can the 2 spectator slots we have be made available for commander? then for example if no one uses commander in a round it could be turned back to spectator slots.

 

This would be handy to have as spec slots are nearly always empty so we could utilize for commander use.

 

Thanks in advance

 

I forgot to add we use ranked not official

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

Originally Posted by God_Zilla*:

 

Why isn't Ultimate Map Manager good enough for you? It's not like this is an easy limit to program and with UMM you can do 99% of the things you need?

 

Maybe you should ask feature requests for UMM?

I thought about it. Not sure that the developer will pay attention to our problems because in others, they do not seem to occur.

UMM really good plugin, but when using it arises a couple of problems. Very long loading Procon at large MapLists. Serious "freezes" when working with big MapLists (add/delete map in MapList and other) if already added than ~ 70 or more maps. Sometime is lost part of a plugin options if MapLists is big. Randomize maps option work not as we would like - It set one and the same mode many times in a row (example plugin: TDM TDM TDM CQ CQ Rush Rush CQ Rush; Example as needed : TDM CQ TDM Rush CQ TDM Rush CQ Rush). The basis of UMM plugin problem is its low performance and serious freezes when working with large MapLists. Due to this begin to "freezes" and incorrect work some of the other installed plugins. This is 100% not a problem hardware, Procon runs on core i7 with 16GB DDR3. Taking into account the "freezing" a lot easier, faster and more usual edit Maplist.txt. So we need a new limit which will be simply change MapList.txt depending on server population.

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

Originally Posted by LCARSx64*:

 

Request for limit.

 

Can the 2 spectator slots we have be made available for commander? then for example if no one uses commander in a round it could be turned back to spectator slots.

 

This would be handy to have as spec slots are nearly always empty so we could utilize for commander use.

 

Thanks in advance

 

I forgot to add we use ranked not official

I don't think this can be done.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by jockey250178*:

 

Hello.

 

Could anybody help me with one problem ?

 

I have this rank limit rule ( player.Rank > 60 ) with action kick included and need just for this rule a whitelist.

 

How could i make a whitelist just for this rule ?

 

Best regards

 

Jockey

* 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.