Jump to content

insane limits knife and pistols only


ImportBot

Recommended Posts

Originally Posted by p19blo*:

 

I did what you asked but the limit doesnt seem to work, no errors are reported either.

 

Here is what i have

 

limited virtualmode false

 

limit enabled.

first check expression

Code:

! Regex.Match(kill.Weapon, @"(U_A91|U_ACR|U_AEK971|U_AK12|U_AK5C|U_AKU12|U_AMR2|U_AMR2_CQB|U_AMR2_MED|U_AR160|U_ASVAL|U_AWS|U_Bulldog|U_CBJ-MS|U_CS-LR4|U_CS5|U_CZ805|U_CZ75|U_DesertEagle|U_Defib|EODBot|U_F2000|U_FAMAS|U_Flashbang|U_FN57|U_FY-JS|U_G36C|U_GalilACE|U_GalilACE23|U_GalilACE52|U_GalilACE53|U_Glock18|U_GOL|U_Grenade_RGO|U_HK45C|U_JNG90|U_JS2|U_L85A2|U_L96A1|U_LSAT|U_M16A4|U_M1911|U_M200|U_M240|U_M249|U_M39EBR|U_M40A5|U_M416|U_M4A1|U_M60E4|U_M67|U_M82A3|U_M82A3_CQB|U_M82A3_MED|U_M9|U_M93R|U_M98B|U_MagpulPDR|U_Medkit|U_MG4|U_MK11|U_MP7|U_MP412Rex|U_MP443|U_MTAR21|U_MPX|U_MX4|U_P226|U_P90|U_Pecheneg|U_PortableMedicpack|U_PP2000|U_QBB95|U_QBU88|U_QBZ951|U_QSZ92|U_Repairtool|U_RFB|U_RPK12|U_RPK-74|U_SAR21|U_SCAR-H|U_SCAR-HSV|U_Scorpion|U_Scout|U_SG553LB|U_SKS|U_SR2|U_SR338|U_SRS|U_SteyrAug|U_SV98|U_SVD12|U_SW40|U_Taurus44|U_Type88|U_Type95B|U_Ultimax|U_UMP9|U_UMP45|U_Unica6|U_V4|Melee|Suicide|SoldierCollision|DamageArea|Death|)", RegexOptions.IgnoreCase).Success
second check code

 

Code:

double count = limit.Activations(player.Name);
	
	if (count == 1)
	{
	    plugin.KillPlayer(player.Name);
	    plugin.SendPlayerMessage(player.Name, plugin.R ("%p_n%, this weapon is not allowed on this server, do not use %w_n% again! Next time kick"));
	}
	
	else if (count == 2)
	{
            plugin.KickPlayerWithMessage(player.Name, plugin.R("%p_n%, kicked you for using %w_n% on This server"));
            plugin.PRoConChat(plugin.R("%p_n% has been kicked for using %w_n%"));
	}

 return false;
* Restored post. It could be that the author is no longer active.
Link to comment
  • Replies 103
  • Created
  • Last Reply
  • 3 months later...

Originally Posted by Random_Digits*:

 

What is the Phantom Bow code for Insane Limits 0.2.17.0?

After three days searching, alas i've found nothing but the old regix code stuff.

Please help.

 

I am running the script for Bow/Pistol/Knife. Knife and Pistol seem to work fine. But it still kills you on bow shots.

 

In the line:

 

if (!isPistolsOnly || kill.Category == "Handgun" || kill.Category == "Melee" || kill.Category == "Knife" || kill.Category == "Phantom") return false;

 

I have tried; Phantom, Bow, Phantom Bow, dlSHTR. Is my syntax incorrect?

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

Originally Posted by BizSAR*:

 

I know, old thread, but

I'm simply trying to have a BF4 server where only the melee (knife) can be used, killing first offense, kicking the second (want to change to a ban once the code is working).

I'm currently trying the following, and it's not enforcing at all, even though it's compiling with no errors:

Eval: OnKill, action: None

1st check: expression:

Code:

! Regex.Match(kill.Weapon, @"(Melee|Suicide|SoldierCollision|DamageArea|Death)", RegexOptions.IgnoreCase).Success
2nd check: Code

