View Single Post
Author Message
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 06-06-2021 , 17:04   [L4D1 & L4D2] Miss Shot/Shove On Tongue Grab [v1.0.0 | 06-June-2021]
Reply With Quote #1

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.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_miss_tongue_grab.sp - 189 views - 16.9 KB)
__________________

Last edited by Marttt; 02-12-2023 at 15:37.
Marttt is offline