// method to trigger dash 0=shift+move key 1=double tap move key
costly_sprint_tap "0"
// interval(seconds) to trigger double tap
costly_sprint_tap_interval "0.3"
changelog
v1.0 just releases; 9-November-2022
v1.1
new ConVar *_mode to control boost work way, more compatible or smoothy,
new ConVar *_tap to control how to trigger dash, shift+MoveKey or double tap forward key,
add support "[L4D & L4D2] Lagged Movement" if set *_mode to 1 ; 13-November-2022
v1.1.1 fix *_limp no work proper, optimize code more robust thanks to Silvers; 13-November-2022 (2nd time)
v1.2
new ConVar *_tap_interval to control interval time between double tap forward key,
make damage randomly if *_ache_amount less than 1; 14-November-2022
v2.0 new features, fixes:
- new Stamina mode, to instead hurt mode, if stamina used up, survivor speed gets down:
- new ConVar *_stamina to control max stamina duration, if set then use stamina mode
- new ConVar *_stamina_penalty_rate to control panalty move speed,
- new ConVar *_stamina_progress to print stamina progress text position,
- new ConVar *_stamina_recovery_rate to scale stamina recovery ratio,
- ConVars *_ache_* also control the stamina mode,
- fix key not detecting on incapped,
- fix double tap mode not work,
- remove ConVar *_sound_delay,
- double tap mode now can accept any move key,
- simplify codes, remove useless sounds because they sounds same,
- uploaded translation file for stamina mode; 13-December-2022
v2.0.1 optimizes:
- optimize double tap logic,
- clear state when player unavailable; 13-December-2022 (2nd time)
v2.1 new features:
- new Command +dash -dash let player work on "bind shift +dash"; 21-December-2022
v2.2 fixes:
- add Command sm_dashstart, sm_dashstop for dedicated server,
- fix dash command wrong speed on *_tap == 0,
- when set _ache_adren as 0, adrenaline state will ignore *_limp; 22-December-2022
Installation
put l4d_costly_sprint.smx on /plugins/
optional put l4d_costly_sprint.phrases on /translations/