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

[L4D2] Noxious Smoker (Updated: 2/17/17)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Mortiegama
Senior Member
Join Date: Feb 2010
Plugin ID:
4071
Plugin Version:
1.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Allows for unique Smoker abilities to spread its noxious aura.
    Old 01-30-2014 , 15:35   [L4D2] Noxious Smoker (Updated: 2/17/17)
    Reply With Quote #1

    L4D2 - Noxious Smoker

    General

    This plugin requires Sourcemod 1.7 or higher
    This plugin requires the attached Gamedata file


    Description

    I'm working on new ideas for my Vicious Infected plugin. Rather than edit the entire plugin I've started to make smaller projects to assess just that particular set of abilities. I figured I'd release the small portions as I come up with them. Maybe even incorporate just the abilities for that particular class to ease the overall plugin.

    Noxious Smoker is designed to add some nice additions to the fearsome slobber that is the Smoker. With three abilities currently, the Smoker can explode and deal methane gas damage and knock down survivors, use a survivor like a hostage to avoid damage, and snap its tongue when its broken to punish the rescuer.

    • Asphyxiation: The Smoker pulls out the oxygen from the air around it causing nearby Survivors to struggle to breathe.
    • Collapsed Lung: The sheer crushing force of the Smoker's tongue causes the Survivors lungs to collapse.
    • Methane Blast: When the Smoker is killed, the pressurized gas inside its body ignites causing an explosion.
    • Methane Leak: With methane gas barely contained in his body, the Smoker lets out a methane cloud that causes damage to anyone standing inside.
    • Methane Strike: When shoved, the Smoker lets out a strike of Methane gas that will also cause whoever shoved him to stumble.
    • Moon Walk: After wrapping up its victim, the Smoker is able to slowly move backwards, either dragging the survivor or stretching his tongue.
    • Restrained Hostage: The Smoker will use a victim it is currently choking to shield itself from damage.
    • Smoke Screen: The Smokers continually pumps smoke around it's body which helps obscure his form from attacks.
    • Tongue Strip: As the slippery tongue coils around the Survivor, it has a chance to knock out whatever item they were holding last.
    • Tongue Whip: When the Smoker's tongue is broken while dragging a victim, the force of the snap causes it to whip out and strike nearby survivors.
    • Void Pocket: The Smoker sucks all the air around him to himself causing Survivors to fly towards him. (Press Reload).


    Cvars

    <*>To change these values edit the plugin.L4D2.NoxiousSmoker.cfg in the CFG/Sourcemod folder.


    PHP Code:
    // Enables Methane Leak ability: With methane gas barely contained in his body, the Smoker lets out a methane cloud that causes damage to anyone standing inside. (Def 1)
    // -
    // Default: "1"
    l4d_nbm_methaneleak "1"

    // Period of time between methane leaks. (Def 60.0)
    // -
    // Default: "60.0"
    l4d_nbm_methaneleakcooldown "60.0"

    // Amount of damage caused to Survivors standing in a methane cloud. (Def 5)
    // -
    // Default: "5"
    l4d_nbm_methaneleakdamage "5"

    // Period of time the methane cloud persists. (Def 10.0)
    // -
    // Default: "10.0"
    l4d_nbm_methaneleakduration "10.0"

    // Frequency that standing in the methane cloud will cause damage. (Def 2.0)
    // -
    // Default: "2.0"
    l4d_nbm_methaneleakperiod "2.0"

    // Radius that the methane cloud will cover. (Def 100.0)
    // -
    // Default: "100.0"
    l4d_nbm_methaneleakradius "100.0"

    // Enables Methane Strike ability: When shoved, the Smoker lets out a strike of Methane gas that will also caused whoever shoved him to stumble. (Def 1)
    // -
    // Default: "1"
    l4d_nbm_methanestrike "1"

    // Enables Asphyxiation ability: The Smoker pulls out the oxygen from the air around it causing nearby Survivors to struggle to breathe. (Def 1)
    // -
    // Default: "1"
    l4d_nsm_asphyxiation "1"

    // Amount of damage caused by Asphyxiation. (Def 5)
    // -
    // Default: "5"
    l4d_nsm_asphyxiationdamage "5"

    // Frequency in which a Survivor nearby the Smoker will be injured. (Def 1.0)
    // -
    // Default: "1.0"
    l4d_nsm_asphyxiationfrequency "1.0"

    // Range around the Smoker that can cause Asphyxiation of Survivors. (Def 300.0)
    // -
    // Default: "300.0"
    l4d_nsm_asphyxiationrange "300.0"

    // Enables Collapsed Lung ability: The sheer crushing force of the Smoker's tongue causes the Survivors lungs to collapse. (Def 1)
    // -
    // Default: "1"
    l4d_nsm_collapsedlung "1"

    // Chance that a Survivor's lungs are collapsed. (100 = 100%). (Def 100)
    // -
    // Default: "100"
    l4d_nsm_collapsedlungchance "100"

    // How much damage is inflicted by Collapsed Lung each second. (Def 1)
    // -
    // Default: "1"
    l4d_nsm_collapsedlungdamage "1"

    // For how many seconds does the Collapsed Lung last. (Def 5)
    // -
    // Default: "5"
    l4d_nsm_collapsedlungduration "5"

    // Enables Methane Blast ability: When the Smoker is killed, the pressurized gas inside its body ignites causing an explosion. (Def 1)
    // -
    // Default: "1"
    l4d_nsm_methaneblast "1"

    // Amount of damage caused in the inner range of Methane Blast. (Def 15)
    // -
    // Default: "15"
    l4d_nsm_methaneblastinnerdamage "15"

    // Power behind the inner range of Methane Blast. (Def 300.0)
    // -
    // Default: "300.0"
    l4d_nsm_methaneblastinnerpower "300.0"

    // Range the inner blast radius will extend from Methane Blast. (Def 200.0)
    // -
    // Default: "200.0"
    l4d_nsm_methaneblastinnerrange "200.0"

    // Amount of damage caused in the outer range of Methane Blast. (Def 5)
    // -
    // Default: "5"
    l4d_nsm_methaneblastouterdamage "5"

    // Power behind the outer range of Methane Blast. (Def 100.0)
    // -
    // Default: "100.0"
    l4d_nsm_methaneblastouterpower "100.0"

    // Range the outer blast radius will extend from Methane Blast. (Def 300.0)
    // -
    // Default: "300.0"
    l4d_nsm_methaneblastouterrange "300.0"

    // Enables Moon Walk ability: After wrapping up its victim, the Smoker is able to slowly move backwards, either dragging the survivor or stretching his tongue. (Def 1)
    // -
    // Default: "1"
    l4d_nsm_moonwalk "1"

    // How fast will the Smoker can move after a tongue grab and drag. (Def 0.4)
    // -
    // Default: "0.4"
    l4d_nsm_moonwalkspeed "0.4"

    // How far the Smokers tongue can stretch before it snaps. (Def 2000)
    // -
    // Default: "2000"
    l4d_nsm_moonwalkstretch "2000"

    // Enables Restrained Hostage ability: The Smoker will use a victim it is currently choking to shield itself from damage. (Def 1)
    // -
    // Default: "1"
    l4d_nsm_restrainedhostage "1"

    // Percent of damage the Smoker avoids using a Survivor as a Hostage. (Def 0.5)
    // -
    // Default: "0.4"
    l4d_nsm_restrainedhostageamount "0.4"

    // How much damage is inflicted to the Survivor being used as a Hostage. (Def 3)
    // -
    // Default: "3"
    l4d_nsm_restrainedhostagedamage "3"

    // Enables Smoke Screen ability: The Smokers continually pumps smoke around it's body which helps obscure his form from attacks. (Def 1)
    // -
    // Default: "1"
    l4d_nsm_smokescreen "1"

    // Chance that Smoke Screen will cause an attack to miss. (20 = 20%). (Def 20)
    // -
    // Default: "20"
    l4d_nsm_smokescreenchance "20"

    // Enables Tongue Strip Ability: As the slippery tongue coils around the Survivor, it has a chance to knock out whatever item they were holding last. (Def 1)
    // -
    // Default: "1"
    l4d_nsm_tonguestrip "1"

    // Chance that the Smoker's tongue will strip an item. (10 = 10%). (Def 10)
    // -
    // Default: "10"
    l4d_nsm_tonguestripchance "10"

    // Enables Tongue Whip ability: When the Smoker's tongue is broken while dragging a victim, the force of the snap causes it to whip out and strike nearby survivors. (Def 1)
    // -
    // Default: "1"
    l4d_nsm_tonguewhip "1"

    // Amount of damage the Smoker's tongue will inflict when whipped. (Def 10)
    // -
    // Default: "10"
    l4d_nsm_tonguewhipdamage "10"

    // Power behind the Smoker's tongue whip. (Def 100.0)
    // -
    // Default: "100.0"
    l4d_nsm_tonguewhippower "100.0"

    // How far the Smoker will be able to whip its tongue. (Def 500.0)
    // -
    // Default: "500.0"
    l4d_nsm_tonguewhiprange "500.0"

    // Enables Void Pocket ability: The Smoker sucks all the air around him to himself causing Survivors to fly towards him. (Press Reload) (Def 1)
    // -
    // Default: "1"
    l4d_nsm_voidpocket "1"

    // Amount of time between Void Pocket abilities. (Def 5.0)
    // -
    // Default: "5.0"
    l4d_nsm_voidpocketcooldown "5.0"

    // Power of the pull from the Void Pocket. (Def 200.0)
    // -
    // Default: "200.0"
    l4d_nsm_voidpocketpower "200.0"

    // Range the Void Pocket will pull Survivors from.(Def 200.0)
    // -
    // Default: "200.0"
    l4d_nsm_voidpocketrange "200.0" 



    Installation
    • Download and copy L4D2 Noxious Smoker.smx to Addons/Sourcemod/Plugins
    • Download and copy l4d2_viciousplugins.txt to Addons/Sourcemod/Gamedata
    • Delete plugin.L4D2.NoxiousSmoker.cfg from the CFG/Sourcemod folder.



    Version History

    Code:
    Version 1.2 - (2/8/17)
    
    - Edited significant amount of code - Added three new abilities: Methane Leak, Methane Strike, and Tongue Strip
    Version 1.1 - (4/22/14) - 767 Views
    - Massive overhaul of the plugin - Changed Restrained Hostage to use SDK Hooks - Change Methane Blast and Tongue Whip to use updated fling technique - Added new abilities, Asphyxiation, Collapsed Lung, Moonwalk, Smoke Screen, and Void Pocket
    Version 1.0 - (1/30/14) - 134 Views
    - Original launch of the plugin


    Recommended Plugins
    • Infected Seppuku - Allows Infected to honorably kill themselves to hurt Survivors.


    Special Thanks



    Known Issues


    <*>None

    Attached Files
    File Type: sp Get Plugin or Get Source (L4D2 Noxious Smoker.sp - 4037 views - 54.6 KB)
    File Type: txt l4d2_viciousplugins.txt (23.9 KB, 2124 views)
    __________________

    Last edited by Mortiegama; 02-17-2017 at 10:41. Reason: Updated to Version 1.2, added new Gamedata file.
    Mortiegama is offline
    hjm5838
    Junior Member
    Join Date: Feb 2014
    Old 02-05-2014 , 11:56   Re: [L4D2] Noxious Smoker
    Reply With Quote #2

    Show me videos(youtube or...) I do not speak English. Thank you.
    hjm5838 is offline
    chatyak
    Senior Member
    Join Date: Aug 2011
    Old 02-21-2014 , 22:15   Re: [L4D2] Noxious Smoker
    Reply With Quote #3

    "l4d_ucm_restrainedhostage: Enables the Restrained Hostage ability, allowing the Charger to wield a Survivor like an Aegis while charging, reducing damage and hurting the Survivor." Getting some mix ups in the CFGs between smoker/charger/boomer etc...

    Good all around though

    Last edited by chatyak; 02-21-2014 at 22:16.
    chatyak is offline
    Mortiegama
    Senior Member
    Join Date: Feb 2010
    Old 04-22-2014 , 07:48   Re: [L4D2] Noxious Smoker
    Reply With Quote #4

    Quote:
    Originally Posted by chatyak View Post
    "l4d_ucm_restrainedhostage: Enables the Restrained Hostage ability, allowing the Charger to wield a Survivor like an Aegis while charging, reducing damage and hurting the Survivor." Getting some mix ups in the CFGs between smoker/charger/boomer etc...

    Good all around though
    Finally got around to correcting that and doing a major overhaul of the plugin in general.
    __________________
    Mortiegama is offline
    Pureshadowrage
    New Member
    Join Date: May 2014
    Old 05-29-2014 , 14:12   Re: [L4D2] Noxious Smoker (Updated: 4/22/14)
    Reply With Quote #5

    Methane blast goes off when a smoker teleports to the survivors when out of range. Who ever the smoker teleports to they get knocked down. I think the smoker cloud plugin had the same problem.
    Pureshadowrage is offline
    Diabolik001
    Member
    Join Date: May 2010
    Old 09-28-2015 , 09:11   Re: [L4D2] Noxious Smoker (Updated: 4/22/14)
    Reply With Quote #6

    How to reduce the explosion?
    l4d_nsm_methaneblastinnerpower "5"
    l4d_nsm_methaneblastinnerrange "5"
    l4d_nsm_methaneblastouterpower "5"
    l4d_nsm_methaneblastouterrange "5"
    the explosion is not reduced.
    I want the explosion covers like a propane tank.
    the same radius of explosion propane tank.

    Last edited by Diabolik001; 09-28-2015 at 09:12.
    Diabolik001 is offline
    Mortiegama
    Senior Member
    Join Date: Feb 2010
    Old 02-17-2017 , 14:19   Re: [L4D2] Noxious Smoker (Updated: 2/17/17)
    Reply With Quote #7

    Finally gave the Noxious Smoker the update treatment! Enjoy the new abilities.
    __________________
    Mortiegama is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 02-28-2017 , 11:24   Re: [L4D2] Noxious Smoker (Updated: 2/17/17)
    Reply With Quote #8

    Gamedata Smoker l4d2_viciousplugins.txt

    Dissimilarity Boomer Charger Spitter
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor
    phoenix0001 is offline
    Mister Crazy
    Junior Member
    Join Date: Jul 2016
    Location: Russia
    Old 03-25-2017 , 09:24   Re: [L4D2] Noxious Smoker (Updated: 2/17/17)
    Reply With Quote #9

    /home/groups/sourcemod/upload_tmp/phpnmwuhh.sp(1094) : warning 213: tag mismatch
    /home/groups/sourcemod/upload_tmp/phpnmwuhh.sp(160) : warning 203: symbol is never used: "cvarTongueStripTimer"

    Google translator:
    Not drop all weapons, not drop all melee weapons!
    (Drop: "weapon_pumpshotgun", "weapon_autoshotgun", "weapon_rifle", "weapon_smg", "weapon_hunting_rifle", "weapon_sniper_scout", "weapon_sniper_military", "weapon_sniper_awp", "weapon_smg_silenced",
    "weapon_smg_mp5", "weapon_shotgun_spas", "weapon_shotgun_chrome", "weapon_rifle_sg552", "weapon_rifle_desert", "weapon_rifle_ak47", "weapon_grenade_launcher", "weapon_rifle_m60")

    Why do not you use it

    PHP Code:
    ForceWeaponDrop(attacker);
    .......................................
    stock ForceWeaponDrop(client)
    {
        if (
    GetPlayerWeaponSlot(client1) > 0)
        {
            new 
    weapon GetPlayerWeaponSlot(client1);
            
    SDKHooks_DropWeapon(clientweaponNULL_VECTORNULL_VECTOR);
        }


    Last edited by Mister Crazy; 03-25-2017 at 09:37.
    Mister Crazy is offline
    Blue1
    Junior Member
    Join Date: Apr 2017
    Old 04-22-2017 , 12:53   Re: [L4D2] Noxious Smoker (Updated: 2/17/17)
    Reply With Quote #10

    how do i turn off the smoker blast on death
    Blue1 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 10:25.


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