Page 1 of 141 1231151101 ... LastLast
Results 1 to 10 of 1405
  1. #1

    Post Insane Limits - Examples

    ARCHIVED

    If you need help with writing or using an Insane Limit, or you are looking for a limit, please post your request in the Insane Limits Requests thread.

    Most of these limits are outdated and may not work with the current 0.9 versions of Insane Limits. Most will not work with BF4.

    Rationale


    I have created this thread solely for the purpose of showcasing uses of the Insane Limits plugin. The first post will always contain the index of examples with links to each example. You may contribute your own examples by replying to this thread. As more examples are added, the index will grow.

    If you want to ask questions, or discuss on how to expand, or point out a problem with an example, please do so in the original thread for the Insane Limits plugin. Replies in this thread that do not conform to Limit examples might get removed.

    For full documentation, and download link, see the original post here


    Video Demo





    How to submit or use the examples


    Each example is a description of the structure of a limit definition. Examples should be in the following format:

    Set limit evaluation to EventName, Set action to ActionName

    Set first_check to Expression/Code:

    Code:
         ( sample expression #1)
    Set second_check to Expression/Code:

    Code:
         ( sample expression #2)

    And that's it. Not all limits require two expressions, some may require you to set only first_check.


    Examples Index


    1. Simple Rank Limit
    2. Smart Rank Limit
    3. Simple Country Kicker
    4. Battlelog KDR Kicker
    5. Battlelog Excessive Recon/Sniper Kicker
    6. Admin Request Notification
    7. Excessive Kill Rate Kicker
    8. Simple Weapon Kill Spree
    9. Weapon Multi-Kill achievement
    10. Melee/Knife death shame
    11. Team First Blood
    12. Server First Blood
    13. Round Kpm Kicker
    14. Multi-Message Kill Spree
    15. Multi-Message Death Spree
    16. Knife Only Server
    17. Pistol Only Server
    18. Battlelog Spm Kicker
    19. Bad Words Kicker (Regular Expressions Optional)
    20. Suicide Jumper Shame
    21. No RPG/M320 Kicker
    22. Disable Vehicles Based on Player Count
    23. Disable Vehicles Based on Current Map
    24. Simple Welcome Message
    25. Welcome Message Based on Country
    26. Warning/Kick for RPG/M320/SMAW Suicides
    27. Admin Welcome Messages
    28. Good Morning Message (Time Dependent)
    29. First Kill of the Year
    30. Nuke/Knife Cheat Catcher
    31. Multi-Action Bad Word Filter
    32. Next Gamemode Ticket Changer
    33. Announce Top Scoring Clan
    34. Take PunkBuster Screenshot at Specified K/D Ratio
    35. Warning for Excessive Use of Uppercase in Chat
    36. Multi-Warning/Kick for Excessive Use of Uppercase in Chat
    37. Basic @nextmap Say In-Game Command
    38. In-Game Per-Weapon Headshots Percentage Kicker
    39. Rules On Request
    40. Clan-Tag Kicker (Using Custom List)
    41. Unreal Tournament Style Kill-Spree Messages (with End-Spree Messages)
    42. Multi-Action 1st Kill, 2nd Kick, 3rd Ban for RPG/SMAW/M320
    43. Vote-Kick
    44. Vote-Ban
    45. Anti-Stack Winning Team (Ticket Dependent)
    46. Kick Players Without Battlelog Account
    47. Custom Admin Announcer & In-Game Admin List
    48. Player-Specific Welcome Messages
    49. Switch Hardcore/Softcore Mode Based on Player Count
    50. Basic Next-Map Say Command
    51. Killers & Victims Tracker
    52. In-Game Top Killers & Victims Command
    53. In-Game Player versus Player Command
    54. Announce Next mode (works fine with Ultimate Map Manager)
    55. Change Server Settings for Late-Night vs. Prime-Time Hours
    56. Player Count Tracker
    57. Bad Player Name Kicker
    58. Melee/Knife Death Shame From Message List (Round-Robin or Random)
    59. Chat Message Spambot


    Coding Patterns/Templates for Examples

    Last edited by EBassie; 01-05-2016 at 18:17. Reason: Fixed all links

  2. #2

    Simple Rank Limit

    Set limit to evaluate OnJoin, set action to Kick or ban, or any other action you wish

    Set first_check to this Expression:

    Code:
                  ( player.Rank > 45 )
    You may change the rank value from 45 to whatever value you want.

  3. #3

    Smart Rank Limit

    Suppose that you want to be tolerant and allow the server to fill up and only kick the high ranking players after a certain point. You can achieve this by combining the Simple Rank Limit with another Expression using the server's player count.

    Set limit to evaluate OnJoin, and set action to Kick ...

    Set first_check to this Expression:

    Code:
                  (  player.Rank > 45   &&  server.PlayerCount > 30  )
    This will allow the server to fill up to 30 players, and start kicking high ranking players only after the 31st player joins.

  4. #4

    Simple Country Kicker

    Suppose you wanted to kick players who join your server from Russia, India, or Iran.

    Set limit to evaluate OnJoin, and set action to Kick

    Set first_check to this Expression:

    Code:
              Regex.Match(player.CountryCode, "(RU|IR|IN)", RegexOptions.IgnoreCase).Success
    Any player that joins the server, whose country code matches "RU", "IR", or "IN" will be kicked.

    What if you want to setup a negative check ... like kick anyone that joins who is not from "US". In that case, you can do this:

    Set limit to evaluate OnJoin, and set action to Kick

    Set first_check to this Expression:

    Code:
             ! Regex.Match(player.CountryCode, "(US)", RegexOptions.IgnoreCase).Success
    Last edited by micovery; 30-12-2011 at 15:33.

  5. #5

    Battlelog Kdr Kicker

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

    Set limit to evaluate OnSpawn, 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.
    Last edited by PapaCharlie9; 01-12-2013 at 16:31.

  6. #6

    Battlelog Excessive Recon/Sniper Kicker

    This limit will kick any player on the server who uses recon kit more than 90% of the time, and has good Kdr.

    Set limit to evaluate OnJoin, Set action to Kick

    Set first_check to this Expressio:

    Code:
                  ( player.ReconPercent > 90 && player.Kdr > 2.0 )
    You may adjust the values in the check expression as you see fit.
    Last edited by micovery; 29-12-2011 at 03:51.

  7. #7

    Admin Request Notification

    This limit creates a Windows Taskbar notification when someone in-game types something like:

    "@admin Please kick micovery for hacking!"


    Set the limit to evaluate OnAnyChat, and make the action be TaskbarNotify.

    Set first_check to this Expression:

    Code:
                      player.LastChat.StartsWith("@admin")
    And set these action specific parameters:

    Code:
           taskbar_notify_title =  Admin Request from %p_n%
           taskbar_notify_message = %p_n% says, %p_lc%
    A few users have tested it and reported that the task-bar notification won't show if plugin is running on layer.

  8. #8

    Excessive Kill Rate Kicker

    This limit will check for how fast a player makes kills, and perform whatever action you want, if the player exceeds the rate you specify.


    Set the limit to evaluate for OnKill, and set the action to Kick

    Set first_check to this Expression:

    Code:
                   (true)
    Set the second_check to this Expression:

    Code:
                   ( limit.Activations(player.Name, TimeSpan.FromSeconds(30)) >  10 )
    In this example, the rate is +10 kills, in 30 seconds. You may want to adjust this rate as you wish.


    What if you wanted to check for the Headshot rate ? Well you can do that as well. In that case, just modify the first_check Expression to activate only for Headshots like this:

    Code:
                   ( kill.Headshot == true)

  9. #9

    Simple Weapon Kill Spree

    For this example, I will use pistols, but you may do it for any weapon you wish, as long as you know the name of the weapon. This kill-spree limit will send a message to the server whenever a player reaches or exceeds a certain amount of kills with the weapon. Each time the message says the number of kills.

    Set limit to evaluate OnKill, Set action to Say

    Set first_check to this Expression:

    Code:
        Regex.Match(kill.Weapon, @"(M1911|M9|M93R|Taurus|MP412REX|MP443|Glock)", RegexOptions.IgnoreCase).Success
    Set second_check to this Expression:

    Code:
                  ( limit.Spree(player.Name) > 5 )
    Set these action specific parameters:

    Code:
                  say_audience = All
                  say_message = %p_n% is on a killing spree with his %w_n%, he has %r_x% kills with it!
    So in this example, more than 5 pistol kills (without dying) with a pistol is considered a spree. You may change the spree condition to start sending messages at different value.

  10. #10

    Suicide Jumper Shame

    In this example, the limit tracks when a player dies by "SoldierCollision" which is usually from a big fall.


    Set a limit to evaluate OnSuicide, and action to Say

    Set first_check to this Expression:

    Code:
                kill.Weapon.Equals("SoldierCollision")
    Set these action specific parameters:

    Code:
               say_audience = All
               say_message = %p_n% just jumped to his death, for the %p_x_th% time this round!
    Last edited by micovery; 29-12-2011 at 04:55.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •