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

[TF2] Dispenser Music Choice - Rex Subplugins


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Hi!

It's my first post here, so don't judge strictly :)
Also, my English isn't so good as it can be, so I'm sorry for some grammatic mistakes if they have place to be here.

Updated the old one plugin (ordinary post - https://forums.alliedmods.net/showthread.php?p=1982288) with some new features.

1) New commands:
1.1) sm_dm <number> or !dm <number> - select the current song for your dispenser if it's built. Song list based on config further down the post. Default Flag - Reservation.
1.2) sm_dmtarget @player <number> or !dmtarget @player <number> - the same as previous one, but now you can select dispenser music for other players (only for 1 per time). Default Flag - Cheats.
1.3) sm_dmall <number> or !dmall <number> - select music for all dispensers on map. Will not work, if dispenser has no owner, forced by RTD or disabled by the owner with !dispenser command. Default Flag - Cheats.
1.3.1) CVAR sm_dmusic_delay (def = 30.0) - players can't select music with !dm after someone used !dmall for this amout of seconds.

2) Now plugin is fully compatible with backpackdispenser and multiple_buildings plugins.
3) Music removes after end of the round or dispenser owner's death (and if dispenser was destoyed).

4) !dm can be used only if:
4.1) You are alive
4.2) You are engineer
4.3) You have build the dispenser
4.4) You turned on !dispenser command, which allows playing music

5) If some dispensers are in the one area at the same moment, admin can use !dmall to select one melody for all of them, which will be bassboosted for as many dispensers as are beside each other.

----
Old ones:
1) sm_dispenser or !dispenser - Allow your dispensers playing music. Rebuild your dispenser after changing this setting.
2) Songs are going one by one.

----
Some bugs:
1) !dm_all will not work, if there are more than 5 dispensers in one place at the same moment.
2) The same for !dm and !dmtarget if you use multiple_buildings plugin.
3) Rare error: !dm, !dmtarget, !dmall only remove sounds without playing the selected ones. Just rewrite the command.

Config goes to addons/sourcemod/configs. Don't forget to add something!
Plugin goes to addons/sourcemod/plugins.

Also, if your server is running Dispenser Music plugin, you must remove it to make this plugin works correctly (or you will have 2 sounds in 1 dispenser at the same time)

Attached Files
File Type: cfg dispenser_music_rex.cfg (202 Bytes)
File Type: smx dispenser_music_rex.smx (11.8 KB)
File Type: sp Get Plugin or Get Source (dispenser_music_rex.sp - 16.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

×
×
  • Dodaj nową pozycję...