About:- This plugin lets the Tank, Smoker and Spitter continue running whilst using their ability.
Boomer can be enabled with:
sm_cvar z_vomit_fatigue 0;
Smoker speed while the tongue is out:
sm_cvar tongue_victim_max_speed;
Some cvars for allowing continious usage of abilities, for reference and testing.
PHP Code:
sm_cvar z_tank_throw_interval 2;
sm_cvar z_vomit_interval 0;
sm_cvar tongue_hit_delay 0;
sm_cvar tongue_miss_delay 0;
sm_cvar z_spit_interval 0;
sm_cvar z_charge_interval 0;
Thanks:
- Visual77 - Testing various methods
- Dragokas - Various help
- Lux - Various help
- phoenix0001 - Bug report
CVars:
Saved to
l4d_infected_movement.cfg in your servers
\cfg\sourcemod\ folder.
PHP Code:
// 0=Plugin off, 1=Allow players only, 2=Allow bots only, 3=Both.
l4d_infected_movement_allow "3"
// These Special Infected bots can use: 1=Smoker, 2=Spitter, 4=Tank, 7=All. Add numbers together.
l4d_infected_movement_bots "7"
// 0.0=Instantly. How many seconds after using their ability can the Smoker move.
l4d_infected_movement_delay_smoker "0.0"
// 0.0=Instantly. How many seconds after using their ability can the Spitter move.
l4d_infected_movement_delay_spitter "0.0"
// 0.0=Instantly. How many seconds after using their ability can the Tank move.
l4d_infected_movement_delay_tank "0.0"
// These Special Infected players can use: 1=Smoker, 2=Spitter, 4=Tank, 7=All. Add numbers together.
l4d_infected_movement_type "7"
// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
l4d_infected_movement_modes ""
// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
l4d_infected_movement_modes_off ""
// Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
l4d_infected_movement_modes_tog "0"
// 0=Only on shooting. 1=Smokers can move while pulling someone. 2=Smokers can also move when someone is hanging from the tongue.
l4d_infected_movement_smoker "2"
// How fast can Smokers move while using their ability.
l4d_infected_movement_speed_smoker "250"
// How fast can Spitters move while using their ability.
l4d_infected_movement_speed_spitter "250"
// How fast can Tanks move while using their ability.
l4d_infected_movement_speed_tank "250"
// Ability Movement plugin version.
l4d_infected_movement_version
Changes:
Code:
1.12 (10-Feb-2023)
- Fixed affecting Survivors under certain circumstances. Thanks to "Voevoda" for reporting.
1.11 (03-Dec-2022)
- Added cvars "l4d_infected_movement_delay_smoker", "l4d_infected_movement_delay_spitter" and "l4d_infected_movement_delay_tank" to delay unlocking movement. Requested by "Mika Misori".
1.10 (22-Nov-2022)
- Fixed the "l4d_infected_movement_bots" and "l4d_infected_movement_type" cvars being flipped. Thanks to "Fraggor" for reporting.
1.9 (02-Feb-2022)
- Added cvar "l4d_infected_movement_bots" to control which bots this plugin enables for. Requested by "Alexmy".
1.8 (30-Sep-2020)
- Fixed compile errors on SM 1.11.
1.7 (18-Sep-2020)
- Fixed Smoker speed not resetting if the Tongue misses. Thanks to "fbef0102" for reporting.
1.6 (05-Sep-2020)
- Added resetting speed on player death and Smoker tongue release. Thanks to "fbef0102" for reporting.
1.5 (01-Sep-2020)
- Added cvars "l4d_infected_movement_speed_smoker", "l4d_infected_movement_speed_tank", and
"l4d_infected_movement_speed_spitter" to control speed while using their ability.
1.4 (10-May-2020)
- Extra checks to prevent "IsAllowedGameMode" throwing errors.
- Various changes to tidy up code.
1.3 (01-Apr-2020)
- Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
1.2 (23-Oct-2019)
- Added cvar "l4d_infected_movement_smoker" to control Smoker movement while someones hanging the tongue.
1.1 (23-Aug-2018)
- Fixed the Smoker not working correctly. Thanks to "phoenix0001" for reporting.
1.0 (05-May-2018)
- Initial release.
Installation:- Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
Updating from 1.10 or older:- New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.