Raised This Month: $12 Target: $400
 3% 

[L4D & L4D2] Weapons Movement Speed (2.7) [24-Nov-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-10-2021 , 15:51   Re: [L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]
Reply With Quote #11

Here's a new version, please let me know how this goes. I've tried to fix the gravity issue but it will be different (jumping higher/lower) depending on the speed allowed for the weapon. Not sure how else to fix, or what values to use exactly to correct the issue (search offset in the code to modify).

I'm posting this here until I hear some reports that it's better. I've also unapproved the plugin because of the bugs and may keep it unapproved because I'm losing interesting in supporting this with all the issues it's creating.

Code:
1.1 beta (10-Sep-2021)
	- Now considers survivors limp health.
	- Added "hurt" key to the config for limp speed.
	- Changed the method of setting player speed.
	- Config default values are "0.0" now.
	- Removed Left4DHooks requirement.
Attached Files
File Type: cfg l4d_weapons_movement_speed.cfg (4.3 KB, 149 views)
File Type: sp Get Plugin or Get Source (l4d_weapons_movement_speed.sp - 284 views - 15.2 KB)
__________________
Silvers is offline
noto3
Member
Join Date: Jan 2021
Old 09-11-2021 , 11:05   Re: [L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]
Reply With Quote #12

Hello, i've tested it on linux SourceMod Version: 1.10.0.6510

Plugin seems a little broken. Changes made in config are not correct for each weapon. If a speed is slowed down for a weapon or increased, it carries over to other items such as medkit or weapons with "0.0" default modifications. Bug 2: Another bug where speed for weapons and items are all sped up even tho there were no changes made to them. One way to cause Bug 2 is to switch a weapon and jump or just switch weapons really fast/pick up weapon
noto3 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-11-2021 , 14:51   Re: [L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]
Reply With Quote #13

There are 2 options:

1. Using "m_flLaggedMovementValue" and having smooth player movement, but sped up animations/jump etc.
2. Not using "m_flLaggedMovementValue" and having stuttered movement, but no sped up jump etc.

The additional option which I'm choosing is to not support this plugin because of the aforementioned issues. It's just never going to work right.

Recommend deleting the plugin and not using it.
__________________
Silvers is offline
sonic155
Senior Member
Join Date: Mar 2019
Old 09-12-2021 , 00:17   Re: [L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]
Reply With Quote #14

i for one enjoy it although it does feel odd with the screen drag but with another plugin its hard to see it happening so most people dont see or know about it unless told ~i was one of those people~ and i enjoy the feel to it as well although it does disable the { Adrenaline Shot } speedup set as it does not match or active anymore ~not something i mind as i already modded the {Adrenaline Shot} to a { Combat syringe } in my server so this still fine~ and it seems to have disabled the slow down from walking in water places ~also dont mind in fact thank you xD~ heres my data input
im using the V1 ~first one~

Quote:
"weapons"
{
"weapon_pistol"
{
"run" "240.0"
"walk" "200.0"
"crouch" "150.0"
}
"weapon_smg"
{
"run" "210.0"
"walk" "120.0"
"crouch" "90.0"
}
"weapon_pumpshotgun"
{
"run" "210.0"
"walk" "110.0"
"crouch" "85.0"
}
"weapon_autoshotgun"
{
"run" "180.0"
"walk" "135.0"
"crouch" "70.0"
}
"weapon_rifle"
{
"run" "200.0"
"walk" "145.0"
"crouch" "75.0"
}
"weapon_hunting_rifle"
{
"run" "210.0"
"walk" "120.0"
"crouch" "90.0"
}
"weapon_smg_silenced"
{
"run" "210.0"
"walk" "120.0"
"crouch" "90.0"
}
"weapon_shotgun_chrome"
{
"run" "210.0"
"walk" "110.0"
"crouch" "85.0"
}
"weapon_rifle_desert"
{
"run" "200.0"
"walk" "145.0"
"crouch" "75.0"
}
"weapon_sniper_military"
{
"run" "190.0"
"walk" "100.0"
"crouch" "80.0"
}
"weapon_shotgun_spas"
{
"run" "180.0"
"walk" "135.0"
"crouch" "70.0"
}
"weapon_first_aid_kit"
{
"run" "210.0"
"walk" "85.0"
"crouch" "75.0"
}
"weapon_molotov"
{
"run" "210.0"
"walk" "85.0"
"crouch" "75.0"
}
"weapon_pipe_bomb"
{
"run" "210.0"
"walk" "85.0"
"crouch" "75.0"
}
"weapon_pain_pills"
{
"run" "210.0"
"walk" "85.0"
"crouch" "75.0"
}
"weapon_gascan"
{
"run" "210.0"
"walk" "85.0"
"crouch" "75.0"
}
"weapon_propanetank"
{
"run" "210.0"
"walk" "85.0"
"crouch" "75.0"
}
"weapon_oxygentank"
{
"run" "210.0"
"walk" "85.0"
"crouch" "75.0"
}
"weapon_melee"
{
"run" "220.0"
"walk" "85.0"
"crouch" "75.0"
}
"weapon_chainsaw"
{
"run" "210.0"
"walk" "85.0"
"crouch" "75.0"
}
"weapon_grenade_launcher"
{
"run" "140.0"
"walk" "85.0"
"crouch" "75.0"
}
"weapon_adrenaline"
{
"run" "210.0"
"walk" "85.0"
"crouch" "75.0"
}
"weapon_defibrillator"
{
"run" "210.0"
"walk" "85.0"
"crouch" "75.0"
}
"weapon_vomitjar"
{
"run" "210.0"
"walk" "85.0"
"crouch" "75.0"
}
"weapon_rifle_ak47"
{
"run" "200.0"
"walk" "80.0"
"crouch" "80.0"
}
"weapon_gnome"
{
"run" "210.0"
"walk" "85.0"
"crouch" "75.0"
}
"weapon_cola_bottles"
{
"run" "210.0"
"walk" "85.0"
"crouch" "75.0"
}
"weapon_fireworkcrate"
{
"run" "210.0"
"walk" "85.0"
"crouch" "75.0"
}
"weapon_upgradepack_incendiary"
{
"run" "210.0"
"walk" "85.0"
"crouch" "75.0"
}
"weapon_upgradepack_explosive"

"run" "210.0"
"walk" "85.0"
"crouch" "75.0"
}
"weapon_pistol_magnum"
{
"run" "250.0"
"walk" "200.0"
"crouch" "150.0"
}
"weapon_smg_mp5"
{
"run" "210.0"
"walk" "85.0"
"crouch" "75.0"
}
"weapon_rifle_sg552"
{
"run" "200.0"
"walk" "85.0"
"crouch" "75.0"
}
"weapon_sniper_awp"
{
"run" "175.0"
"walk" "75.0"
"crouch" "70.0"
}
"weapon_sniper_scout"
{
"run" "190.0"
"walk" "75.0"
"crouch" "70.0"
}
"weapon_rifle_m60"
{
"run" "140.0"
"walk" "85.0"
"crouch" "75.0"
}

Last edited by sonic155; 09-12-2021 at 00:19.
sonic155 is offline
noto3
Member
Join Date: Jan 2021
Old 09-12-2021 , 10:43   Re: [L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]
Reply With Quote #15

@Silvers, may i suggest this plugin again, the way they have it, everything works as intended maybe we can apply the same to this plugin?
noto3 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-12-2021 , 15:57   Re: [L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]
Reply With Quote #16

I tested the "sm_speedplayer" command, it uses the same "m_flLaggedMovementValue" netprop causing the gravity change. Which version are you using? I don't see any fix for the gravity in that plugin.

Todo (if I support this plugin again): Increase speed when adrenaline is active.
__________________

Last edited by Silvers; 09-12-2021 at 15:58.
Silvers is offline
noto3
Member
Join Date: Jan 2021
Old 09-12-2021 , 21:43   Re: [L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]
Reply With Quote #17

this version
noto3 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-13-2021 , 00:57   Re: [L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]
Reply With Quote #18

Quote:
Originally Posted by noto3 View Post
this version
Again, "sm_speedplayer 0.5" you jump really slow and "sm_speedplayer 3.0" you jump really fast. It affects the gravity.
__________________
Silvers is offline
ddd123
Senior Member
Join Date: May 2021
Old 10-15-2021 , 20:07   Re: [L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]
Reply With Quote #19

Quote:
Originally Posted by Silvers View Post
2. Not using "m_flLaggedMovementValue" and having stuttered movement, but no sped up jump etc.
About the stuttered movement
Since it looks drugged on player but how about just apply this plugin only on survivors bots?

HTML Code:
public Action L4D_OnGetRunTopSpeed(int client, float &retVal)
{
	if( g_fSpeedRun[client] && IsFakeClient(client) && GetClientTeam(client) == 2)
	{
		retVal = g_fSpeedRun[client];
		return Plugin_Handled;
	}

	return Plugin_Continue;
}

public Action L4D_OnGetWalkTopSpeed(int client, float &retVal)
{
	if( g_fSpeedWalk[client] && IsFakeClient(client) && GetClientTeam(client) == 2)
	{
		retVal = g_fSpeedWalk[client];
		return Plugin_Handled;
	}

	return Plugin_Continue;
}

public Action L4D_OnGetCrouchTopSpeed(int client, float &retVal)
{
	if( g_fSpeedCrouch[client] && IsFakeClient(client) && GetClientTeam(client) == 2)
	{
		retVal = g_fSpeedCrouch[client];
		return Plugin_Handled;
	}

	return Plugin_Continue;
}
I try this but it's seem is not working on teammate bots
Got any idea how it work only on bots teammate?

Last edited by ddd123; 10-15-2021 at 20:10.
ddd123 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-19-2021 , 04:27   Re: [L4D & L4D2] Weapons Movement Speed (1.0) [09-Sep-2021]
Reply With Quote #20

Should work for bots, I don't see anything wrong. No idea.
__________________
Silvers 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 05:58.


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