banner



Left 4 Dead 2 Flamethrower

Old 06-26-2011 , 12:12   [L4D & L4D2] Extinguisher & Flamethrower (1.21) [20-Jun-2022]

Reply With Quote #1

Near:
  • Read/search this post before asking questions.
  • Allows the Burn down Extinguisher props to be used as a weapon.
  • Utilise the Extinguisher while incapped and refuel with gascans.
  • Commands to save and position extinguishers on maps for car spawning.
  • Data config included with Extinguishers placed on every Valve map.
  • Lots of cvars to customise.
Thank you:
  • alexip121093 - Lots of support, ideas and Chinese translations.
  • JoBarfCreepy - Lots of back up, ideas and Danish translations.
  • disawar1 - Helped testing 1.3 and Russian translations.
  • Dont Fear The Reaper - German language translations.
  • Januto - Spanish translations.
  • DJ_WEST - For Chainsaw Refueling code showing usage of point_prop_use_target.
  • Mr. Homo - Helped testing.
  • Jay_ombie - Helped testing.
  • Mr.RuyC - Helped testing.
Bugs:
  • Can block the USE push button when equipped in hand (due to the model blocking the view, zip tin can be done).
  • Model non fastened to weapon in first person view. Cvar to turn off the extinguisher view.
  • This console message tin can be ignored: "Setting CBaseEntity to non-brush model models/props/cs_militia/silo_01.mdl".
  • L4D1 characters and Louis in L4D2 are missing valid weapon attachment points so the extinguisher model is not fixed to the hand in thirdperson.
  • Glow color is only available in L4D2.
  • Refueling is only available in L4D2.
Dropping and Refueling:
  • With the extinguisher equipped in manus, you tin can printing the RELOAD (r) key to drop it. Also by typing !dropext in chat or sm_dropext in console.
  • To refuel, drop an extinguisher and pickup a gascan. Aim at the extinguisher and agree SHOOT (mouse1), yous may take to motility the crosshair/yourself for it to start refueling.
  • Scavenge Score Fix - Gascan Pouring - Become this plugin to prevent bugs when refueling with gascans on certain maps/gamemodes.
Types:
You can alter which types are allowed by adding together the numbers to make the cvar: l4d_extinguisher_type. 1. Extinguisher:
This can be used to extinguish molotovs and exploding barrels, firework explosions and/or spitter acrid. Set l4d_extinguisher_spray to choose which types information technology works on. This will as well extinguish special infected from fire. 2. Flamethrower:
Use this to ignite all zombies, gascans, firework crates, propane and oxygen tanks. 4. Freezer Spray:
When sprayed on mutual infected, they will appear with a blueish glow and volition be slowed downward, especially when shoved and falling. This will as well extinguish special infected from burn down. 8. Blastpushback:
When sprayed on survivors or special infected, they will be pushed backwards. Annotation: Each smash uses 25 fuel gear up by l4d_extinguisher_push_fuel and has a timeout after using set up by l4d_extinguisher_push_time.

Combo Cvar:
If yous want all extinguisher types on a unmarried extinguisher, set the cvar

l4d_extinguisher_combo to anything but 0. The value sets the glow color. The following types are controlled by the keys listed.
  1. Flamethrower - IN_ATTACK (chief attack/mouse1 push)
  2. Extinguisher/Freezerspray - IN_ZOOM (sniper scope/middle mouse button)
  3. Blastpushback - IN_SPEED (walk/shift key) and IN_ZOOM (scope/mmb)
Weapon Replacement:
You lot can ready the extinguisher to only work when players have a specific weapon in mitt by setting the cvar l4d_extinguisher_weapon to the weapon entity name. For example "weapon_rifle_ak47" for the AK47. You lot should update the translation file (the one which is your servers default linguistic communication) with the weapon name where the "Ext_WeaponName" entry is listed.

To ensure they just have extinguishers equipped when they have this weapon fix the cvar

l4d_extinguisher_check to 1.

If you would similar the extinguisher to work when any pistol/master weapon is equipped:

  1. Set the cvar l4d_extinguisher_weapon to ""
  2. Gear up the cvar l4d_extinguisher_check to 0.
Public Commands:

PHP Code:

sm_dropext // Drops an equipped extinguisher. Admins usage: sm_dropext <#userid|proper name>. No arguments = self.


Admin Commands: (requires "z" flag)

PHP Lawmaking:

