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

[CS:GO] Map Weapon Randomizer (v1.0, 19.10.2018)


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Map Weapon Randomizer

This plugin automatically replaces all weapon spawns on any map with random weapons. Grenades are excluded. The list of weapons can be changed by modifying the WEAPONS_LIST array at the start of the script. By default all primary weapons are included.

How it works

At the start of the map, this plugin will find all weapon spawns by searching for weapon_* entities, saves their locations, and deletes them. Then, at the start of every round, the plugin will spawn a weapon into the saved locations.

Note that since creating weapons directly using weapon_* entities does not work anymore, this plugin spawns weapons using the fake client method, where it spawns a fake client, gives a weapon to it, and teleports it to the desired location on the map. This likely means that there has to be at least 1 free slot on the server for the plugin to work.

Features

Code:

- Randomize weapon spawns either at the start of the map or every round.
- Snap spawned weapons' angles to 90 degrees for a better look

CVAR list

Code:

mwr_randomize_every_round 0        Randomize weapons every round if enabled, otherwise randomize once at the start of the map.
mwr_snap_spawn_angles 1                Round spawned weapons' angles to the nearest 90 degrees for a more uniform look. Takes effect after a map change.
mwr_debug 0                        Enable debug console messages.

Changelog

Code:

19.10.2018 (v1.0)

* Initial release.


Attached Files
File Type: sp Get Plugin or Get Source (map_weapon_randomizer.sp - 5.4 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ę...