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] Gnome And Cola Shove Damage


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description

Allows both gnome and cola to do damage when shoving.
Useful for some mutations gameplays.

Features
  • Allows to configure the damage applied.
  • Allows to configure the damage type applied.
  • Allows to force shove action when pressing the fire button.
  • Allows to remove the shove penalty while holding a gnome/cola.
  • Allows to enable friendly fire.

Cvars

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

PHP Code:

// Allow the cola to do shove damage.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_cola_shove_dmg_allow "1"

// How much damage the cola does.
// -
// Default: "50"
// Minimum: "0.000000"
l4d2_cola_shove_dmg_damage "50"

// Which kind of damage type the cola does.
// Known values can be found here: https://developer.valvesoftware.com/wiki/Damage_types#Damage_type_table
// Add numbers greater than 0 for multiple options.
// Example: "136", enables DMG_CLUB and DMG_BURN.
// -
// Default: "128"
// Minimum: "0.000000"
l4d2_cola_shove_dmg_damagetype "128"

// Allow the cola to do friendly fire.
// 0 = OFF, 1 = ON.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_cola_shove_dmg_ff "0"

// Remove the shove penalty while holding the cola.
// Note: Can be exploited to remove melee penalty.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_cola_shove_dmg_noshovepenalty "0"

// Force the client to shove the cola when press the attack button.
// Note: This prevents the cola from being thrown.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_cola_shove_dmg_shoveonattack "1"

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

// Allow the gnome to do shove damage.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_gnome_shove_dmg_allow "1"

// How much damage the gnome does.
// -
// Default: "50"
// Minimum: "0.000000"
l4d2_gnome_shove_dmg_damage "50"

// Which kind of damage type the gnome does.
// Known values can be found here: https://developer.valvesoftware.com/wiki/Damage_types#Damage_type_table
// Add numbers greater than 0 for multiple options.
// Example: "136", enables DMG_CLUB and DMG_BURN.
// -
// Default: "128"
// Minimum: "0.000000"
l4d2_gnome_shove_dmg_damagetype "128"

// Allow the gnome to do friendly fire.
// 0 = OFF, 1 = ON.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_gnome_shove_dmg_ff "0"

// Remove the shove penalty while holding the gnome.
// Note: Can be exploited to remove melee penalty.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_gnome_shove_dmg_noshovepenalty "0"

// Force the client to shove the gnome when press the attack button.
// Note: This prevents the gnome from being thrown.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_gnome_shove_dmg_shoveonattack "1" 

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

Change Log

Spoiler


Known issues
  • The shove penalty can be exploited if the cvar is activated.

Notes
  • Enabling the "Shove on Attack" cvar, prevents the gnome/cola from being thrown. Hold "E" to drop.
  • You can get a list of damage types and their values here sdkhooks.inc / Valve.

To Do
  • Add friendly fire factor.
  • Better shove penalty handling.
  • Maybe add GetUserFlagBits check.

Thank you!

Related Plugins

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

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

Attached Files
File Type: sp Get Plugin or Get Source (l4d2_gnome_shove_dmg.sp - 18.6 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ę...