Author
|
Message
|
Senior Member
Join Date: Jan 2020
Location: Spain
|
12-25-2021
, 07:46
[L4D & L4D2] Survivor Sprint, Stamina and Exhaustion (v1.3) [02-Jul-2022]
|
#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
PHP Code:
// 0 = Plugin Off. 1 = Plugin On
l4d_sse_enable "1"
// Exhaust survivor when stamina reaches 0. 0 = Disable. 1 = Enable.
l4d_sse_exhaustion "1"
// While survivor health is over this value, stamina will be at max value.
l4d_sse_health_max "70.0"
// When health reaches this value stamina will drop to min value
l4d_sse_health_min "20.0"
// Allow survivors to sprint while limping. 0 = Disable, 1 = Enable.
l4d_sse_sprint_limp "0"
// Multiply survivor speed by this amount when sprinting.
l4d_sse_sprint_scale "1.5"
// Max amount of stamina.
l4d_sse_stamina_amount "120"
// Stamina decay rate (every half second) while sprinting
l4d_sse_stamina_decay "8"
// 0 = Stamina allways max amount. 1 = Proportional to health.
l4d_sse_stamina_hp_proportional "1"
// If proportional stamina, minimum amount of stamina at low health.
l4d_sse_stamina_min "30"
// Amount of stamina recovered (every half second) while not moving or walking.
l4d_sse_stamina_regen "5"
// Amount of stamina recovered (every half second) while normal running.
l4d_sse_stamina_regen_moving "2"
// Temporary health will count as normal health this amount to calculate max stamina.
l4d_sse_stamina_temphealth "0.5"
// 0 = Infinite sprint. 1 = Use stamina.
l4d_sse_usestamina "1"
// Enable the plugin in these gamemodes, separated by spaces. (Empty = all).
zspawn_gamemodes ""
// Amount of exhaust tokens that the player will get on exhaust.
// 10 tokens = 1 second if survivor doesn't move, 2 seconds if its moving.
l4d_sse_exhaust_amount "150"
// If allowed, multiply limping speed by this value when sprinting.
l4d_sse_sprint_limp_scale "1.5"
// Scale survivor adrenaline run by this value while sprinting.
l4d_sse_sprint_adren_scale "1.2"
Changelog:
Last edited by Earendil; 07-02-2022 at 12:02.
Reason: Updated plugin description
|
|
|
|