Raised This Month: $106 Target: $400
 26% 

[L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
7786
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
1 
Plugin Description:
Sets player speed based on the weapon carried.
Unapprover:
Reason for Unapproving:
Plugin needs updating and fixing. Coming soon.
Old 09-09-2021 , 04:18   [L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]
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:
1.0 (09-Sep-2021)
    - Initial release.


Installation:
DO NOT click 'Get Plugin' or it will fail to compile because this plugin requires DHooks!
  1. Download the .smx file and put into your servers \addons\sourcemod\plugins folder.
  2. Download the .cfg file and put into your servers \addons\sourcemod\data\ folder.
Attached Files
File Type: cfg l4d_weapons_movement_speed.cfg (3.6 KB, 96 views)
File Type: smx l4d_weapons_movement_speed.smx (6.7 KB, 64 views)
File Type: sp Get Plugin or Get Source (l4d_weapons_movement_speed.sp - 94 views - 9.9 KB)
__________________

Last edited by Silvers; 09-09-2021 at 04:21.
Silvers is offline
Kid_Bandes
Member
Join Date: May 2010
Old 09-09-2021 , 04:34   Re: [L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]
Reply With Quote #2

Nice one, I got an idea, can you make something like Stamina, W will act as SHIFT, and SHIFT will act as W but consume stamina.
Kid_Bandes is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 09-09-2021 , 05:38   Re: [L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]
Reply With Quote #3

Not something I'll do for this plugin. Also there is already a sprint plugin
__________________
Silvers is offline
noto3
Junior Member
Join Date: Jan 2021
Old 09-09-2021 , 17:36   Re: [L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]
Reply With Quote #4

movement after changes feel a little weird. It's like being dragged behind rather than actually get slowed down. There is a "dragging" feeling on movements slowed down in config
noto3 is offline
Maur0
Member
Join Date: Aug 2020
Old 09-09-2021 , 19:46   Re: [L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]
Reply With Quote #5

I loved. The best plugin you have ever made. Well done.

Something that if, as notedo3 said, it is strange to feel when you change the speed in different weapons or items, but if you want to change the walk for running as if it were in modern first person shooter.

Something that I would like to add (if possible) is that when your health is very low depending on the command "survivor_limp_health 40", which would be 39 and below. Your speed slows down, and instead doesn't change. Over there if you can Silvers, to add some command that allows you to change the speed to change when your health is very low, it depends on the value that you put according to the "survivor_limp_health" command.

Type like this:
"run" = "220.0"
"walk" = "85.0"
"crouch" = "75.0"
"hurt" = "150.0"

The "hurt" works when your health is at 39 and below, it depends as I said before the command "survivor_limp_health" which by default is at 40. Then your speed changes depending on your health.

I hope I have not complicated what I said and I do not know if I was able to express my answer well. Anyway, thanks for this great plugin!
Maur0 is offline
Psyk0tik
AlliedModders Donor
Join Date: May 2012
Location: Homeless
Old 09-09-2021 , 21:24   Re: [L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]
Reply With Quote #6

Quote:
Originally Posted by noto3 View Post
movement after changes feel a little weird. It's like being dragged behind rather than actually get slowed down. There is a "dragging" feeling on movements slowed down in config
Quote:
Originally Posted by Maur0 View Post
Something that if, as notedo3 said, it is strange to feel when you change the speed in different weapons or items, but if you want to change the walk for running as if it were in modern first person shooter.
This is due to client desync, which might not be easy to fix with a plugin. That's why most plugins that change player speed use the "m_flLaggedMovementValue" netprop method instead. The issue with that method though is that it affects player gravity as well (i.e. faster speed = higher gravity).
__________________
AFK like JFK
--
Donate to Motivate
--
Get latest L4D/L4D2 gamedata signatures here.
--
PM me if you need help with finding signatures and/or offsets in the following games: L4D1&2/CSGO/TF2/NMRIH/INS/DODS/CSS/HL2DM
Psyk0tik is offline
a2121858
Member
Join Date: Sep 2020
Old 09-10-2021 , 02:38   Re: [L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]
Reply With Quote #7

Mr. Silvers new work.

I like it.
a2121858 is offline
noto3
Junior Member
Join Date: Jan 2021
Old 09-10-2021 , 10:48   Re: [L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]
Reply With Quote #8

This plugin has a "sm_speedplayer" option, when changed, it changes player's gravity accordingly as @Psyk0tik mentioned and without any "drag" feeling. It feels smoother as well. @Silvers, i thought this might help you updating this plugin to make it smoother
noto3 is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 09-10-2021 , 11:27   Re: [L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]
Reply With Quote #9

I'll change this shortly, and make it consider limp health. I wanted to test the left4dhooks forwards but I guess they're not good for this. Back to "m_flLaggedMovementValue" then.

Edit: What about changing "m_flMaxspeed"? I do this in Anti-Rush plugin... - Causes stutter also. Maybe I'll have to change Anti-Rush plugin.

Edit2: Any solution on solving gravity change? Maybe SetClientGravity like "m_flLaggedMovementValue" value. 1 * new "m_flLaggedMovementValue" value sort of works but it's still too great.
__________________

Last edited by Silvers; 09-10-2021 at 12:35.
Silvers is offline
noto3
Junior Member
Join Date: Jan 2021
Old 09-10-2021 , 13:42   Re: [L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]
Reply With Quote #10

Note: The config changes the speed for "injured" state - less than 40hp and 1hp speed as well. Might wanna add a cvar to default injured state speeds or an option in the config

edit: also other factors that effects speed such as adrenaline boost

Last edited by noto3; 09-10-2021 at 17:24.
noto3 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 19:10.


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