sm_giveext // Gives extinguisher. Usage: sm_giveext <1|2|3|4> (requite to self, where 1=Extinguisher, two=Flamethrower, 3=Freezerspray, 4=Smash Pushback) or <#userid|name> <type: i|2|iii|iv>
sm_spawnext // Spawns an extinguisher at your crosshair location. Usage: sm_spawnext <1|2|3|four> (ane=Extinguisher, 2=Flamethrower, three=Freezerspray, four=Blast Pushback)
sm_extwep // Gives the l4d_extinguisher_weapon to the target player(s). Usage: sm_extwep <#userid|name>. No arguments = self.
sm_extsave // Spawns a extinguisher at your crosshair and saves to config. Usage: sm_extsave <1|2|iv|8> 1=Extinguisher, 2=Flamethrower, four=Freezerspray, 8=Blast Pushback, 15=Any.
sm_extang // Set angle of extinguisher behind crosshair. Only works on sm_extsave extinguishes.
sm_extpos // Prepare position of extinguisher behind crosshair. Merely works on sm_extsave extinguishes.
sm_extset // Salve to the config the ang/pos of extinguisher behind crosshair if spawned with sm_extsave.
sm_extdel // Removes the extinguisher your crosshair is pointing at.
sm_extclear // Removes all burn extinguishers from the current map (except those equipped by players).
sm_extwipe // Removes all burn down extinguisher from the current map and deletes them from the config.
sm_extlist // Display a listing extinguisher positions and the number of extinguishers.
sm_extglow // Toggle to enable glow on all extinguishers to see where they are placed.


CVars:

Saved to

l4d_extinguisher.cfg in your servers \cfg\sourcemod\ binder.

PHP Code:

// 0=Plugin off, 1=Plugin on.
l4d_extinguisher_allow "1" // 0=No interruption, 1=Valve default breaks when damaged, 2=Breaks and cannot exist used, 3=Same every bit 2 but special infected can't pause.
l4d_extinguisher_break "2" // Players must have the l4d_extinguisher_weapon to equip and utilize Extinguishers.
l4d_extinguisher_check "0" // 0=Off. Otherwise all Extinguisher functions in one. Sets the Extinguisher glow color. Three values betwixt 0-255 separated by spaces. RGB Color255 - Ruddy Green Blue.
l4d_extinguisher_combo "255 255 255" // How much damage the Extinguisher does per impact when fired. Triggered according to frequency cvar.
l4d_extinguisher_damage "1" // Flamethrower particles and glow. 0=Flame type A, 1=Flame blazon B, 2=Type A + Lite, 3=Blazon B + Light.
l4d_extinguisher_flame "ii" // How often the damage trace fires, igniting entities etc.
l4d_extinguisher_frequency "0.ane" // 0=Off, one=Friendly fire, allow survivors to hurt each other, 2=Merely hurt survivors from the Blast blazon.
l4d_extinguisher_friendly "1" // 0=Infinite, How much fuel each Extinguisher has. Consumption is based on how oftentimes the PreThink fires.
l4d_extinguisher_fuel "1000" // 0=Glow Off. Any other value sets the range at which extinguishers glow.
l4d_extinguisher_glow "150" // 0=Valve default. Whatever other value sets glow color for blast pushback.
l4d_extinguisher_glow_blast "255 255 0" // 0=Valve default. Any other value sets glow color for extinguishers.
l4d_extinguisher_glow_extin "0 255 0" // 0=Valve default. Any other value sets glow colour for flamethrowers.
l4d_extinguisher_glow_flame "255 0 0" // 0=Valve default. Whatever other value sets glow color for freezer sprays.
l4d_extinguisher_glow_spray "0 150 255" // 0=Off, How many pre-existing extinguishers on maps can this plugin cater for.
l4d_extinguisher_grab "32" // 0=Off, 1=Display hints from translation file, 2=Displays hints except when the Extinguisher is broken.
l4d_extinguisher_hint "one" // 0=Off, i=Allow the Extinguisher to be used when incapacitated.
l4d_extinguisher_incap "1" // Maximum number of players immune to have the Extinguisher at one time.
l4d_extinguisher_max "0" // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
l4d_extinguisher_modes "" // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
l4d_extinguisher_modes_off "" // Plow on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, iv=Versus, 8=Scavenge. Add numbers together.
l4d_extinguisher_modes_tog "0" // When hit by the smash type, push players/infected by this much force.
l4d_extinguisher_push "400" // 0=Space, How much fuel to take away when using the nail pushback blazon.
l4d_extinguisher_push_fuel "25" // How long after using the smash pushback type before it can be used again.
l4d_extinguisher_push_time "0.v" // 0=Off, -1=All, whatever other value sets how many randomly auto spawn from the config.
l4d_extinguisher_random "one" // How far the Extinguisher tin can bear on entities.
l4d_extinguisher_range "150" // 0=Off, 1=Remove extinguishers afterwards being broken, 2=Remove when out of fuel, 3=Remove when broken or out of fuel.
l4d_extinguisher_remove "0" // What can be extinguished with the Extinguisher blazon? i=Molotovs/Barrels, 2=Firework Explosions, four=Spitter Acid, vii=All.
l4d_extinguisher_spray "7" // How long players take to shoot the Extinguisher type when standing in a burn down before it tin exist removed.
l4d_extinguisher_time "eight" // How long does it take to pick up extinguishers.
l4d_extinguisher_timed "1.0" // How long later on using the Extinguisher till you can utilise it again.
l4d_extinguisher_timeout "0.2" // Which types are immune: 1=Extinguisher, two=Flamethrower, four=Freezer spray, viii=Blast, 15=All.
l4d_extinguisher_type "15" // When clients agree the Extinguisher: 0=Show information technology, 1=Evidence information technology and hibernate their weapon, ii=Testify their weapon and hide the Extinguisher.
l4d_extinguisher_view "ane" // Remove boomer vomit event from players  on the offset spray. 0=Off, 1=Extinguisher, 2=Flamethrower, 4=Blast type, 7=All.
l4d_extinguisher_vomit "5" // ""=All (must set l4d_extinguisher_check to 0). Weapon entity name to replace and use for the Extinguisher.
l4d_extinguisher_weapon "" // Extinguisher plugin version.
l4d_extinguisher_version

