AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Special Infected Ability Movement (1.12) [10-Feb-2023] (https://forums.alliedmods.net/showthread.php?t=307330)

Silvers 05-05-2018 15:12

[L4D & L4D2] Special Infected Ability Movement (1.12) [10-Feb-2023]
 
13 Attachment(s)
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:
  1. 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.

Sev 06-06-2018 11:57

Re: [L4D & L4D2] Special Infected Ability Movement (1.0) [05-May-2018]
 
Pretty good stuff

Now all that's needed is for someone out there to release the one plugin I saw years back that was never shared publicly to my knowledge where the tank could actually grab the survivors if close and throw them.

That...and someone out there gets really clever and restores the old L4D2 beta charger behavior seen in the old gameplay footage.

Instead of...

Left Click = Charge/Pummel
Right Click = Melee

It was most definitely

Left Click = Charge
Right Click = Pummel

The abilities were separated and im almost positive he couldn't melee. That overhead windup slam was a thing of beauty. Too bad they probably removed the animation for it.

:wink:

https://www.youtube.com/watch?v=vVs6_J1zwEk

phoenix0001 08-20-2018 15:07

Re: [L4D & L4D2] Special Infected Ability Movement (1.0) [05-May-2018]
 
I found that the Spitter Tank can be moved. Why can't Smoker move?

Lux 08-21-2018 18:16

Re: [L4D & L4D2] Special Infected Ability Movement (1.0) [05-May-2018]
 
Quote:

Originally Posted by phoenix0001 (Post 2611347)
I found that the Spitter Tank can be moved. Why can't Smoker move?

This includes spitter tank and smoker tank?

phoenix0001 08-22-2018 01:58

Re: [L4D & L4D2] Special Infected Ability Movement (1.0) [05-May-2018]
 
Quote:

Originally Posted by Lux (Post 2611499)
This includes spitter tank and smoker tank?

Spitter Tank Boomer Can move.
Boomer Need the following command support to move [sm_cvar z_vomit_fatigue 0].
Smoker No matter how you test it will not move.

Silvers 08-22-2018 03:21

Re: [L4D & L4D2] Special Infected Ability Movement (1.0) [05-May-2018]
 
Quote:

Originally Posted by phoenix0001 (Post 2611347)
I found that the Spitter Tank can be moved. Why can't Smoker move?

Thanks, will fix soon. Remove line 290 for temp quick fix.

phoenix0001 08-23-2018 01:49

Re: [L4D & L4D2] Special Infected Ability Movement (1.0) [05-May-2018]
 
Quote:

Originally Posted by Silvers (Post 2611540)
Thanks, will fix soon. Remove line 290 for temp quick fix.

Don't worry, wait for your update.

Silvers 08-23-2018 06:13

Re: [L4D & L4D2] Special Infected Ability Movement (1.0) [05-May-2018]
 
Quote:

Originally Posted by phoenix0001 (Post 2611715)
Don't worry, wait for your update.

Fixed.

phoenix0001 08-24-2018 05:42

Re: [L4D & L4D2] Special Infected Ability Movement (1.0) [05-May-2018]
 
Quote:

Originally Posted by Silvers (Post 2611744)
Fixed.

very perfect

leonardo martinez 09-02-2018 07:56

Re: [L4D & L4D2] Special Infected Ability Movement (1.1) [23-Aug-2018]
 
Can you jump while using your skill?


All times are GMT -4. The time now is 18:09.

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