Raised This Month: $32 Target: $400
 8% 

[L4D/L4D2] No Rushing


Post New Thread Reply   
 
Thread Tools Display Modes
Author
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Plugin ID:
5143
Plugin Version:
1.0
Plugin Category:
Server Management
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A complete remake of the Ready Up Module: Restrict Distance originally made by Skyy.
    Old 04-16-2016 , 05:46   [L4D/L4D2] No Rushing
    Reply With Quote #1

    Okay, let me rephrase. Finally, after 12345678910 years of editing, I proudly present my modified version of Skyy's Ready Up Module: Restrict Distance.

    So quick cut to the chase, what this plugin does is it calculates each player's distance and the radius within each other. It also detects whoever is rushing so if said someone reaches a certain amount of distance far away from his/her team, the plugin automatically gets the distance between the team and the rusher and teleports him/her back.

    I hope this plugin will enrage the troublesome rushers in your servers. Oh, I forgot to mention that there's also one more surprise - you, as the server owner/gamer, and the other admins get to decide whether to kill or kick that rusher if he/she reaches the maximum limit of rushing.

    This is also useful for bots getting stuck if cvar "sb_unstick" is set to 0.

    L4D2 Direct --> Main Link / Source

    Quote:
    Changelog: 04-16-16
    - First release.

    04-17-16
    - Since the previous one doesn't work even with Ready Up loaded, I decided to make it a one file only. I assure you that it's working 100%.
    - Added support for custom campaigns.
    - Will be making L4D version just in case of demands.
    - Found server crasher bug: Produces too many rush warning even if not rushing. [FIX] Added !IsFakeClient check to Function:CalculateTeamDistance as it seems to be calculating the bots' and player's distances without the check.
    - Added the configs to be downloaded in case for those others who didn't get this plugin from earlier posts.

    04-18-16
    - Really a big klutz this time, Uploading the translations file and the includes right now! Thanks Sev and MasterMind420.
    - Posted the latest update of l4d2_direct to prevent compile errors said by Krufftys Killers.
    - Reuploaded broken translations file.

    05-18-16
    - Uploaded .smx file for direct download.
    - Removed includes as you can get them elsewhere.
    TO DO:
    • As kinda requested by maximus200 from my other posts, I'm planning to make rushers non-movable like they're frozen in place in a configurable amount of time and add teleportation delay to completely enrage them.

    Notes:
    (For those who already downloaded the plugin)
    1. Please delete the:
      • maplist.cfg
      • parser.sp and readyup.sp
      • readyup.inc and wrap.inc from your scripting/include folder.
      • rum_norushing.sp along with the compiled .smx.
    2. Rename the rum_norushing.phrases.txt translation file to norushing.phrases.txt only.
    3. Move the norushing folder and norushing.cfg from the readyup folder to the sourcemod/configs folder. Don't forget to delete the readyup folder after you do this.
    (For those who didn't)
    1. Download the .sp file as it will fail to compile if you click Get Plugin as it requires l4d2_direct.
    2. Compile the new downloaded .sp file and put it in your plugins folder. Restart server and you're done.

    If you want to modify the config, please do these steps:
    1. You must have Notepad++. Please download the latest one if you don't have it.
    2. Here's what the main config looks like:
      PHP Code:
      "config"
      {
          
      "Rushing Limit"                "5" // Maximum rushing limits
          
      "Maximum Amount Of Survivors"            "4" // Total number of survivors (if you're using plugins to extend maxplayers, please put the exact value)
          
      "Ignore Incapacitated Survivors?"            "1" // Ignore incapacitated survivors left behind? (really needed to be enabled as you don't want bots to go all the way back just to revive that person.)
          
      "Ignore Lagging Players?"            "0" // Ignore lagging or lost players?
          
      "Action Needed For Rushers"        "1" // Modes: 0=Teleport only, 1=Teleport and kill after reaching limits, 2=Teleport and kick after reaching limits.

      Then change it into:
      PHP Code:
      "config"
      {
          
      "Rushing Limit"                "your value" // Maximum rushing limits
          
      "Maximum Amount Of Survivors"            "example no: 12" // Total number of survivors (if you're using plugins to extend maxplayers, please put the exact value)
          
      "Ignore Incapacitated Survivors?"            "1" // Ignore incapacitated survivors left behind? (really needed to be enabled as you don't want bots to go all the way back just to revive that person.)
          
      "Ignore Lagging Players?"            "0" // Ignore lagging or lost players?
          
      "Action Needed For Rushers"        "your value" // Modes: 0=Teleport only, 1=Teleport and kill after reaching limits, 2=Teleport and kick after reaching limits.

    3. After doing that, if you want to adjust the rush distance limit, here's what one of the map configs looks like: (For example, Dead Center - Hotel)
      PHP Code:
      "c1m1_hotel"
      {
          
      "Notice Rushing Distance"        "0.2" // Detect rushing distance. Legend: 0.1 (Really close), 0.25 (Halfway the map), 0.4 (Near the end saferoom), 0.5 (Too far away, i.e rushes inside the saferoom and closes it while others are fighting zombies.)
          
      "Warning Distance"        "0.3" // Warn rushers if they reached this distance (No teleportations, just warnings.)
          
      "Ignore Extra Distance"        "0.31" // Teleport and kill or kick (if rusher reaches max rush limit) rusher after reaching this distance

      Then change it to whatever value you desire. Oh, and if you want to add custom campaigns, just make a new file, change the mapname, the values (not the names) and save it with .cfg extension.
      Example:
      PHP Code:
      "l4d2_city17_01"
      {
          
      "Notice Rushing Distance"        "0.17" // Detect rushing distance. Legend: 0.1 (Really close), 0.25 (Halfway the map), 0.4 (Near the end saferoom), 0.5 (Too far away, i.e rushes inside the saferoom and closes it while others are fighting zombies.)
          
      "Warning Distance"        "0.24" // Warn rushers if they reached this distance (No teleportations, just warnings.)
          
      "Ignore Extra Distance"        "0.25" // Teleport and kill or kick (if rusher reaches max rush limit) rusher after reaching this distance

    Attached Files
    File Type: sp Get Plugin or Get Source (no-rushing.sp - 778 views - 13.0 KB)
    File Type: zip [L4D2] No Rushing Configs.zip (15.1 KB, 659 views)
    File Type: txt norushing.phrases.txt (538 Bytes, 795 views)
    File Type: smx no-rushing.smx (12.3 KB, 817 views)

    Last edited by cravenge; 05-18-2016 at 02:42.
    cravenge is offline
    Krufftys Killers
    Senior Member
    Join Date: Jan 2014
    Old 04-16-2016 , 07:49   Re: [L4D2] Modified Ready Up and Ready Up Module: No Rushing
    Reply With Quote #2

    Can"t compile rum_norushing.sp and parser.sp
    Krufftys Killers is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 04-17-2016 , 05:11   Re: [L4D2] Modified Ready Up and Ready Up Module: No Rushing
    Reply With Quote #3

    Quote:
    Originally Posted by Krufftys Killers View Post
    Can"t compile rum_norushing.sp and parser.sp
    I'm sorry about that but I replaced it as a single .sp file now to prevent the errors you mentioned.
    cravenge is offline
    Krufftys Killers
    Senior Member
    Join Date: Jan 2014
    Old 04-17-2016 , 11:32   Re: [L4D/L4D2] No Rushing
    Reply With Quote #4

    Getting this error falel error 182: cannot read from file :"l4d2_stocks.inc" when compileing it
    Krufftys Killers is offline
    Sev
    Veteran Member
    Join Date: May 2010
    Old 04-17-2016 , 11:53   Re: [L4D/L4D2] No Rushing
    Reply With Quote #5

    No offense to the author, but this is why you should always leave a pre compiled version of a plugin before you release it. That way any modifications people wanna make, they can try to compile themselves, but you always at least leave the plugin compiled for the general public.
    Sev is offline
    MasterMind420
    BANNED
    Join Date: Nov 2010
    Old 04-17-2016 , 14:59   Re: [L4D/L4D2] No Rushing
    Reply With Quote #6

    yah i can confirm the compiling issue as well, also the translation file isn't present in the package, for people without the previous release...either way once we can use it, this will be epic for servers to have.

    Last edited by MasterMind420; 04-17-2016 at 15:01.
    MasterMind420 is offline
    Sectus
    Junior Member
    Join Date: May 2016
    Old 05-17-2016 , 09:45   Re: [L4D/L4D2] No Rushing
    Reply With Quote #7

    Please, can you link a compiled plugin on the 1st paget? Otherwise we just can't get it. Thank you.
    Sectus is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 05-18-2016 , 02:43   Re: [L4D/L4D2] No Rushing
    Reply With Quote #8

    Request done..
    cravenge is offline
    Sectus
    Junior Member
    Join Date: May 2016
    Old 05-18-2016 , 05:02   Re: [L4D/L4D2] No Rushing
    Reply With Quote #9

    Thank you! Will test right now
    Sectus is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Cat
    Old 05-18-2016 , 06:02   Re: [L4D/L4D2] No Rushing
    Reply With Quote #10

    Why not just use the gravity tank code for pulling survivors back from supertanks, and make it only happen at a distance so they get slower and slower but yes you would have to reverse the code instead tho :O
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D
    Lux is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 02:00.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode