Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

RSS[L4D2] Nerf Damage To Commons [v1.0.0 | 19-January-2021]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
L4D2 ONLY

Requires

Description

This plugin nerfes the damage that commons take from some weapons, that usually instant kill them even with high HP set (z_health cvar).

Currently, support the following weapons:
  • Rifle M60
  • Pistol Magnum
  • All Snipers
  • Chainsaw
  • All Melees (also customs)
  • Explosive Ammo
  • Incendiary Ammo

Features
  • Allow configuring which weapons should do insta-kill to commons.
  • Allow configuring which ammo type should do insta-kill to commons.
  • Allow configuring the damage factor (Normal/Incendiary/Explosive).
  • Automatically calculates the damage of the weapon.

Cvars

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

PHP Code:

// Nerf damage for 50cal.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_50cal "1"

// Default 50cal damage on common infecteds.
// 0 = OFF, 1 = ON.
// -
// Default: "50"
// Minimum: "0.000000"
l4d2_nerf_damage_common_50cal_damage "50"

// Nerf damage for Chainsaw.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_chainsaw "1"

// Apply difficulty and damage multiplier on non-headshot hits.
// Formula: z_non_head_damage_factor_<difficulty> * z_non_head_damage_factor_multiplier.
// Check "z_non_head_damage_factor_*" cvars for more info.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_damage_factor "1"

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

// Nerf damage for explosive ammo/melee flag.
// Stop staggering common zombies.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
l4d2_nerf_damage_common_explosive_ammo "1"

// Multiplier for explosive ammo/melee flag.
// -
// Default: "3.0"
// Minimum: "0.000000"
l4d2_nerf_damage_common_explosive_ammo_factor "3.0"

// Nerf damage for Hunting Rifle.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_hunting_rifle "1"

// Nerf damage for incendiary ammo/melee flag.
// Stop igniting common zombies.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
l4d2_nerf_damage_common_incendiary_ammo "1"

// Multiplier for incendiary ammo/melee flag.
// -
// Default: "2.0"
// Minimum: "0.000000"
l4d2_nerf_damage_common_incendiary_ammo_factor "2.0"

// Chance to do a insta kill (default behaviour).
// 0 = OFF.
// -
// Default: "5.0"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d2_nerf_damage_common_insta_kill_chance "5.0"

// Nerf damage for Baseball Bat.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_melee_baseball_bat "1"

// Nerf damage for Cricket Bat.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_melee_cricket_bat "1"

// Nerf damage for Crowbar.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_melee_crowbar "1"

// Nerf damage for Custom Melees.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_melee_custom "1"

// Default melee damage on common infecteds.
// -
// Default: "250"
// Minimum: "0.000000"
l4d2_nerf_damage_common_melee_damage "250"

// Nerf damage for Electric Guitar.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_melee_electric_guitar "1"

// Nerf damage for Fire Axe.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_melee_fireaxe "1"

// Nerf damage for Frying Pan.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_melee_frying_pan "1"

// Nerf damage for Golf Club.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_melee_golfclub "1"

// Nerf damage for Katana.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_melee_katana "1"

// Nerf damage for Knife.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_melee_knife "1"

// Nerf damage for Machete.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_melee_machete "1"

// Nerf damage for Pitchfork.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_melee_pitchfork "1"

// Nerf damage for Shovel.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_melee_shovel "1"

// Nerf damage for Tonfa.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_melee_tonfa "1"

// Nerf damage for minigun.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_minigun "1"

// Default minigun damage on common infecteds.
// 0 = OFF, 1 = ON.
// -
// Default: "32"
// Minimum: "0.000000"
l4d2_nerf_damage_common_minigun_damage "32"

// Nerf damage for Pistol Magnum.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_pistol_magnum "1"

// Nerf damage for Rifle M60.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_rifle_m60 "1"

// Nerf damage for AWP Sniper.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_sniper_awp "1"

// Nerf damage for Military Sniper.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_sniper_military "1"

// Nerf damage for Scout Sniper.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_sniper_scout "1"

// Enable wounds only when the zombie is going to die.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_nerf_damage_common_wound_dead "1" 

Related Game Cvars
  • z_health => Starting health for commons zombies. (default: 50)
  • chainsaw_damage => Chainsaw damage. (default: 100)
  • z_non_head_damage_factor_easy => Damage to zombie from non-headshots is multiplied by this factor. (default: 2x)
  • z_non_head_damage_factor_normal => Damage to zombie from non-headshots is multiplied by this factor. (default: 1x)
  • z_non_head_damage_factor_hard => Damage to zombie from non-headshots is multiplied by this factor. (default: 0.75x)
  • z_non_head_damage_factor_expert => Damage to zombie from non-headshots is multiplied by this factor. (default: 0.5x)
  • z_non_head_damage_factor_multiplier => Damage to zombie from non-headshots is multiplied by this factor. (default: 1x)

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

Change Log

Spoiler


Notes
  • The damage of some weapons are calculated by weapon scripts. (e.g.: left4dead2/scripts/rifle_m60.txt) - [Check this plugin for more info]
  • Chainsaw damage is calculated by the chainsaw_damage cvar.
  • Melee and Mounted Guns have specific cvars for damage control, set as vanilla damage by default.
  • There is a cvar to enable the vanilla damage calculation. (Formula: difficulty * multiplier)

Known Issues
  • Not plugin related - the z_health cvar seems to affect the damage dealt by Mounted Guns (50cal and Minigun) on SI. When set with higher values, the damage taken is also increased.

To Do
  • Turn plugin compilable in the forum (aka "Get Plugin").

Thank you!

Related Plugins

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

Requirements

Installation
  • Put the "l4d2_nerf_damage_common.smx" file (you have to compile by yourself) in your "\addons\sourcemod\plugins\" folder.

Attached Files
File Type: sp Get Plugin or Get Source (l4d2_nerf_damage_common.sp - 46.2 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...