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] MixMap - (1.1) [22/Oct/2023]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy


About:
  • Random map at the map transition.
  • Support player item transition. (using valve landmark and changelevel entity)
  • Support setting the maximum of random map that can be triggered throughout the process from first map to final map.
  • Support add map to random map list setting.

Requirements:
  • Sourcemod 1.11+

Admin Commands: (requires "z" flag)
PHP Code:

// add map to random map list (If the required requirements are met)
sm_rm_addconfig
// reload random map list
sm_rm_reload 

CVars:
PHP Code:

// 0 - plugin disable, 1 - plugin enable
random_map_enable 1

// Chance of random map in map transition
random_map_chance 0.5

// 0 = Use the entire random list, 1 = Use only official maps from random list
random_map_only_official 1

// Maximum number of random maps that can be triggered throughout the entire process from the first map to the final map
random_map_max_mix_count 

Known Issue:
  • If the item carried during the transition do not exist on the map after the transition, they will disappear or report an error. (ex. Melee weapons not unlocked on post-transition map)
  • If you unload the plugin on the way to use it, it will cause the safehouse items to be misplaced during the first transition to the map.
  • Due to the mismatch between the size of the safe house after triggering the random transition and the size of the safe house before the transition, some players will be outside the map or outside the safe house. (this plugin use team warp to temporarily avoid this issue)

ChangeLog:
Code:

1.1 - use warp_to_start_area command avoid transitioned to outside safe house.
1.0 - Initial release.

Thanks:
  • Silvers - Source of the IsFirstMapInScenario method (in Left 4 DHooks Direct)
  • sorallll - Some help on the code and fix player_transitioned event not working properly in 4+ player.

Installation:
  • Download "l4d2_mix_map.cfg" and put into your servers \addons\sourcemod\data\ folder.
  • Download "l4d2_mix_map.txt" and put into your servers \addons\sourcemod\gamedata\ folder.
  • Download "l4d2_mix_map.sp" and put into your servers \addons\sourcemod\scripting\ folder.
  • Compiling plugin and put into your servers \addons\sourcemod\plugins\ folder.

Attached Files
File Type: sp Get Plugin or Get Source (l4d2_mix_map.sp - 21.2 KB)
File Type: txt l4d2_mix_map.txt (2.2 KB)
File Type: cfg l4d2_mix_map.cfg (2.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ę...