Raised This Month: $49 Target: $400
 12% 

[L4D & L4D2] Special Infected Immunities (v1.1, 09-10-2018)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Psyk0tik
AlliedModders Donor
Join Date: May 2012
Location: Homeless
Plugin ID:
6247
Plugin Version:
1.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    3 
    Plugin Description:
    Grants different kinds of immunities for special infected.
    Old 09-03-2018 , 18:39   [L4D & L4D2] Special Infected Immunities (v1.1, 09-10-2018)
    Reply With Quote #1

    Donate to Motivate

    Introduction

    This plugin is a rewrite of [L4D] Fire Immunity Specials.

    New Features/Differences

    - Supports both games.
    - Uses SDKHook_OnTakeDamage instead of player_hurt event, which allows for more options and flexibility.
    - Provides different types of immunities (Bullet, Explosive, Fire, and Melee).
    - Provides options for enabling/disabling the plugin in different gamemodes and gamemode types. (Thanks Silvers!)
    - Overall less code and better optimization.

    ConVars

    PHP Code:
    // Give the following special infected bullet immunity.
    // Combine numbers in any order for different results.
    // 1: Smoker
    // 2: Boomer
    // 3: Hunter
    // 4: Spitter
    // 5: Jockey
    // 6: Charger
    // 7: Tank
    // -
    // Default: "35"
    sii_bullet_immunity "35"

    // Disable Special Infected Immunities in these gamemodes.
    // Separate by commas.
    // Empty: None
    // Not empty: Disable in these gamemodes.
    // -
    // Default: ""
    sii_disabled_gamemodes ""

    // Enable Special Infected Immunities?
    // 0: OFF
    // 1: ON
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sii_enable_plugin "1"

    // Enable Special Infected Immunities in these gamemodes.
    // Separate by commas.
    // Empty: All
    // Not empty: Enable in these gamemodes.
    // -
    // Default: ""
    sii_enabled_gamemodes ""

    // Give the following special infected explosive immunity.
    // Combine numbers in any order for different results.
    // 1: Smoker
    // 2: Boomer
    // 3: Hunter
    // 4: Spitter
    // 5: Jockey
    // 6: Charger
    // 7: Tank
    // -
    // Default: "16"
    sii_explosive_immunity "16"

    // Give the following special infected fire immunity.
    // Combine numbers in any order for different results.
    // 1: Smoker
    // 2: Boomer
    // 3: Hunter
    // 4: Spitter
    // 5: Jockey
    // 6: Charger
    // 7: Tank
    // -
    // Default: "7"
    sii_fire_immunity "7"

    // Enable Special Infected Immunities in these gamemode types.
    // 0: All
    // 1: Coop modes only.
    // 2: Versus modes only.
    // 4: Survival modes only.
    // 8: Scavenge modes only.
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "15.000000"
    sii_gamemode_types "0"

    // Give the following special infected melee immunity.
    // Combine numbers in any order for different results.
    // 1: Smoker
    // 2: Boomer
    // 3: Hunter
    // 4: Spitter
    // 5: Jockey
    // 6: Charger
    // 7: Tank
    // -
    // Default: "24"
    sii_melee_immunity "24" 
    Bugs

    I'm not sure. Let me know.

    Notes

    1. The config file will be generated in the default cfg/sourcemod folder.
    2. Explosive ammo counts as both bullet and explosive damage.
    3. Incendiary ammo counts as both bullet and fire damage.
    4. M60 damage counts as both bullet and explosive damage.

    Requests

    I don't know. Post one below and I'll look into it.

    Requirement

    SM 1.8+

    Installation

    1. Place special_infected_immunities.smx inside plugins folder.

    Credits

    Baz Newt - For the Fire Immunity Specials plugin.
    Lux - For valuable advise and input.
    Silvers - For the code to enable/disable the plugin in certain gamemodes and gamemode types.

    Changelog

    Spoiler
    Attached Files
    File Type: sp Get Plugin or Get Source (special_infected_immunities.sp - 1175 views - 11.6 KB)
    __________________
    AFK like JFK
    --
    Donate to Motivate
    --
    Get latest L4D/L4D2 gamedata signatures here.
    --
    PM me if you need help with finding signatures and/or offsets in the following games: L4D1&2/CSGO/TF2/NMRIH/INS/DODS/CSS/HL2DM

    Last edited by Psyk0tik; 08-19-2021 at 10:17. Reason: Updated main post
    Psyk0tik is offline
    Mi.Cura
    Senior Member
    Join Date: Dec 2016
    Location: Brazil
    Old 09-03-2018 , 19:15   Re: [L4D & L4D2] Special Infected Immunities
    Reply With Quote #2

    Nice job, Crasher

    Thanks for this...
    __________________
    Mi.Cura | Modded Servers | L4D2
    https://steamcommunity.com/groups/micuramodzombie
    Mi.Cura is offline
    Psyk0tik
    AlliedModders Donor
    Join Date: May 2012
    Location: Homeless
    Old 09-11-2018 , 03:39   Re: [L4D & L4D2] Special Infected Immunities (v1.1, 09-10-2018)
    Reply With Quote #3

    Version 1.1 is out!

    1. Fixed the issue with Tanks not getting extinguished when given fire immunity.
    __________________
    AFK like JFK
    --
    Donate to Motivate
    --
    Get latest L4D/L4D2 gamedata signatures here.
    --
    PM me if you need help with finding signatures and/or offsets in the following games: L4D1&2/CSGO/TF2/NMRIH/INS/DODS/CSS/HL2DM
    Psyk0tik is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine
    Old 10-17-2019 , 11:28   Re: [L4D & L4D2] Special Infected Immunities (v1.1, 09-10-2018)
    Reply With Quote #4

    Quote:
    // Give the following special infected bullet immunity.
    // Combine numbers in any order for different results.
    // 1: Smoker
    // 2: Boomer
    // 3: Hunter
    // 4: Spitter
    // 5: Jockey
    // 6: Charger
    // 7: Tank
    // -
    // Default: "35"
    Where is my lovely witch?
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch)
    [My plugins] [My tools] [GitHub] [Articles] [Donate]
    Dragokas is offline
    gamer_kanelita
    Senior Member
    Join Date: Jun 2019
    Location: Peru
    Old 10-29-2021 , 12:39   Re: [L4D & L4D2] Special Infected Immunities (v1.1, 09-10-2018)
    Reply With Quote #5

    is there any way that tank is immune to fire without losing the effect of burning the tank?
    gamer_kanelita is offline
    Psyk0tik
    AlliedModders Donor
    Join Date: May 2012
    Location: Homeless
    Old 10-29-2021 , 15:44   Re: [L4D & L4D2] Special Infected Immunities (v1.1, 09-10-2018)
    Reply With Quote #6

    Quote:
    Originally Posted by gamer_kanelita View Post
    is there any way that tank is immune to fire without losing the effect of burning the tank?
    Just comment out line 70.

    Before:
    PHP Code:
    CreateTimer(0.1tTimerFireBlock_TIMER_FLAG_NO_MAPCHANGE|TIMER_REPEAT); 
    After:
    PHP Code:
    //CreateTimer(0.1, tTimerFireBlock, _, TIMER_FLAG_NO_MAPCHANGE|TIMER_REPEAT); 
    __________________
    AFK like JFK
    --
    Donate to Motivate
    --
    Get latest L4D/L4D2 gamedata signatures here.
    --
    PM me if you need help with finding signatures and/or offsets in the following games: L4D1&2/CSGO/TF2/NMRIH/INS/DODS/CSS/HL2DM
    Psyk0tik is offline
    gamer_kanelita
    Senior Member
    Join Date: Jun 2019
    Location: Peru
    Old 10-29-2021 , 17:12   Re: [L4D & L4D2] Special Infected Immunities (v1.1, 09-10-2018)
    Reply With Quote #7

    super worked thanks :abeja:
    gamer_kanelita 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 19:00.


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