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:S] Custom Weapon Models Menu


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
I developed this plugin a few years ago back when I still ran some CS:S servers. No new features will be added to this plugin and only urgent bugs will be fixed.

Description

Allows server owners to install custom weapon skins on their server and provides a simple yet powerful menu so players can easily equip them. Supports World and View models or choose to use just one of these if you wish. Also lets users decide if they want to see the custom model they have equipped in first person. Supports Zombie Mod (use weapon_claws as the keyvalue category for that).
Uses morecolors, smartdm for processing the download list (disabled by default). Also changes the model of dropped weapons and thrown grenades if the player responsible for that has a skin equipped for that weapon.

Supports MySQL only.

Screenshots

Cvars
  • sm_wm_accessmethod "public" - Method used to restrict clients from openning the weapon models menu. Choices: flag group public
  • sm_wm_accessflag "" - Flag required to open weapon models menu
  • sm_wm_accessgroup "vip" - Group the client must be in to open weapon models menu
  • sm_wm_chatcommands "!weaponmodels !weapons" - Words players must type to open the weapon menu
  • sm_wm_vmodelsenabled "1" - Enables Viewmodels portion of the plugin
  • sm_wm_wmodelsenabled "1" - Enables Worldmodels portion of the plugin
  • sm_wm_dropmodelsenabled "1" - Enables dropped models portion of the plugin - Dropped weapons will be changed to the world model of the skin the player dropped.
  • sm_wm_downloadparser "1" - If 1 adds files on downloads.ini to download table.
  • sm_wm_useSmartDM "0" - If 1 uses SmartDM to add .mdl and all files associated with it to download table.
  • sm_wm_lowercasedownloads "0" - If 1 lowercases all lines in downloads.ini
  • sm_wm_informplayernumber "1" - If 1 displays the users that use each skin description style
  • sm_wm_ask_about_public_skins_on_first_join "1" - If 1 new players will be asked if they want to be equipped with public weapon models. If a model entry doesn't have a flag set then it is considered a public model.

Edit those cvars at cfg/sourcemod/sm_weaponmodels.cfg to your liking.

Instalation
  1. Download full_package.zip from this thread below and upload contents to server.
  2. Create MySQL database/user and add the following config to databases.cfg

    Quote:

    "wmodels"
    {
    "driver" "mysql"
    "host" "hostname"
    "database" "database name"
    "user" "username"
    "pass" "password"
    }
  3. Open addons/sourcemod/configs/weapon_models/ and edit downloads.ini and weapon_models.ini. The following skin pack http://gamebanana.com/skins/28421 comes pre-installed so you have some guidelines on how to add new skins.
  4. [Optional] Edit the translation file weaponmodels.phrases.txt to better suit your community name. There might be some typos in there because English is not my native language.

Usage

Type !weaponmodels or whatever string of text you chose (with sm_wm_chatcommands) to access the menu.

Known Bugs
  • Sometimes the weapon a player is using vanishes into another dimension. Far as I know this is a engine bug and not a bug of the plugin per se.

If anyone wants, I have all the models I used to have on my CS:S server (probably 100+) along with the config files. Send me a PM and I'll upload them for you.
Also please excuse me for the state of the code. I had no intention in ever releasing this plugin when I started writing it so the variable names and function names are pretty confusing.

Attached Files
File Type: sp Get Plugin or Get Source (weaponmodels.sp - 80.4 KB)
File Type: zip full_package.zip (3.12 MB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

  • 4 miesiące temu...

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ę...