Raised This Month: $32 Target: $400
 8% 

[L4D & L4D2] Survivor Sprint, Stamina and Exhaustion (v1.3) [02-Jul-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Earendil
Senior Member
Join Date: Jan 2020
Location: Spain
Plugin ID:
7899
Plugin Version:
1.3
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Allows survivors to sprint, adds stamina, if wasted stamina survivors can enter in exhaustion
Old 12-25-2021 , 07:46   [L4D & L4D2] Survivor Sprint, Stamina and Exhaustion (v1.3) [02-Jul-2022]
Reply With Quote #1

Description:
  • This plugin allows survivors to sprint, they can choose different sprint activation modes.
  • An stamina pool can be added to survivors to limit the time they can sprint.
  • When survivor stamina runs off, they will stop sprinting, and also they could enter in exhaustion mode, with low movement speed and higher recoil.

This plugin uses Survivor Utilities to modify player speeds.
If you are updating from any version older than 1.1, remove the old file. I have renamed it to prevent mistakes about compatibility with L4D.
Dependences:
Command:
Code:
sm_sprint: Opens menu to pick sprint activation mode for client.
ConVars:
Spoiler

Changelog:

Spoiler
Attached Files
File Type: sp Get Plugin or Get Source (l4d_sprintstamina.sp - 270 views - 33.2 KB)
File Type: smx l4d_sprintstamina.smx (13.4 KB, 346 views)

Last edited by Earendil; 07-02-2022 at 12:02. Reason: Updated plugin description
Earendil is offline
Sev
Veteran Member
Join Date: May 2010
Old 12-25-2021 , 11:48   Re: [L4D & L4D2] Survivor Sprint, Stamina and Exhaustion (v1.0) [25-Dec-2021]
Reply With Quote #2

L 12/25/2021 - 11:144: [SM] Blaming: l4d2_sprintstamina.smx
L 12/25/2021 - 11:144: [SM] Call stack trace:
L 12/25/2021 - 11:144: [SM] [0] IsPlayerAlive
L 12/25/2021 - 11:144: [SM] [1] Line 276, l4d2_sprintstamina.sp::Regen_Timer
L 12/25/2021 - 11:145: [SM] Exception reported: Client 2 is not in game
Sev is offline
Earendil
Senior Member
Join Date: Jan 2020
Location: Spain
Old 12-25-2021 , 13:22   Re: [L4D & L4D2] Survivor Sprint, Stamina and Exhaustion (v1.0) [25-Dec-2021]
Reply With Quote #3

Quote:
Originally Posted by Sev View Post
L 12/25/2021 - 11:144: [SM] Blaming: l4d2_sprintstamina.smx
L 12/25/2021 - 11:144: [SM] Call stack trace:
L 12/25/2021 - 11:144: [SM] [0] IsPlayerAlive
L 12/25/2021 - 11:144: [SM] [1] Line 276, l4d2_sprintstamina.sp::Regen_Timer
L 12/25/2021 - 11:145: [SM] Exception reported: Client 2 is not in game
Fixed
Earendil is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-25-2021 , 14:13   Re: [L4D & L4D2] Survivor Sprint, Stamina and Exhaustion (v1.0) [25-Dec-2021]
Reply With Quote #4

Quote:
Originally Posted by Earendil View Post
Fixed
Should be passing the userid into timers and validating that way.
__________________
Silvers is offline
Sev
Veteran Member
Join Date: May 2010
Old 12-27-2021 , 14:29   Re: [L4D & L4D2] Survivor Sprint, Stamina and Exhaustion (v1.0) [25-Dec-2021]
Reply With Quote #5

L 12/26/2021 - 23:04:21: [SM] Exception reported: Handle 828d0d69 is invalid (error 3)
L 12/26/2021 - 23:04:21: [SM] Blaming: l4d2_sprintstamina.smx
L 12/26/2021 - 23:04:21: [SM] Call stack trace:
L 12/26/2021 - 23:04:21: [SM] [0] CloseHandle
L 12/26/2021 - 23:04:21: [SM] [1] Line 234, l4d2_sprintstamina.sp::Event_Player_Death
Sev is offline
mikaelangelis
Senior Member
Join Date: Oct 2017
Old 12-28-2021 , 06:10   Re: [L4D & L4D2] Survivor Sprint, Stamina and Exhaustion (v1.0) [25-Dec-2021]
Reply With Quote #6

Idk if I only have this issue where the survivor speed won't be restored to normal after exhaustion end, or does the plugin conflict with others of mine?
https://www.youtube.com/watch?v=jLjCpPYXoCU

P.S: Also adrenaline doesnt take effect if I use this plugin

Last edited by mikaelangelis; 12-28-2021 at 11:02.
mikaelangelis is offline
Earendil
Senior Member
Join Date: Jan 2020
Location: Spain
Old 12-30-2021 , 08:01   Re: [L4D & L4D2] Survivor Sprint, Stamina and Exhaustion (v1.0) [25-Dec-2021]
Reply With Quote #7

Quote:
Originally Posted by mikaelangelis View Post
Idk if I only have this issue where the survivor speed won't be restored to normal after exhaustion end, or does the plugin conflict with others of mine?
https://www.youtube.com/watch?v=jLjCpPYXoCU

P.S: Also adrenaline doesnt take effect if I use this plugin
Fixed in 1.1, I fixed everything I found.
Earendil is offline
Sev
Veteran Member
Join Date: May 2010
Old 01-01-2022 , 17:12   Re: [L4D & L4D2] Survivor Sprint, Stamina and Exhaustion (v1.1) [30-Dec-2021]
Reply With Quote #8

L 12/30/2021 - 23:17:11: [SM] Call stack trace:
L 12/30/2021 - 23:17:11: [SM] [0] CloseHandle
L 12/30/2021 - 23:17:11: [SM] [1] Line 395, l4d_sprintstamina.sp::OnPlayerPressRunKey
L 12/30/2021 - 23:17:11: [SM] [2] Line 151, l4d_sprintstamina.sp::OnPlayerRunCmd
L 12/30/2021 - 23:17:11: [SM] Exception reported: Handle a3f4097a is invalid (error 3)
L 12/30/2021 - 23:17:11: [SM] Blaming: l4d_sprintstamina.smx
Sev is offline
Earendil
Senior Member
Join Date: Jan 2020
Location: Spain
Old 01-01-2022 , 19:57   Re: [L4D & L4D2] Survivor Sprint, Stamina and Exhaustion (v1.1) [30-Dec-2021]
Reply With Quote #9

Quote:
Originally Posted by Sev View Post
L 12/30/2021 - 23:17:11: [SM] Call stack trace:
L 12/30/2021 - 23:17:11: [SM] [0] CloseHandle
L 12/30/2021 - 23:17:11: [SM] [1] Line 395, l4d_sprintstamina.sp::OnPlayerPressRunKey
L 12/30/2021 - 23:17:11: [SM] [2] Line 151, l4d_sprintstamina.sp::OnPlayerRunCmd
L 12/30/2021 - 23:17:11: [SM] Exception reported: Handle a3f4097a is invalid (error 3)
L 12/30/2021 - 23:17:11: [SM] Blaming: l4d_sprintstamina.smx
Yeah, I learned that I can't use TIMER_FLAG_NO_MAPCHANGE flag on timers controlled by variable. I made the fix yesterday but due to the end of the year and the hangover I didn't uploaded yet.

I tested it for a couple hours and I didn't found that error after mapchanges or round restarts. Also timers use TIMER_REPEAT flag instead of call themselves. I really hope this time FINALLY ALL PLUGIN ERRORS DISSAPEAR.

Last edited by Earendil; 01-01-2022 at 20:03.
Earendil is offline
henriquesiqueira
New Member
Join Date: Jan 2022
Old 01-12-2022 , 15:17   Re: [L4D & L4D2] Survivor Sprint, Stamina and Exhaustion (v1.1.1) [01-Jan-2022]
Reply With Quote #10

I have a question for me this plugin is not working I did everything right and not this working please someone tells me what Can I do? sorry for my bad english

Last edited by henriquesiqueira; 01-12-2022 at 15:18.
henriquesiqueira 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 09:23.


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