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

[L4D/Any?] Round Start Music Player (infinite tracks)


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description:
This plugin is intended to play one random music on each new map start (the same one music will be played on round re-start).
Only one song will be downloaded to client each map start, so it will reduce client connection delay.
In this way, you can install infinite number of music tracks on your server without sacrificing connection speed (compared to: if you would download all files at once).

Plugin will display menu to clients on each round start (can be disabled by "l4d_music_mapstart_showmenu" ConVar):
- greetings and congratulation lines (see translation file)
- 5. Stop music
- 6. Play music again
- 7. Volume
- 8. Next track (in debug mode)
Commands:
sm_music - open music menu
sm_music <arg> - play specific music by id, where arg should be 0 .. to max or -1 to play next index (Use together with #DEBUG 1 mode only!)
sm_music_update - populate music list from config (use, if you replaced config file without server/plugin restart).
Settings (ConVars):
l4d_music_mapstart_enable - Enable plugin (1 - On / 0 - Off)
l4d_music_mapstart_delay (default - 17) - Delay (in sec.) between player join and playing the music
l4d_music_mapstart_showmenu - Show !music menu on round start? (1 - Yes, 0 - No)

Music preparation & Optimization & Installation & Testing
Spoiler


Known bugs:
- sometimes "PlayAgain" button is not working. You need to press it several times. (Reason is unknown)
- some default game sounds interrupt music sound on map start, so you need to set large enough value for "l4d_music_mapstart_delay" ConVar (like > 10, by default == 17) (Walkaround is unknown)
TODO:

Add cookie for saving individual client's preferences for:
- Volume level
- Show this menu on start
- Play music on start
Credits:
- Lux - for some suggestions on sound channel

Attached Files
File Type: zip MusicMapStart_v0.3.zip (6.6 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...