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] Door Lock With ReadyUp Mode - v1.0 | Lock Saferoom Door Till Players Are Ready


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
About:
  • The plugin will block saferoom doors and freeze players in first chapters
  • Players will not be able to leave the safe area until all players are loaded and are ready
  • You can adjust the time to wait for loaders, the time to unlock the safe area and the time to wait for unready players
  • You can set a percentage for example if more than 60% by default are ready, safe area will unlock
  • You can customize doors lock/unlock through cvar


Description:
  • This plugin will block saferooms, and freeze players in first chapters, preventing anyone from leaving the safe area until all players has been loaded and are ready to play.


Thanks:
  • Silvers: For Reviewing and General Fixes.
  • HarryPotter: For his lockdown plugin.


Image:

68747470733a2f2f692e6962622e636f2f483452


Video:
  • Not Yet


Commands:
  • sm_lock > Force Door To Lock (Admins Only)
  • sm_unlock > Force Door To Unlock (Admins Only)
  • sm_ready > To Get Ready For ReadyUp Mode
  • sm_unready > To Get Unready For ReadyUp Mode


Cvars:
  • A file named "L4D2_Door_Lock.cfg" will be created in "\cfg\sourcemod" folder.

PHP Code:

// This file was auto-generated by SourceMod (v1.11.0.6911)
// ConVars for plugin "L4D2_Door_Lock.smx"


// Enable L4D2 Door Lock Plugin
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_doorlock_plugin_enable "1"

// Turn On The Plugin In These Game Modes. 0 = All, 1 = Coop, 2 = Survival, 4 = Versus, 8 = Scavenge.
// -
// Default: "0"
l4d2_doorlock_game_mode "0"

// How Long You Want To Lock The Safe Area (In Seconds)
// -
// Default: "12"
l4d2_doorlock_countdown "12"

// How Long Plugin Waits For Loaders Before Giving Up On Them (In Seconds)
// -
// Default: "30"
l4d2_doorlock_loaders_time "30"

// Preventing Rounds From Start Unless Players Exit Safe Area
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_doorlock_block_round_start "1"

// Set A Glow For The Saferoom Doors
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_doorlock_glow_enable "1"

// Set The Glow Range For Saferoom Doors
// -
// Default: "500"
l4d2_doorlock_glow_range "500"

// Set Saferoom Lock Glow Color, (0-255) Separated By Spaces.
// -
// Default: "255 0 0"
l4d2_doorlock_lock_glow_color "255 0 0"

// Set Saferoom Unlock Glow Color, (0-255) Separated By Spaces.
// -
// Default: "0 255 0"
l4d2_doorlock_unlock_glow_color "0 255 0"

// Enable Ready/Unready Feature.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_doorlock_enable_ready_mode "1"

// Set The Minimum Percentage Required For Ready Players To Start The Round
// -
// Default: "60.0"
l4d2_doorlock_readyup_percent "60.0"

// How Long Plugin Waits For Unready Players Before Giving Up On Them (In Seconds)
// -
// Default: "300"
l4d2_doorlock_readyup_time "300"

// Display A Hint Text To Show Players How To Use ReadyUp Commands
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_doorlock_readyup_hinttext "1"

// Set How Many Times Players Are Allowed To Use Unready Per Round.
// -
// Default: "2"
l4d2_doorlock_unready_counts "2" 


Requirements:

Installation:
  • Make sure you have first installed left4dhooks.
  • Put the "L4D2_Door_Lock.smx" file in your "\addons\sourcemod\plugins" folder.


Updates:
Code:

  • 26-12-2022 > Version 1.0: Initial release



Attached Files
File Type: sp Get Plugin or Get Source (L4D2_Door_Lock.sp - 30.3 KB)
File Type: smx L4D2_Door_Lock.smx (15.8 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ę...