View Single Post
Author Message
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-04-2019 , 13:41   [L4D] Shove Penalty Unlocker (1.5) [25-Apr-2022]
Reply With Quote #1

About:
  • For L4D1 only.
  • The games default behaviour only applies a penalty for shoving in Versus.
  • This plugin unlocks the shove penalty in coop and survival.



Thanks:
  • Dragokas - For the idea, request and testing.



CVars:

Saved to l4d_shove_penalty.cfg in your servers \left4dead\cfg\sourcemod\ folder.

PHP Code:
// The number of swings before the punch/melee/shove fatigue delay is set in (coop). (Min: 2, Max: 5, default: 5).
z_gun_swing_coop_penalty_time "5"

// Shove Penalty Unlocker plugin version.
l4d_shove_penalty_version 


Changes:
Code:
1.5 (25-Apr-2022)
    - Fixed the plugin not initializing. Thanks to "Orinuse" for reporting.

1.4 (01-Mar-2022)
    - Removed unused code. Thanks to "Orinuse" for reporting.

1.3 (03-Jan-2022)
    - Added cvar "z_gun_swing_coop_penalty_time" to set the number of swings before melee fatigue delay. Thanks to "HarryPotter" for writing.
    - Changes to work with the latest Linux update. Thanks to "HarryPotter" for testing.
    - Plugin and GameData updated.

1.2a (06-Dec-2021)
    - GameData update: Changed patch count to fix crashing. Thanks to "ZBzibing" for reporting.

1.2 (07-Sep-2021)
    - GameData update: Fixed crashing since the last L4D1 update.

1.1 (10-May-2020)
    - Added better error log message when gamedata file is missing.
    - Various changes to tidy up code.

1.0 (04-Nov-2019)
    - Initial release.


Installation:
  1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
  2. Download the .txt gamedata file and put into your servers \addons\sourcemod\gamedata\ folder.
Attached Files
File Type: txt l4d_shove_penalty.txt (821 Bytes, 127 views)
File Type: sp Get Plugin or Get Source (l4d_shove_penalty.sp - 262 views - 7.9 KB)
__________________

Last edited by Silvers; 04-25-2022 at 07:21.
Silvers is offline