View Single Post
Author Message
Mortiegama
Senior Member
Join Date: Feb 2010
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 - 4067 views - 54.6 KB)
File Type: txt l4d2_viciousplugins.txt (23.9 KB, 2147 views)
__________________

Last edited by Mortiegama; 02-17-2017 at 10:41. Reason: Updated to Version 1.2, added new Gamedata file.
Mortiegama is offline