Raised This Month: $32 Target: $400
 8% 

[L4D2] Stumble - Grenade Launcher (2.4) [25-Aug-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 08-06-2022 , 04:04   Re: [L4D2] Special Infected Stumble - Grenade Launcher (2.1) [26-Jun-2020]
Reply With Quote #21

Quote:
Originally Posted by HarryPotter View Post
silvers, I have a request, can you add a convar?
nvm, I found the way to do that,
PHP Code:
public Action OnTakeDamageWitch(int witchint &attackerint &inflictorfloat &damageint &damagetype)
{
    if( 
attacker && attacker <= MaxClients && IsClientInGame(attacker) && GetClientTeam(attacker) == && 
        
inflictor MaxClients && IsValidEntity(inflictor) )
    {
        static 
char classname[17];
        
GetEdictClassname(inflictorclassnamesizeof(classname));

        if( 
strcmp(classname"grenade_launcher") == )
        {
            
SDKHooks_TakeDamage(witchattackerattacker1.0DMG_BLAST); // Witch
        
}
    }

    return 
Plugin_Continue;

__________________

Last edited by HarryPotter; 08-06-2022 at 07:51.
HarryPotter is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-25-2022 , 10:08   Re: [L4D2] Stumble - Grenade Launcher (2.4) [25-Aug-2022]
Reply With Quote #22

Some updates since:

Code:
2.4 (25-Aug-2022)
    - Added cvar "l4d2_si_stumble_multiplier" to multiply against the damage received from the Grenade Launcher projectile.
    - Renamed the plugin from "Special Infected Stumble - Grenade Launcher" to "Stumble - Grenade Launcher" for clarity.

2.3 (10-Aug-2022)
    - Added cvar "l4d2_si_stumble_witch" to stumble the Witch, especially for Realism or Expert difficulty. Thanks to "HarryPotter" for adding parts.

2.2 (23-Feb-2021)
    - Fixed round restarts breaking the stumble self and survivors feature. Thanks to "swiftswing1" for reporting.
__________________
Silvers is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 01-07-2023 , 02:50   Re: [L4D2] Stumble - Grenade Launcher (2.4) [25-Aug-2022]
Reply With Quote #23

Further to my 2020 post #12 remarks above, thank you Silvers for finally adding the Witch stumble effect on the expert difficulty. \0/

Your time and effort are very much appreciated.
Sunyata is offline
TBK Duy
Member
Join Date: Jun 2017
Location: Vietnam
Old 08-11-2023 , 10:57   Re: [L4D2] Stumble - Grenade Launcher (2.4) [25-Aug-2022]
Reply With Quote #24

Bro it's so funny to see Survivors getting killed instantly without getting downed once "l4d2_si_stumble_multiplier" is set higher to 4.0 or 5.0
TBK Duy is offline
LedahRiviera
New Member
Join Date: Nov 2023
Old 11-14-2023 , 10:26   Re: [L4D2] Stumble - Grenade Launcher (2.4) [25-Aug-2022]
Reply With Quote #25

Quote:
Originally Posted by HarryPotter View Post
nvm, I found the way to do that,
PHP Code:
public Action OnTakeDamageWitch(int witchint &attackerint &inflictorfloat &damageint &damagetype)
{
    if( 
attacker && attacker <= MaxClients && IsClientInGame(attacker) && GetClientTeam(attacker) == && 
        
inflictor MaxClients && IsValidEntity(inflictor) )
    {
        static 
char classname[17];
        
GetEdictClassname(inflictorclassnamesizeof(classname));

        if( 
strcmp(classname"grenade_launcher") == )
        {
            
SDKHooks_TakeDamage(witchattackerattacker1.0DMG_BLAST); // Witch
        
}
    }

    return 
Plugin_Continue;

Can you change to another weapon like AWP? An AWP can Stumble Witch every time it hits
LedahRiviera 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 12:16.


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