Raised This Month: $214 Target: $400
 53% 

[L4D & L4D2] Special Infected Slap/Shove Ability [15-Sep-2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
disawar1
AlliedModders Donor
Join Date: Aug 2011
Location: Russian
Plugin ID:
7276
Plugin Version:
1.3.1
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
7 
Plugin Description:
Provides to Special Infected the ability to slap and shove Survivors.
Old 09-02-2020 , 06:37   [L4D & L4D2] Special Infected Slap/Shove Ability [15-Sep-2020]
Reply With Quote #1

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.
Attached Files
File Type: smx l4d_si_ability.smx (9.7 KB, 214 views)
__________________

Last edited by disawar1; 09-15-2020 at 07:20. Reason: 1.3.1 update
disawar1 is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: TW
Old 09-04-2020 , 01:46   Re: [L4D & L4D2] Special Infected Slap/Shove Ability
Reply With Quote #2

Make you laugh.
__________________
HarryPotter is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: TW
Old 09-04-2020 , 01:56   Re: [L4D & L4D2] Special Infected Slap/Shove Ability
Reply With Quote #3

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
__________________

Last edited by HarryPotter; 09-04-2020 at 01:56.
HarryPotter is offline
SDArt
Member
Join Date: Aug 2019
Old 09-04-2020 , 04:54   Re: [L4D & L4D2] Special Infected Slap/Shove Ability
Reply With Quote #4

Please, would you kindly make a convar disabling the chat announcements when a SI slaps/shoves.
SDArt is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: TW
Old 09-04-2020 , 11:41   Re: [L4D & L4D2] Special Infected Slap/Shove Ability
Reply With Quote #5

Quote:
Originally Posted by SDArt View Post
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" 
__________________
HarryPotter is offline
disawar1
AlliedModders Donor
Join Date: Aug 2011
Location: Russian
Old 09-04-2020 , 12:25   Re: [L4D & L4D2] Special Infected Slap/Shove Ability
Reply With Quote #6

Quote:
Originally Posted by fbef0102 View Post
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!
__________________

Last edited by disawar1; 09-04-2020 at 12:28.
disawar1 is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: TW
Old 09-04-2020 , 13:35   Re: [L4D & L4D2] Special Infected Slap/Shove Ability
Reply With Quote #7

Quote:
Originally Posted by disawar1 View Post
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
__________________
HarryPotter is offline
SDArt
Member
Join Date: Aug 2019
Old 09-04-2020 , 21:57   Re: [L4D & L4D2] Special Infected Slap/Shove Ability
Reply With Quote #8

Quote:
Originally Posted by fbef0102 View Post
Did you try this convar?
I overlooked that line thanks!
SDArt is offline
disawar1
AlliedModders Donor
Join Date: Aug 2011
Location: Russian
Old 09-05-2020 , 08:03   Re: [L4D & L4D2] Special Infected Slap/Shove Ability
Reply With Quote #9

Quote:
Originally Posted by fbef0102 View Post
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)!
__________________

Last edited by disawar1; 09-05-2020 at 08:17.
disawar1 is offline
Kai0205
Member
Join Date: Sep 2017
Old 09-06-2020 , 08:56   Re: [L4D & L4D2] Special Infected Slap/Shove Ability [05-Sep-2020]
Reply With Quote #10

I cannot compile the plugin

Kai0205 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:28.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode