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

[L4D1 AND L4D2] HP Tank Multiplier


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
[L4D1 AND L4D2] HP Tank Multiplier

Although there are several Plugins to control the life of the Tank, I decided to do something personalized that would suit my tastes, also in this Plugin it tries to solve the problem of when the Tanks are burned, since even if they turn off anyway they die very quickly although do not take damage, this in L4D1. It also includes a version of the Colors code inside the plugin to be able to compile with the network compiler.

Description

When a Tank spawns this Plugin will count the number of survivors, including bots and real players (it can be configured), based on the result you get will bring the Tank to life, it will also gives maximum amount of time if the Tank is burning or depending of the configuration the Tank will be non-flammable, but will take damage if the fire touches him.
It also has a life indicator bar that has three ways to show the life of the Tank.
Maximum amount of life the tank can receive 65535 HP.
This Plugin has only been designed for coop mode and can also be combined with Machine's Super Tanks (Edited by me https://forums.alliedmods.net/showpo...&postcount=283).

ConVars
PHP Code:

// Enables/Disables The plugin. 0 = Plugin OFF, 1 = Plugin ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
director_enabled_plugin "1"

// Enables/Disables Display Tanks health in crosshair.
// 0 = Display HP OFF.
// 1 = Shows the state of health in percentage.
// 2 = Shows the state of health with numbering.
// 3 = Displays health status with bar and numbering
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "3.000000"
director_display_health "3"

// Enables/Disables Tank life status ads in chat.
// 0 = Ads OFF.
// 1 = Show full ads.
// 2 = Show only health status.
// 3 = Show only ignition status
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "3.000000"
director_enabled_ads "1"

// Basic amount of HP for the Tank.
// -
// Default: "15000"
// Minimum: "0.000000"
// Maximum: "65535.000000"
director_basic_tankhp "15000"

// Enables/Disables Ignition modes towards the Tank.
// 0 = Do Nothing.
// 1 = Allows the Tank not to catch fire but him takes damage if touches the fire.
// 2 = Allows the Tank to catch fire according to the amount of life his has.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "2.000000"
director_ignition_modes "2"

// Include bots to the multiplier.
// 0 = No include bots.
// 1 = Include bots.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
director_include_bots "1"

// Multiply Tank's HP if there are more four survivors or start from one survivor.
// 0 = Start multiplying from one.
// 1 = Start multiplying from four.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
director_survivor_multipler "0"

// Amount by which the HP of the Tank will be multiplied.
// -
// Default: "0.25"
// Minimum: "0.000000"
// Maximum: "1.000000"
director_tank_hpmultiplier "0.25" 

Installation

1 - Click "Get Plugin" and put the "l4d_multipler_tank_hp.smx" file into your server or game \addons\sourcemod\plugins\ folder.

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

×
×
  • Dodaj nową pozycję...