- Players can press/hold RELOAD or ZOOM keys to pour gascans onto the ground.
- The oil left on the ground can be ignited by bullets, explosions and fires.
- Number of pours can be limited, forcing the gascan to be dropped after pouring.
- The dropped gascan will explode when damaged. See the l4d2_pourgas_limit_* cvars.
- The oil starts to fade after 1 minute and takes 20 seconds to disappear.
- Any unexploded gascans will be removed after 1min 20sec.
- The games cvar inferno_flame_lifetime sets how long Molotovs, Gascans and Firework Crates burn for.
- If you want to change, save sm_cvar inferno_flame_lifetime 15 to your servers cfgsserver.cfg.
- 15 is the default value, but you can change. This plugin uses the Molotov/Gascan inferno entity, causing the burn time to be decided by this cvar.
- Game Bug: Fire particles disappear after 15 seconds regardless of the cvar inferno_flame_lifetime. Damage still occurs until the time ends.
- Dont Fear The Reaper - Lots of help with the idea, suggestions and testing.
- disawar1 - Helped testing, translation idea and Russian translation.
// 0=Plugin off, 1=Plugin on.l4d2_pourgas_allow "1"// Chain reaction time. When a puddle is hurt by fire, create it's own fire after this many seconds.l4d2_pourgas_chain "0.5"// How much a player is hurt in the fire. Happens multiple times per second.l4d2_pourgas_damage "0.1"// Display hint when picking up gascans? 0=Off, 1=Chat text, 2=Hint box, 3=Instructor hint (Prints to Chat if clients have instructor hints off), 4=Instructor hint (Hint Box).l4d2_pourgas_hint "2"// How many times to display hints, count is reset each map/chapter.l4d2_pourgas_hints "2"// 0=No, 1=Yes. Should players hold down the RELOAD|ZOOM key to pour?l4d2_pourgas_hold "0"// 0=Infinite. Drop the gascan after this number of pours.l4d2_pourgas_limit "4"// 0=Explosion Off. The dropped gascan explosion distance to hurt players.l4d2_pourgas_limit_dist "200"// 0=Explosion Off. When using the l4d2_pourgas_limit cvar, the dropped gascan will explode causing this much damage at the center.l4d2_pourgas_limit_hurt "50"// 0=Off, The range to stumble players from dropped gascan explosions.l4d2_pourgas_limit_stum "1"// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).l4d2_pourgas_modes ""// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = off).l4d2_pourgas_modes_off ""// Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.l4d2_pourgas_modes_tog "0"// Prevent pouring for this many seconds after completing a pour.l4d2_pourgas_timeout "0.4"// pourgas plugin version.l4d2_pourgas_versionCompiling:
- Put the SDKHooks include into your addonssourcemodscriptinginclude folder.
- Put the plugins .sp file into your scripting folder and compile the plugin.
- This plugin requires the SDKHooks extension.
- Download the .zip and extract the files to their respective folders in your servers addonssourcemod folder.
- This plugin was compiled with SDKHooks version 2.1.
Wyświetl pełny artykuł