AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D1 & L4D2] Special Infected Shove Immunity [v1.0.0 | 23-September-2021] (https://forums.alliedmods.net/showthread.php?t=334434)

Marttt 09-23-2021 20:16

[L4D1 & L4D2] Special Infected Shove Immunity [v1.0.0 | 23-September-2021]
 
12 Attachment(s)
Description

This plugin turns special infected immune to survivors shove, preventing them to be staggered by survivor's shove.

Features
  • Allow configuring which SI should be immune to survivor's shove.

Cvars

A configuration file named "l4d_si_shove_immunity.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_si_shove_immunity_enable "1"

// Which special infected should be immune to survivors shove.
// 1 = SMOKER, 2 = BOOMER, 4 = HUNTER, 8 = SPITTER, 16 = JOCKEY, 32 = CHARGER, 64 = TANK.
// Add numbers greater than 0 for multiple options.
// Example: "127", turns all SI immune to survivors shove.
// -
// Default: "127"
// Minimum: "0.000000"
// Maximum: "127.000000"
l4d_si_shove_immunity_si "127" 

Related Game Cvars
  • z_charger_allow_shove => L4D2 only. Allow charger to be shoved? 0 = No, 1 = Yes. (default: 0)

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

Change Log

Spoiler


Notes
  • Tanks are already immune by game design.
  • L4D2 only. To enable Charger to be shoved set the z_charger_allow_shove game cvar to 1.

Thank you!

Related Plugins

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

Requirements

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

Tank Rush 09-23-2021 20:59

Re: [L4D1 & L4D2] Special Infected Shove Immunity [v1.0.0 | 23-September-2021]
 
Tested on my server and no errors, nice plugin Marttt!


All times are GMT -4. The time now is 13:53.

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