AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Spitter Dies After Spit (SDAS) [v1.2.1 | 29-April-2021] (https://forums.alliedmods.net/showthread.php?t=314715)

Marttt 03-03-2019 20:29

[L4D2] Spitter Dies After Spit (SDAS) [v1.2.1 | 29-April-2021]
 
28 Attachment(s)
L4D2 ONLY

Description

This plugin is based on Spitter Auto Kill by diorfo, with some improvements.

It kills the Spitter some seconds later after spitting.

Features
  • Allow setting how long the spitter lives after spitting.
  • Allow setting immunity based on client flags.
  • Allow setting how the messages should be sent to the client. (chat/hint/instructor)
  • Allow setting a sound for the countdown.

Preview



Cvars

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

PHP Code:

// How long (in seconds) will Spitter have after spitting before being killed by the plugin.
// -
// Default: "10"
// Minimum: "1.000000"
l4d2_sdas_alive_time "10"

// Enables/Disables the plugin behavior on Spitter bots.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_sdas_bots "1"

// Spitter countdown sound after spit.
// Empty = OFF.
// -
// Default: "buttons/blip1.wav"
l4d2_sdas_countdown_sound "buttons/blip1.wav"

// Display type for the "Dead By Spit" message.
// 0 = OFF, 1 = CHAT, 2 = HINT.
// Add numbers greater than 0 for multiple options.
// Example: "3", displays the message in CHAT and as a HINT.
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "3.000000"
l4d2_sdas_dead_by_spit_msg "3"

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

// Players with these flags are immune to the plugin behaviour.
// Empty = none.
// Known values at "\addons\sourcemod\configs\admin_levels.cfg".
// Example: "az", will apply immunity to players with "a" (reservation) or "z" (root) flag.
// -
// Default: ""
l4d2_sdas_flags ""

// Display type for the "Spit Countdown" message.
// 0 = OFF, 1 = CHAT, 2 = HINT, 4 = INSTRUCTOR HINT.
// Add numbers greater than 0 for multiple options.
// Example: "3", displays the message in CHAT and as a HINT.
// -
// Default: "5"
// Minimum: "0.000000"
// Maximum: "7.000000"
l4d2_sdas_spit_countdown_msg "5"

// Display type for the "Spit" message.
// 0 = OFF, 1 = CHAT, 2 = HINT, 4 = INSTRUCTOR HINT.
// Add numbers greater than 0 for multiple options.
// Example: "3", displays the message in CHAT and as a HINT.
// -
// Default: "5"
// Minimum: "0.000000"
// Maximum: "7.000000"
l4d2_sdas_spit_msg "5" 

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

Change Log

Spoiler


Current Translations
  • en - English
  • es - Spanish
  • hu - Hungarian
  • pt - Brazilian Portuguese
  • pt_p - Portuguese
  • ro - Romanian

Notes
  • SDAS stands for Spitter Dies After Spit.
  • Spitter class is only available in L4D2.
  • There is no INSTRUCTOR HINT option for l4d2_sdas_dead_by_spit_msg cvar because Instructor Hints do not display when the client is dead.

To Do
  • Create a configuration to customize the instructor hint stages (stage, color, icon, shake, pulse).

Thank you!

Related Plugins

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

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

Psyk0tik 03-04-2019 17:24

Re: [L4D2] Spitter Dies After Spit (SDAS) [v1.0.4 | 04-March-2019]
 
I disagree with the use of a cvar to determine immunity flags. Please consider using CheckCommandAccess(). You can use an arbitrary command as an override.

Example:

PHP Code:

CheckCommandAccess(client"sdas_override"ADMFLAG_SLAYfalse); 

Usage:

PHP Code:

Overrides
{
        
"sdas_override"        "abcdefz"



Striker black 02-02-2020 00:30

Re: [L4D2] Spitter Dies After Spit (SDAS) [v1.1.6 | 13-July-2019]
 
Hello, I get this error

Code:

L 02/02/2020 - 00:05:56: SourceMod error session started
L 02/02/2020 - 00:05:56: Info (map "c11m3_garage") (file "errors_20200202.log")
L 02/02/2020 - 00:05:56: [l4d2_sdas.smx] Error. File "buttons/blip1.wav" not found in "sound" folder. The plugin will use the default value "buttons/blip1.wav".
L 02/02/2020 - 00:23:23: Error log file session closed.
L 02/02/2020 - 00:23:43: SourceMod error session started
L 02/02/2020 - 00:23:43: Info (map "c2m1_highway") (file "errors_20200202.log")
L 02/02/2020 - 00:23:43: [l4d2_sdas.smx] Error. File "buttons/blip1.wav" not found in "sound" folder. The plugin will use the default value "buttons/blip1.wav".
L 02/02/2020 - 00:23:43: [l4d2_sdas.smx] Error. File "buttons/blip1.wav" not found in "sound" folder. The plugin will use the default value "buttons/blip1.wav".
L 02/02/2020 - 00:23:44: Error log file session closed.
L 02/02/2020 - 00:23:46: SourceMod error session started
L 02/02/2020 - 00:23:46: Info (map "c2m1_highway") (file "errors_20200202.log")
L 02/02/2020 - 00:23:46: [l4d2_sdas.smx] Error. File "buttons/blip1.wav" not found in "sound" folder. The plugin will use the default value "buttons/blip1.wav".
L 02/02/2020 - 00:23:47: Error log file session closed.
L 02/02/2020 - 00:23:48: SourceMod error session started
L 02/02/2020 - 00:23:48: Info (map "c2m1_highway") (file "errors_20200202.log")
L 02/02/2020 - 00:23:48: [l4d2_sdas.smx] Error. File "buttons/blip1.wav" not found in "sound" folder. The plugin will use the default value "buttons/blip1.wav".


Striker black 02-02-2020 18:05

Re: [L4D2] Spitter Dies After Spit (SDAS) [v1.1.6 | 13-July-2019]
 
Hi, I'm using linux and these messages keep coming out :shock:

Quote:

L 02/02/2020 - 17:59:34: Error log file session closed.
L 02/02/2020 - 17:59:36: SourceMod error session started
L 02/02/2020 - 17:59:36: Info (map "c2m1_highway") (file "errors_20200202.log")
L 02/02/2020 - 17:59:36: [l4d2_sdas.smx] Error. File "buttons/blip1.wav" not found in "sound" folder. The plugin will use the default value "buttons/blip1.wav".
L 02/02/2020 - 17:59:37: Error log file session closed.
L 02/02/2020 - 17:59:38: SourceMod error session started
L 02/02/2020 - 17:59:38: Info (map "c2m1_highway") (file "errors_20200202.log")
L 02/02/2020 - 17:59:38: [l4d2_sdas.smx] Error. File "buttons/blip1.wav" not found in "sound" folder. The plugin will use the default value "buttons/blip1.wav".

KasperH 09-30-2020 05:48

Re: [L4D2] Spitter Dies After Spit (SDAS) [v1.1.6 | 13-July-2019]
 
1 Attachment(s)
Added Hungarian. :bee:

Marttt 04-24-2021 12:57

Re: [L4D2] Spitter Dies After Spit (SDAS) [v1.2.0 | 24-April-2021]
 
Plugin updated. (code rework)

I recommend updating the translation .txt file and deleting the .cfg file to auto-generate again or replacing it with the one in from the main post.

Code:

1.2.0 (24-April-2021)
    - New version released.
    - Added Hungarian (hu) translation. (thanks to "KasperH")


Kid_Bandes 04-25-2021 02:18

Re: [L4D2] Spitter Dies After Spit (SDAS) [v1.2.0 | 24-April-2021]
 
Nice one, at least those spitter bots are now more useful instead of running away after spit :D

CryWolf 04-29-2021 05:42

Re: [L4D2] Spitter Dies After Spit (SDAS) [v1.2.0 | 24-April-2021]
 
1 Attachment(s)
Added Romanian.

ddd123 07-31-2021 11:15

Re: [L4D2] Spitter Dies After Spit (SDAS) [v1.2.0 | 24-April-2021]
 
Would've been better if spitter take damage (maybe 20~25 HP?) after shoot instead of forcing suicide?
I mean, the spitter has second lowest health on special infected

Marttt 08-01-2021 11:16

Re: [L4D2] Spitter Dies After Spit (SDAS) [v1.2.0 | 24-April-2021]
 
The purpose of this plugin is to force people to release the spitter.

Fits well in a 10v10 server that I'm used to play, cause there is a limit of 2 spitters alive at the same time and the spit reloading time is too high to wait for a recharge.


All times are GMT -4. The time now is 03:21.

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