Code Monkey home page Code Monkey logo

rl4d2l-plugins's Introduction

RL4D2L Plugins

Original and modified plugins used by the RL4D2L servers currently running SM 1.10 and Sir's L4D2-Competitive-Rework.

Original Plugins

chat_spam_throttle.sp

  • Chat filter to prevent spamming the same message too often.
    • chat_spam_throttle_debug - cvar for logging.
    • chat_spam_throttle_time - cvar for time in seconds before a message can be repeated.
    • chat_spam_throttle_check_sender - cvar to allow repeating messages sent by someone else.

discord_scoreboard.sp

  • End of round scores reported to discord via webhook.
  • Requires discord_webhook plugin.
    • Add discord_scoreboard entry to discord_webhook.cfg.

discord_webhook.sp

  • Plugin library for making discord webhook requests.
  • Requires SteamWorks extension.
  • Create a addons/sourcemod/configs/discord_webhook.cfg.
    "Discord"
    {
        "discord_test"
        {
            "url"	"<webhook_url>"
        }
    }
    

l4d2_ladder_editor.sp

  • Commands for cloning and moving special infected ladders.
  • sm_edit - Toggle edit mode on or off.
    • While in edit mode, ladders you are aiming at can be selected using MOUSE1 and moved using MOUSE2 or WASD, USE, and RELOAD.
    • TAB to toggle edit mode. SHIFT to rotate ladders in 90 degree increments.
  • sm_step <size> - Number of units to move when moving ladders in edit mode.
  • sm_select - Select the ladder you are aiming at.
  • sm_clone - Clone the selected ladder.
  • sm_move <x> <y> <z> - Move the selected ladder to the given coordinate on the map.
  • sm_nudge <x> <y> <z> - Move the selected ladder relative to its current position.
  • sm_rotate <x> <y> <z> - Rotate the selected ladder.
  • sm_kill - Remove the selected ladder.
  • sm_info - Display info about the selected ladder entity.
  • sm_togglehud - Toggle selected ladder info HUD on or off.

l4d2_practice.sp

  • Combined several features from existing plugins for use in a practice config.
  • sm_goto, sm_bring - Teleport players around.
  • Switch zombieclass with MOUSE2.

l4d2_restartmap.sp

  • Adds sm_restartmap to restart the current map. Preserves scores and who has played tank. Automatically restarts map when broken flow detected.
    • sm_restartmap_debug cvar for logging.
    • sm_restartmap_autofix cvar for autofix. Enabled by default.
    • sm_restartmap_autofix_max_tries cvar for max autofix map restart attempts.
  • Score setting based on Visor's SetScores.
  • Optional requirement: Lux's l4d2_changelevel plugin.

l4d2_tank_spawn_fix.sp

  • Fixes inconsistency between rounds where teams have to reach slightly different locations to spawn the same tank.
  • The plugin accounts for the variation in total map distance that can exist between rounds and adjusts the second round tank flow % to make the spawn trigger location match the first round.
    • sm_tank_spawn_fix_debug cvar for logging.
    • tank_spawn_fix cvar for turning on/off. Enabled by default.
    • tank_spawn_fix_disable <map> cvar for disabling specific maps.

saferoom_gnome.sp

  • Spawns a gnome in the saferoom that is removed when the round goes live.

si_cooldown_alert.sp

  • Alerts SI about their ability cooldown after despawning.
    • Use !settings to manage personal settings for text and sound alerts.
  • Fixes bug where spitter gets 3600s spit cooldown if spit and despawn while on a ladder.
  • Fixes bug where charger gets 3600s charge cooldown if death charge then despawn.

spawn_secondary.sp

  • Spawn pistol and axe for survivors plugin.
  • Adds sm_spawnsecondary <target>, sm_spawnaxe <target>, and sm_spawnpistol <target> commands.
  • Intended to be used when missing starting axes.

static_tank_control.sp

  • Requires l4d_tank_control_eq plugin and overrides its tank selection process with a predetermined one.
  • Adds static_tank_control server command to specify if a given player should play a given tank on a given map.
    • Usage: static_tank_control <tank_number> <map_name> [steam_id...]
      • tank_number 1 or 2 representing which tank spawn to apply to.
      • map_name the map id to apply to.
      • steam_id any number of steam ids. The first player that is currently infected will be given the tank.
    • Example:
      static_tank_control 1 c1m1_hotel "STEAM_1:1:TEAMA_PLAYER1" "STEAM_1:1:TEAMB_PLAYER1"
      static_tank_control 1 c1m2_streets "STEAM_1:1:TEAMA_PLAYER2" "STEAM_1:1:TEAMB_PLAYER2"
      static_tank_control 1 c1m3_mall "STEAM_1:1:TEAMA_PLAYER3" "STEAM_1:1:TEAMB_PLAYER3"
      static_tank_control 1 c1m4_atrium "STEAM_1:1:TEAMA_PLAYER4" "STEAM_1:1:TEAMB_PLAYER4"
      static_tank_control 2 c1m4_atrium "STEAM_1:1:TEAMA_PLAYER1" "STEAM_1:1:TEAMB_PLAYER1"
      

teleport_tank.sp

  • Tank teleport plugin to unstuck tanks.
  • Adds sm_teleporttank [x] [y] [z] command.
    • xyz arguments optional. If not provided, teleports tank to where it spawned.
  • Adds sm_teleport_tank_debug cvar for logging.
  • Adds sm_spawntank to set flow tank % to zero and spawn tank.

whitelist_database.sp

  • Restricts server to Steam IDs in a whitelist database.
  • Adds server commands to add players to the whitelist database.
    • sm_vouchnext - Autovouch the next unvouched player to join the server.
    • sm_vouchprev, sm_vouchlast - Vouch the last unvouched player to join the server.
    • sm_vouch - Vouch the given steam id.

Modified Plugins

Significant changes

8ball.sp

  • Modified spoon's 8ball v1.2.7 to load responses from a config file.

current.sp

  • Updated L4D2 Survivor Progress v2.0.1 used in ZoneMod 1.9.3 with changes from v2.2.
  • Added optional precision argument sm_current <precision> to display 0 to 3 decimal places.
  • Added current_precision cvar that specifies the default precision to use if no precision argument is given.

eq_finale_tanks.sp

  • Modified Visor's EQ2 Finale Manager. Reworked to no longer manage flow tanks, since that can be handled by the static_tank_map cvar used in the tank_and_nowitch_ifier plugin. Cvars:
    • tank_map_only_second_event (formerly tank_map_flow_and_second_event)
    • tank_map_only_first_event (unchanged)
  • Added sm_tank_map_debug cvar for logging.
  • Updated to handle tanks on gauntlet finales.
    • bridge_escape_fix.smx no longer needed.

l4d_tank_control_eq.sp

  • Modified arti's L4D2 Tank Control.
  • Fixed handle leaks.
  • Added commands for viewing and modifying the pool of players who have not played tank:
    • sm_tankpool displays the tank pool.
    • sm_addtankpool, sm_queuetank adds a player to the tank pool.
    • sm_removetankpool, sm_dequeuetank removes a player from the tank pool.
  • Added natives:
    • TankControlEQ_SetTank
    • TankControlEQ_GetWhosHadTank
    • TankControlEQ_ClearWhosHadTank
    • TankControlEQ_GetTankPool
  • Added forwards:
    • TankControlEQ_OnChooseTank called whenever a tank is chosen from the tank pool.
      • Return Plugin_Continue to continue with default tank choosing process.
      • Return Plugin_Handled to block the default tank choosing process.
    • TankControlEQ_OnTankGiven called when player has been given control of the tank.
      • Called with Steam ID of tank player.
    • TankControlEQ_OnTankControlReset called when new game detected and pools are reset.

l4d_tank_damage_announce.sp

  • Added discord_scoreboard plugin integration.
  • Requires discord_scoreboard plugin.
  • Fixed bug in damage to tank percent fudging by removing it.

l4d_tank_rush.sp

  • Added cvar l4d_no_tank_rush_debug to L4D2 No Tank Rush for debug logging.
  • Fixed a bug where if survivors wiped to a 2nd half tank, then the next map would have its max points set to the previous map's max points.

l4d2_playstats.sp

  • Based on Tabun's Player Statistics plugin.
  • Source code broken up into multiple files.
  • More stats tracked.
  • Adds logging to database.
    • Add a "l4d2_playstats" configuration to databases.cfg.
  • Executes system command after last stats of the match have been logged.
    • Requires system2 extension.
    • Create a addons/sourcemod/configs/l4d2_playstats.cfg.
      "l4d2_playstats.cfg"
      {
          "match_end_script_cmd"	"ls /home"
      }
      
  • Adds l4d2_playstats_customcfg cvar to store a confogl custom config name that will get logged and saved with stats.
  • Added discord_scoreboard plugin integration to send a fun fact embed.

l4d2_sound_manipulation.sp

  • Updated Sound Manipulation to allow for more control over which sounds are blocked by using sound_block_for_comp to set flags.
    • Block flags: 1 - World, 2 - Look, 4 - Ask, 8 - Follow Me, 16 - Getting Revived, 32 - Give Item Alert, 64 - I'm With You, 128 - Laughter, 256 - Name, 512 - Lead On, 1024 - Move On, 2048 - Friendly Fire, 4096 - Splat.
    • Block default: 8190 (allow world).
    • Block all: 8191.

player_skill_stats.sp

  • Psykotikism's player skill stats modified by bscal to save to database.
  • No longer in use and replaced by modified l4d2_playstats plugin.

suicideblitzfinalefix.sp

  • Modified ProdigySim's spawnstatefix plugin to autofix Suicide Blitz 2 finale.

tank_and_nowitch_ifier.sp

  • Fixed AdjustBossFlow to properly use boss ban flow min and max.
  • Added sm_tank_nowitch_debug cvar for logging.
  • Added sm_tank_nowitch_debug_info command for dumping info on current spawn configuration.
    • Requires sm_tank_nowitch_debug set to 1.
  • Added support for two additional tank ban ranges defined in mapinfo:
    • tank_ban_flow_min_b, tank_ban_flow_max_b
    • tank_ban_flow_min_c, tank_ban_flow_max_c
  • Added support for versus_boss_flow_min and versus_boss_flow_max overrides defined in mapinfo.

Fixes applied to reconstructed sources from decompiled plugins

readyup.sp

  • Reconstructed L4D2 Ready-Up v9.2 used in L4D2-Competitive-Rework.
  • Applied spoon's bugfix to prevent unbreakable doors from being made breakable.
  • Replace checkboxes with diamonds from spoon's version.
  • Added l4d_ready_autostart cvar to automatically force start rounds after a certain amount of time after the first ready up.

spechud.sp

  • Reconstructed Hyper-V HUD Manager v3.0 used in Zonemod 1.9.3 with fix to health, damage, and pills bonus not displaying.
  • Refactored to use l4d2util include library and merged l4d2_weapon_stocks.inc into l4d2util_weapons.inc

Include Library Updates

l4d2_direct.inc

l4d2util.inc

  • Added GetLongWeaponName and GetLongMeleeWeaponName functions from l4d2_weapon_stocks.inc.
  • Removed tag check from all the weapon functions and added melee weapon function equivalents for each of them.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.