Code:

double count = limit.Activations(player.Name);    
    if (count == 1)
    {
        plugin.KillPlayer(player.Name);
        plugin.SendPlayerMessage(player.Name, plugin.R ("%p_n%, this is a melee only server, do not use %w_n% again! Next time kick"));
    }
    
    else if (count == 2)
    {
            plugin.KickPlayerWithMessage(player.Name, plugin.R("%p_n%, kicked you for using %w_n% on melee only server"));
            plugin.PRoConChat(plugin.R("%p_n% has been kicked."));
    }


 return false;
Trying to figure out where I'm going wrong. I do have use_direct_fetch set to false and use_slow_weapon_stats set to True.

Anyone see something amiss?

Thank you so very much for all you do and your help. :smile:

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

Originally Posted by Chilace*:

 

If "Melee" used as "kill.Weapon" condition then it checks a face-to-face attack (without animation).

You need to add weapon "U_Knife" to condition.

Or use "kill.Category" but in this case the defibrillator and repairtool will also be allowed.

 

1) Code:

! Regex.Match(kill.Weapon, @"(U_Knife|Melee|Suicide|SoldierCollision|DamageArea|Death)", RegexOptions.IgnoreCase).Success
2) Code:
(!Regex.Match(kill.Weapon, @"(Death)", RegexOptions.IgnoreCase).Success && !Regex.Match(kill.Category, @"(Melee|Suicide)", RegexOptions.IgnoreCase).Success)
* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 weeks later...

Originally Posted by ColColonCleaner*:

 

Thank you!!

Just one more Q: How would I change the second check code to kick on first offense, ban for 120 minutes on the second?

Thinking about why you want to do something is very important.

I believe kicking on first offense is an overly strict rule and doesn't give new players a chance to come back from a mistake.

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

Originally Posted by BizSAR*:

 

Well, normally yes, but it is for a short, fun little contest we're doing for PDXLAN on a private server. Long story short, it's 10 people able to use any weapons (whitelisted) vs. 54 that can only use knives. :smile:

On a public server, I certainly don't set the punishments that way.

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

Originally Posted by Chilace*:

 

Thank you!!

Just one more Q: How would I change the second check code to kick on first offense, ban for 120 minutes on the second?

Code:
double count = limit.Activations(player.Name);

if (count == 1) {
  plugin.KickPlayerWithMessage(player.Name, plugin.R("%p_n%, kicked you for using %w_n% on melee only server"));
  plugin.PRoConChat(plugin.R("%p_n% has been kicked."));
} else if (count > 1) {
  plugin.EABanPlayerWithMessage(EABanType.Name, EABanDuration.Temporary, player.Name, 120, plugin.R("%p_n%, tempbanned you for using %w_n% on melee only server"));
  plugin.PRoConChat(plugin.R("%p_n% has been tempbanned."));
  plugin.PRoConEvent(plugin.R("%p_n% has been tempbanned."), "Insane Limits");
}

return false;
P.S. It is worth noting that kill.Weapon="Death" in the first expression in most cases mean kill by vehicle, I don't know whether it was intentional.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by BizSAR*:

 

Thanks!

Actually, no it wasn't intentional...and it actually doesn't seem to work yet. Trying to figure out if it's a setting or the expression itself. Was able to go with a "plan B" plugin and it was an epic time for 50+ participants, but would rather use this plugin for it's versatility.

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

Originally Posted by Chilace*:

 

Oh!

 

player.Name and %p_n% are used in the OnJoin, OnSpawn etc. evaluations.

 

