AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D1 & L4D2] Miss Shot/Shove On Tongue Grab [v1.0.0 | 06-June-2021] (https://forums.alliedmods.net/showthread.php?t=332885)

Marttt 06-06-2021 17:04

[L4D1 & L4D2] Miss Shot/Shove On Tongue Grab [v1.0.0 | 06-June-2021]
 
23 Attachment(s)
Description

Survivors can miss shots/shove while grabbed by a tongue.

I did this to turn Smoker into a more challenging enemy.

In vanilla game you can shoot/shove the Smoker for a while after being grabbed by it's tongue, sometimes that shot kills the Smoker.

With this plugin the Smoker will become invunerable from the victim shots/shove after being grabbed by tongue.

Features
  • Allow configuring a chance to miss the shots.
  • Allow configuring a chance to miss the shove.

Cvars

A configuration file named "l4d_miss_tongue_grab.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

PHP Code:

// Enable/Disable the plugin.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_miss_tongue_grab_enable "1"

// Chance to miss hits when the survivor is grabbed by tongue.
// 0 = OFF.
// -
// Default: "100.0"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d_miss_tongue_grab_shot_miss_chance "100.0"

// Chance to miss the shove when the survivor is grabbed by tongue.
// 0 = OFF.
// -
// Default: "100.0"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d_miss_tongue_grab_shove_miss_chance "100.0" 

Related Game Cvars
  • tongue_victim_accuracy_penalty => How much someone's accuracy suffers while being dragged by a tongue. (default: 0.133)

Admin Commands
  • sm_print_cvars_l4d_miss_tongue_grab => Print the plugin related cvars and their respective values to the console. (z flag required)

Change Log

Spoiler


Notes
  • The damage block only applies to damage from firearms.
  • The damage/shove block is also applied to other SI, commons and witches.

Post Reply
  • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

Installation
  • Put the "l4d_miss_tongue_grab.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.

Kid_Bandes 02-12-2023 06:04

Re: [L4D1 & L4D2] Miss Shot/Shove On Tongue Grab [v1.0.0 | 06-June-2021]
 
Thank Martt!


All times are GMT -4. The time now is 01:20.

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