AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Special Infected Slap/Shove Ability [15-Sep-2020] (https://forums.alliedmods.net/showthread.php?t=327123)

disawar1 09-02-2020 06:37

[L4D & L4D2] Special Infected Slap/Shove Ability [15-Sep-2020]
 
1 Attachment(s)
About:
Provides to Special Infected the ability to slap and shove Survivors.
This is a complete rework of classic l4d plugin [L4D & L4D2] Boomer Bit** Slap.




Features:
  • Add new ability to SI.
  • Make you laugh.
  • Flexible configs.
  • Supports both left 4 dead games.

Credits:
Сonsole Variables:
PHP Code:

// L4D & L4D2 Special Infected Slap/Shove Ability Plugin Version
l4d_si_ability_version
// Enable/Disable the Special Infected Slap/Shove Ability Plugin.
l4d_si_ability_enabled "1"
// How much force is applied to the victim (Slap ability)
l4d_si_ability_power "150"
// Vertical force multiplier (Slap ability)
l4d_si_ability_vertical_mult "1.5"
// 0=Off, >0: Seconds before SI can slap again.
l4d_si_ability_cooldown_slap "1.0"
// 0=Off, >0: Seconds before SI can shove again.
l4d_si_ability_cooldown_shove "1.0"
// 0=Off, 1=Chat, 2=Center chat, 3=Hint.
l4d_si_ability_announce "1"
// Slapping incapacitating people. Add numbers together: 0=Off, 2=Smoker, 4=Boomer, 8=Hunter, 16=Spitter, 32=Jockey, 64=Charger, 126=All.
l4d_si_ability_incap "68" // Default: Boomer|Charger.
// "Special Infected who can slap. Add numbers together: 0=Off, 2=Smoker, 4=Boomer, 8=Hunter, 16=Spitter, 32=Jockey, 64=Charger, 126=All. 
l4d_si_ability_slap "68" // Default: Boomer|Charger.
// "Special Infected who can shove. Add numbers together: 0=Off, 2=Smoker, 4=Boomer, 8=Hunter, 16=Spitter, 32=Jockey, 64=Charger, 126=All.
l4d_si_ability_shove "18" //  Default: Smoker|Spitter. 

Plugin Requirements:
Left 4 DHooks Direct


Source Code:
l4d_si_ability.sp
l4d_lib.inc


Changelog:
v 1.3.1 (15-Sep-2020)
Fix: l4d survivors emitting l4d2 survivors sounds. (Reported by aiyoaiui)
Refractor: l4d_lib v2.4 migration.
v 1.3 (05-Sep-2020)
- Fix SI release the Survivor. (Reported by fbef0102)
- Fix l4d_si_ability_announce incorrect upper bound. (Reported by fbef0102)
v 1.2 (04-Sep-2020)
- Separate cooldown convar.
- Change sound level.
v 1.1 (02-Sep-2020)
- Fix native is not bound error (Reported by Silvers)
v 1.0 (02-Sep-2020)
- Initial release.

HarryPotter 09-04-2020 01:46

Re: [L4D & L4D2] Special Infected Slap/Shove Ability
 
Make you laugh.:3

HarryPotter 09-04-2020 01:56

Re: [L4D & L4D2] Special Infected Slap/Shove Ability
 
just a request
can you separate this convar
PHP Code:

// 0=Off, >0: Seconds before SI can slap/shove again.
l4d_si_ability_cooldown "1.0" 

to two? one for slap, one for shove
because I want hunter/jockey shove ability cooldown is 1.0, while boomer/charger slap ability cooldown is 15.0

SDArt 09-04-2020 04:54

Re: [L4D & L4D2] Special Infected Slap/Shove Ability
 
Please, would you kindly make a convar disabling the chat announcements when a SI slaps/shoves.

HarryPotter 09-04-2020 11:41

Re: [L4D & L4D2] Special Infected Slap/Shove Ability
 
Quote:

Originally Posted by SDArt (Post 2716578)
Please, would you kindly make a convar disabling the chat announcements when a SI slaps/shoves.

Did you try this convar?
Quote:

Сonsole Variables:
PHP Code:

// 0=Off, 1=Chat, 2=Center chat, 3=Hint.
l4d_si_ability_announce "1" 



disawar1 09-04-2020 12:25

Re: [L4D & L4D2] Special Infected Slap/Shove Ability
 
Quote:

Originally Posted by fbef0102 (Post 2716563)
just a request
can you separate this convar
PHP Code:

// 0=Off, >0: Seconds before SI can slap/shove again.
l4d_si_ability_cooldown "1.0" 

to two? one for slap, one for shove
because I want hunter/jockey shove ability cooldown is 1.0, while boomer/charger slap ability cooldown is 15.0

Make sense. Updated.
P.S. Untested!

HarryPotter 09-04-2020 13:35

Re: [L4D & L4D2] Special Infected Slap/Shove Ability
 
Quote:

Originally Posted by disawar1 (Post 2716622)
Make sense. Updated.
P.S. Untested!

Nice, I test and it works.
I found a bug in l4d2.
Spoiler


One more thing I found.
Spoiler

SDArt 09-04-2020 21:57

Re: [L4D & L4D2] Special Infected Slap/Shove Ability
 
Quote:

Originally Posted by fbef0102 (Post 2716613)
Did you try this convar?

I overlooked that line thanks!

disawar1 09-05-2020 08:03

Re: [L4D & L4D2] Special Infected Slap/Shove Ability
 
Quote:

Originally Posted by fbef0102 (Post 2716639)
Nice, I test and it works.
I found a bug in l4d2.
Spoiler


One more thing I found.
Spoiler

Thanks for the feedback. Updated. Don't forget to grab latest l4d_lib.inc (Fix: l4d2 stocks)!

Kai0205 09-06-2020 08:56

Re: [L4D & L4D2] Special Infected Slap/Shove Ability [05-Sep-2020]
 
I cannot compile the plugin

https://i.imgur.com/Pm0Xo2u.png


All times are GMT -4. The time now is 13:52.

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