Since OnKill evaluation is used, you need to replace all occurrences of these parameters to killer.Name and %k_n% respectively.

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




  • Our picks

    • Game Server Hosting:

      We're happy to announce that EZRCON will branch out into the game server provider scene. This is a big step for us so please having patience if something doesn't go right in this area. Now, what makes us different compared to other providers? Well, we're going with the idea of having a scaleable server hosting and providing more control in how you set up your server. For example, in Minecraft, you have the ability to control how many CPU cores you wish your server to have access to, how much RAM you want to use, how much disk space you want to use. This type of control can't be offered in a single service package so you're able to configure a custom package the way you want it.

      You can see all the available games here. Currently, we have the following games available.

      Valheim (From $1.50 USD)


      Rust (From $3.20 USD)


      Minecraft (Basic) (From $4.00 USD)


      Call of Duty 4X (From $7.00 USD)


      OpenTTD (From $4.00 USD)


      Squad (From $9.00 USD)


      Insurgency: Sandstorm (From $6.40 USD)


      Changes to US-East:

      Starting in January 2022, we will be moving to a different provider that has better support, better infrastructure, and better connectivity. We've noticed that the connection/routes to this location are not ideal and it's been hard getting support to correct this. Our contract for our two servers ends in March/April respectively. If you currently have servers in this location you will be migrated over to the new provider. We'll have more details when the time comes closer to January. The new location for this change will be based out of Atlanta, GA. If you have any questions/concerns please open a ticket and we'll do our best to answer them.
      • 5 replies
    • Hello All,

      I wanted to give an update to how EZRCON is doing. As of today we have 56 active customers using the services offered. I'm glad its doing so well and it hasn't been 1 year yet. To those that have services with EZRCON, I hope the service is doing well and if not please let us know so that we can improve it where possible. We've done quite a few changes behind the scenes to improve the performance hopefully. 

      We'll be launching a new location for hosting procon layers in either Los Angeles, USA or Chicago, IL. Still being decided on where the placement should be but these two locations are not set in stone yet. We would like to get feedback on where we should have a new location for hosting the Procon Layers, which you can do by replying to this topic. A poll will be created where people can vote on which location they would like to see.

      We're also looking for some suggestions on what else you would like to see for hosting provider options. So please let us know your thoughts on this matter.
      • 4 replies
    • Added ability to disable the new API check for player country info


      Updated GeoIP database file


      Removed usage sending stats


      Added EZRCON ad banner



      If you are upgrading then you may need to add these two lines to your existing installation in the file procon.cfg. To enable these options just change False to True.

      procon.private.options.UseGeoIpFileOnly False
      procon.private.options.BlockRssFeedNews False



       
      • 2 replies
    • I wanted I let you know that I am starting to build out the foundation for the hosting services that I talked about here. The pricing model I was originally going for wasn't going to be suitable for how I want to build it. So instead I decided to offer each service as it's own product instead of a package deal. In the future, hopefully, I will be able to do this and offer discounts to those that choose it.

      Here is how the pricing is laid out for each service as well as information about each. This is as of 7/12/2020.

      Single MySQL database (up to 30 GB) is $10 USD per month.



      If you go over the 30 GB usage for the database then each additional gigabyte is charged at $0.10 USD each billing cycle. If you're under 30GB you don't need to worry about this.


      Databases are replicated across 3 zones (regions) for redundancy. One (1) on the east coast of the USA, One (1) in Frankfurt, and One (1) in Singapore. Depending on the demand, this would grow to more regions.


      Databases will also be backed up daily and retained for 7 days.




      Procon Layer will be $2 USD per month.


      Each layer will only allow one (1) game server connection. The reason behind this is for performance.


      Each layer will also come with all available plugins installed by default. This is to help facilitate faster deployments and get you up and running quickly.


      Each layer will automatically restart if Procon crashes. 


      Each layer will also automatically restart daily at midnight to make sure it stays in tip-top shape.


      Custom plugins can be installed by submitting a support ticket.




      Battlefield Admin Control Panel (BFACP) will be $5 USD per month


      As I am still working on building version 3 of the software, I will be installing the last version I did. Once I complete version 3 it will automatically be upgraded for you.





      All these services will be managed by me so you don't have to worry about the technical side of things to get up and going.

      If you would like to see how much it would cost for the services, I made a calculator that you can use. It can be found here https://ezrcon.com/calculator.html

       
      • 11 replies
    • I have pushed out a new minor release which updates the geodata pull (flags in the playerlisting). This should be way more accurate now. As always, please let me know if any problems show up.

       
      • 9 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.