[L4D2] Last resource
Description:
Every time a Survivor becomes helpless, there is absolutely nothing he can do. Not anymore.
When a survivor gets helpless, he will be able to 'yell' or scream as his last resource to get rid of his enemies. On every yell, all SI within the specified radius will be shoved and burned. This will release the survivor from any dangerous situation. The yell will not always work, since, it is based on chances or simply, luck.
But, what about infected? Well, they also have a yell as their last resource, but it only applies when they die.
The default Key to yell is the SHIFT key. But, you can disable it or add a secondary key.
CVARS:
Code:
// Tell the players about the feature
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_last_resource_advert "1"
// Specify the secondary key for yelling
// -
// Default: ""
l4d2_last_resource_bind_key_string ""
// Chance of gaining the yell power. (1: 100%, 2 : 50%, 3: 33%, etc)
// -
// Default: "3"
// Minimum: "1.000000"
l4d2_last_resource_chance "3"
// Enable yelling when being choked by smoker?
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_last_resource_choked "1"
// Allow the SHIFT key to be the default key of yelling
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_last_resource_default_key "1"
// Infected not affected by the yell, separated by comas (tank, spitter, charger, jockey, hunter, smoker, boomer)
// -
// Default: "tank"
l4d2_last_resource_exclude "tank"
// Ignite the special infected around when a survivor yells?
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_last_resource_ignite "1"
// Chance to ignite the special infected when yelling
// -
// Default: "3"
// Minimum: "1.000000"
l4d2_last_resource_ignite_chance "3"
// Enable yelling when incapacitated?
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_last_resource_incapped "1"
// Enable yelling on infected?
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_last_resource_infected "1"
// Interval or cooldown between tries to yell
// -
// Default: "1.0"
// Minimum: "0.100000"
l4d2_last_resource_interval "1.0"
// Enable yelling when catched by a jockey?
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_last_resource_jockeyed "1"
// Enable yelling when pounced by hunter?
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_last_resource_pounced "1"
// Power of every yell
// -
// Default: "500.0"
// Minimum: "0.000000"
l4d2_last_resource_power "500.0"
// Enable yelling when pummeled by charger?
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_last_resource_pummel "1"
// Maximum radius of every yell
// -
// Default: "180.0"
// Minimum: "0.000000"
l4d2_last_resource_radius "180.0"
// Bind a secondary key for yelling?
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_last_resource_radius_bind_key "0"
// Enable yelling on survivors?
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_last_resource_survivor "1"
Installation:
-Put the l4d2_last_resource.smx file on your sourcemod/plugins folder.
-Put the l4d2lastresource.txt file on your sourcemod/gamedata folder.
Commands:
-"sm_yell": Will yell if it is possible and the luck is in your side.
-"sm_forceyell": Will force a yell event if it isn't enabled (Admin)
TO DO:
-Nothing, make a suggestion
Known Bugs:
-If a survivor yells, hunters wont be shoved.
Changelog:
Code:
1.0.0
-Initial Release