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] Survivor Respawn


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
[L4D1 AND L4D2] Survivor Respawn


This plugin is written about the original Mortiegama's Survivor Respawning code. At first I just wanted to make some basic changes, but checking the plugin posts I saw that there were several proposals for the plugin so I decided to make these changes for myself, and then I added other features that seemed useful to me.

Unlike the original plugin, this plugin has translations, player respawn commands on your crosshair, countdown returns on the screen, doesn't reset the player statistics when it respawn, adds a section to the main administrator menu, how much support for Left 4 Dead 1 is available, added double reappearance corrections, it removes the player's body that has reappeared automatically (Left 4 Dead 2) this to prevent bugs with the defibrillator, new specific Cvars for L4D1 and L4D2, among other features.

Description

This plugin offers the possibility that when a player dies, a timer is created that will respawn automatically, in case this player has not already been rescued or taken a bot.

Add to the main administrator menu a section to appear players in the crosshair, or also an administrator can respawn one or several players in your crosshair with command.
(This plugin has only been designed for cooperative mode and therefore has only been tested in cooperative mode, it has also only been tested with SuperVersus version 1.8.15.5 for Left 4 Dead 1/2)

Commands
!respawn Respawn Target/s At Your Crosshair.
!respawnmenu Create A Menu Of Clients List And Respawn Targets At Your Crosshair.
Admin level required ADMFLAG_BAN

Credits

Mortiegama for his original code and idea.
Dragokas And SilverShot for their Respawn Statistics Fixer code.
AtomicStryker for his code in SM Respawn command.
Thank you very much for theirs plugins and original ideas.

Current languages
- Spanish
- English

ConVars

PHP Code:

// Respawn bots if is dead in case of using Take Over.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_survivorrespawn_botreplaced "1"

// Amount of times a Survivor can respawn before permanently dying (Def 2)
// -
// Default: "2"
// Minimum: "0.000000"
l4d_survivorrespawn_deathlimit "2"

// Enables Survivors to respawn automatically when incapped and/or killed (Def 1)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_survivorrespawn_enable "1"

// Allows Bots to respawn automatically when incapped and/or killed (Def 1)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_survivorrespawn_enablebot "1"

// Survivors will be killed when hanging and respawn afterwards (Def 1)
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_survivorrespawn_hanging "0"

// How many seconds till the Survivor is killed while hanging (Def 25)
// -
// Default: "25"
// Minimum: "0.000000"
l4d_survivorrespawn_hangingdelay "25"

// How many seconds till the Survivor is killed after being incapacitated (Def 25)
// -
// Default: "25"
// Minimum: "0.000000"
l4d_survivorrespawn_incapdelay "25"

// Survivors will be killed when incapped and respawn afterwards (Def 1)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_survivorrespawn_incapped "1"

// Enables the respawn limit for Survivors (Def 1)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_survivorrespawn_limitenable "1"

// Amount of buffer HP a Survivor will respawn with (Def 30)
// -
// Default: "30"
// Minimum: "0.000000"
l4d_survivorrespawn_respawnbuffhp "30"

// Amount of HP a Survivor will respawn with (Def 70)
// -
// Default: "70"
// Minimum: "0.000000"
l4d_survivorrespawn_respawnhp "70"

// How many seconds till the Survivor respawns (Def 10)
// -
// Default: "10"
// Minimum: "0.000000"
l4d_survivorrespawn_respawntimeout "10"

// Save player statistics if is have died.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_survivorrespawn_savestats "1"

// Which is first slot weapon will be given to the Survivor (1 - Autoshotgun, 2 - M16, 3 - Hunting Rifle, 4 - None)
// -
// Default: "1"
// Minimum: "1.000000"
// Maximum: "4.000000"
l4d_survivorrespawn_firstweapon "1"

// Which is second slot weapon will be given to the Survivor (1 - Dual Pistol, 4 - None)
// -
// Default: "1"
// Minimum: "1.000000"
// Maximum: "4.000000"
l4d_survivorrespawn_secondweapon "1"

// Which is thrown weapon will be given to the Survivor (1 - Moltov, 2 - Pipe Bomb, 4 - None)
// -
// Default: "1"
// Minimum: "1.000000"
// Maximum: "4.000000"
l4d_survivorrespawn_thrownweapon "1"

// Which prime health unit will be given to the Survivor (1 - Medkit, 3 - None)
// -
// Default: "1"
// Minimum: "1.000000"
// Maximum: "3.000000"
l4d_survivorrespawn_primehealth "1"

// Which secondary health unit will be given to the Survivor (1 - Pills, 3 - None)
// -
// Default: "1"
// Minimum: "1.000000"
// Maximum: "3.000000"
l4d_survivorrespawn_secondaryhealth "1" 

Installation

1 - Click "Get Plugin" and put the "Survivor Respawn.smx" file into your server or game \addons\sourcemod\plugins\ folder.
2 - Click Get "SurvivorRespawn.phrases.txt" file and put in \addons\sourcemod\translations
3 - Click Get "SurvivorRespawn.txt" file and put in \addons\sourcemod\gamedata

Attached Files
File Type: sp Get Plugin or Get Source (Survivor Respawn.sp - 32.6 KB)
File Type: txt SurvivorRespawn.phrases.txt (1.5 KB)
File Type: txt SurvivorRespawn.txt (1.7 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ę...