View Single Post
Author Message
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-09-2021 , 03:18   [L4D & L4D2] Weapons Movement Speed (2.7) [24-Nov-2023]
Reply With Quote #1

About:
  • Set the Run, Walk and Crouch speed while carrying different weapons.
  • Requested by "noto3".



CVars:

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

PHP Code:
// 0=Plugin off, 1=Plugin on.
l4d_weapons_movement_speed_allow "1"

// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
l4d_weapons_movement_speed_modes ""

// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
l4d_weapons_movement_speed_modes_off ""

// Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
l4d_weapons_movement_speed_modes_tog "0"

// Weapons Movement Speed plugin version.
l4d_weapons_movement_speed_version 


Changes:
Code:
2.7 (24-Nov-2023)
    - Fixed movement speed bug after staggering when the stagger timer didn't reset (due to some plugins such as "Stagger Gravity").

2.6 (10-Feb-2023)
    - Fixed not hooking the "pain_pills_decay_rate" and "survivor_limp_health" cvar changes.
    - Minor changes to fix compatibility with the "Lagged Movement" plugin.

2.5 (26-Nov-2022)
    - Fixed fix property not found errors.
    - Plugin now resets speed to default on plugin end.

2.4 (12-Nov-2022)
    - Fixed the Run and Walk speeds being inverted.
    - Now optionally uses the "Lagged Movement" plugin by "Silvers" to prevent conflicts when multiple plugins try to set player speed:
    - https://forums.alliedmods.net/showthread.php?t=340345

2.3 (10-Nov-2022)
    - Fixed setting the wrong velocity when jumping. Thanks to "Maur0" for reporting.

2.2 (08-Nov-2022)
    - Fixed the players velocity resetting to default when jumping or staggering. Thanks to "Eärendil" for reporting.

2.1 (03-Nov-2022)
    - Fixed client not connected errors. Thanks to "sonic155" for reporting.

2.0 (02-Nov-2022)
    - Removed Left4DHooks plugin requirement.
    - Added "hurt" key to the config to consider the survivors limp health.
    - Added melee weapons support. Also supports all 3rd party melee weapons using their script name.
    - Changed the method of setting player speed.
    - Config default values are "0.0" now.
    - Fixed jumping or staggering movement speed bug.
    - Fixed affecting Special Infected ghosts.

1.0 (09-Sep-2021)
    - Initial release.


Installation:
  1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
  2. Download the .cfg file and put into your servers \addons\sourcemod\data\ folder.
  3. Recommend viewing and installing the Lagged Movement plugin if required to prevent plugin conflicts.
Attached Files
File Type: cfg l4d_weapons_movement_speed.cfg (5.7 KB, 654 views)
File Type: sp Get Plugin or Get Source (l4d_weapons_movement_speed.sp - 393 views - 18.3 KB)
__________________

Last edited by Silvers; 11-24-2023 at 17:39.
Silvers is offline