Changes:

Code:

one.21 (20-Jun-2022)     - Extinguisher is now blocked when "using" something, e.k. buttons.  ane.20 (15-Jun-2022)     - Made refueling with gascans uniform with the "Scavenge Pouring - Unleaded Gas Only" plugin.  1.19 (01-Mar-2022)     - Changed where sounds are played then they're clearer and louder. Thanks to "swiftswing1" for reporting.     - Fixed Spanish translation. File "translations/es/extinguisher.phrases.txt" has been updated. Thanks to "swiftswing1" for reporting.  1.18 (19-October-2021)     - Fixed the extinguisher equipping over the Chainsaw. Thanks to "swiftswing1" for reporting.     - Fixed zooming sniper scopes when using the zoom button with an extinguisher equipped. Thank you to "swiftswing1" for reporting.     - Zooming nonetheless occurs for a separate 2nd. Would probably require detouring "CTerrorGun::CanZoom" or something like to totally cake.     - Changed some code which merely works in SM one.x or newer.  1.17 (11-Jul-2021)     - L4D2: Stock-still not attaching the Extinguisher correctly to "Coach" and some L4D1 characters in L4D2. Probably cleaved in game recent updates.  1.xvi (01-Jul-2021)     - Added a warning message to suggest installing the "Scavenge Score Fix - Gascan Pouring", "Attachments API" and "Utilise Priority Patch" plugins if missing.     - Increased the range of which you lot tin extinguish fires from. Thanks to "mikaelangelis" for reporting and testing.  1.fifteen (fifteen-February-2021)     - Fixed "Cannot create new entity when no map is running" error. Thanks to "Dragokas" for reporting.     - Fixed "Property "m_flFrozen" non found" error. Thanks to "Mi.Cura" for reporting and "Marttt" for fixing.  1.fourteen (30-Sep-2020)     - Fixed compile errors on SM 1.11.  1.thirteen (15-Jul-2020)     - Fixed players getting stuck when an extinguisher breaks during pick upward. Thanks to "xZk" for reporting.     - Fixed L4D1 throwing errors from blocking glow cvars. Thank you to no one for reporting.     - Made uniform with the "Weapon Charms" plugin version i.7+ only.  one.12 (15-May-2020)     - Fixed the Blast Pushback type not flinging players when they are too shut.     - Fixed the Extinguisher not displaying after reviving someone.     - Replaced "point_hurt" entity with "SDKHooks_TakeDamage" function.  i.11 (10-May-2020)     - Added ameliorate error log message when gamedata file is missing.     - Blocked glow convars being generated for L4D1 which does not support glows.     - Fixed Blast Pushback type making players stumble instead of throwing them due to i.ix.2 changes.     - Various changes to tidy up code.     - Diverse optimizations and fixes.  1.10 (01-Apr-2020)     - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.     - Removed "colors.inc" dependency.     - Updated these translation file encodings to UTF-viii (to display all characters correctly): Danish (da), German (de).  one.9.three (04-Mar-2020)     - Minor changes to source, has no affect.  1.ix.2 (10-Oct-2019)     - Fixed entity leak - not deleting an entity subsequently use.     - Blast Pushback now pushes Common and Witches abroad.  1.9.1 (28-Jun-2019)     - Changed PrecacheParticle method.  ane.9 (05-May-2018)     - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.viii or newer.     - Changed cvar "l4d_extinguisher_modes_tog" now supports L4D1.  1.8.4 (12-Jun-2015)     - Fixed the plugin not compiling on SourceMod one.seven.10.  1.8.3 (18-Aug-2013)     - Fixed the Extinguisher beingness agile when using a mounted gun. - Thanks to "Herbie" for reporting.  one.viii.2 (21-Jul-2013)     - Removed Sort_Random work-around. This was fixed in SourceMod i.4.7, all should update or spawning bug will occur.  1.8.1 (06-Jul-2013)     - Gamedata signatures file updated. No other changes.  1.viii.one (07-October-2012)     - Fixed the Extinguisher blocking players +Use by adding a single line of code - Thanks to "Machine".  1.8 (ten-Jul-2012)     - Fixed hurting players behind you lot.  i.vii (25-May-2012)     - Added cvar "l4d_extinguisher_vomit" to remove the boomer vomit effect when first spraying survivors.     - Fixed the Extinguisher blazon not causing damage when combo cvar was set to 0.     - Fixed Louis and Zoey effects spraying in the wrong management in L4D2.  one.half-dozen (21-May-2012)     - Added High german translations - Thanks to "Dont Fearfulness The Reaper".  ane.6 (10-May-2012)     - Added cvar "l4d_extinguisher_time" to control how long players have to shoot when continuing in burn earlier removing information technology.     - Fixed the fires non beingness removed properly.     - Fixed the extinguisher not appearing after throwing held objects.     - Stock-still refuel hints displaying in L4D1, refilling with gascans cannot piece of work in L4D1.     - Pocket-size changes.  ane.v (30-Mar-2012)     - Added cvar "l4d_extinguisher_modes_off" to control which game modes the plugin works in.     - Added cvar "l4d_extinguisher_modes_tog" aforementioned as in a higher place, just only works for L4D2.     - Changed cvar "l4d_extinguisher_hint" added options 3 and 4.     - Fixed errors the terminal update caused when Exintguishers were broken by things such as molotovs.     - Fixed hookevent errors in L4D1, refilling with gascans cannot work in L4D1.     - Fixed non beingness able to utilize pistols when incapped and beingness revived.     - Fixed the extinguisher non showing in first person view when equipped afterward being snared or incapped.     - Stock-still a bug where deleting Extinguishers would also delete "type" entries.     - Made it easier to extinguish fires by increasing the range which is detected.     - Optimized the plugin by just creating PreThink hooks when Extinguishers/Gascans are equipped.     - Optimized the plugin by non detecting the creation of prop_physics models.     - Stopped setting freezerspray glow on common infected which already have a glow enabled.  i.4 (01-Dec-2011)     - Fixed players getting stuck when an Extinguisher is cleaved and they are picking it up.  ane.iii (01-Dec-2011)     - Added Extinguishers to these maps: Crash Course, Death Toll, Dead Air, Blood Harvest, Cold Stream.     - Added Russian translations - Cheers to "disawar1".     - Added cvar l4d_extinguisher_incap so the Extinguisher can be used when incapacitated.     - Added a new translation to notify players they can use the Extinguisher while incapped, if enabled.     - Added a new translation when the Extinguisher is empty notifying players they tin refuel with gas cans.     - Fixed existence able to use the Extinguisher while ridden by a jockey.     - Fixed l4d_extinguisher_max cvar, limiting how many extinguishers can be used simultaneously.     - Stock-still the Extinguisher attachment position on Zoey.     - Hides the Extinguisher from a players personal view when not equipped.     - Made the translation files a requirement for the plugin to work fault free.     - Removed slot cvar. Picking upward Extinguishers with pistols uses that slot. Other items default to the primary slot.  i.2 (01-Jul-2011)     - Added refueling of dropped extinguishers.     - Added new translations for the above.  1.i (28-Jun-2011)     - Fixed the type cvar non setting correctly when combo cvar was enabled.     - Removed bad spawns from the data config.  ane.0 (26-Jun-2011)     - Initial release.
Compiling:
  1. Put the plugins .sp file into your scripting folder and compile the plugin.
Installation:
  1. Download the .zip and extract the files to their corresponding folders in your servers \addons\sourcemod\ folder.
  2. (L4D2 just) Scavenge Score Fix - Gascan Pouring - Go this plugin to prevent bugs when refueling with the gascan on certain maps/gamemodes.
  3. Install the Utilize Priority Patch plugin to prevent blocking +USE.
  4. Optional: Install the Attachment_API plugin to ready attachment positions breaking on model change.

Updating from i.2 or older:
  • You must download and update with the new translation files.
Updating from one.6 or older:
  • New cvars have been added: use the Cvar Configs Updater, or delete the onetime cvars config or manually add them.

Current Translations: English (en), Chinese (chi), Chinese Traditional (zho), Danish (da), High german (de), Russian (ru), Spanish (es).

__________________

Terminal edited by Silvers; 06-xx-2022 at 01:07.

Source: https://forums.alliedmods.net/showthread.php?p=1497010

0 Response to "Left 4 Dead 2 Flamethrower"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel