AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S] Custom Weapon Models Menu (https://forums.alliedmods.net/showthread.php?t=287007)

erroler 08-29-2016 16:09

[CS:S] Custom Weapon Models Menu
 
2 Attachment(s)
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.

NomisCZ 08-29-2016 16:32

Re: [CS:S] Custom Weapon Models Menu
 
Very good (y) :)

FlawlessKush 08-31-2016 22:45

Re: [CS:S] Custom Weapon Models Menu
 
Hi i have multiple sql connections like smrpg & store i tried remaking the database 3 times, Here is the error server is crashing over & over



Code:

L 08/31/2016 - 21:43:14: [weaponmodels.smx] Retrying database connection for the 1 time
L 08/31/2016 - 21:43:19: SourceMod error session started
L 08/31/2016 - 21:43:19: Info (map "surf_buck-wild") (file "errors_20160831.log")
L 08/31/2016 - 21:43:19: [weaponmodels.smx] Retrying database connection for the 1 time
L 08/31/2016 - 21:43:24: SourceMod error session started
L 08/31/2016 - 21:43:24: Info (map "surf_buck-wild") (file "errors_20160831.log")
L 08/31/2016 - 21:43:24: [weaponmodels.smx] Retrying database connection for the 1 time
L 08/31/2016 - 21:43:28: SourceMod error session started
L 08/31/2016 - 21:43:28: Info (map "surf_buck-wild") (file "errors_20160831.log")
L 08/31/2016 - 21:43:28: [weaponmodels.smx] Retrying database connection for the 1 time
L 08/31/2016 - 21:43:34: SourceMod error session started
L 08/31/2016 - 21:43:34: Info (map "surf_buck-wild") (file "errors_20160831.log")
L 08/31/2016 - 21:43:34: [weaponmodels.smx] Retrying database connection for the 1 time
L 08/31/2016 - 21:43:39: SourceMod error session started
L 08/31/2016 - 21:43:39: Info (map "surf_buck-wild") (file "errors_20160831.log")
L 08/31/2016 - 21:43:39: [weaponmodels.smx] Retrying database connection for the 1 time
L 08/31/2016 - 21:43:44: SourceMod error session started
L 08/31/2016 - 21:43:44: Info (map "surf_buck-wild") (file "errors_20160831.log")
L 08/31/2016 - 21:43:44: [weaponmodels.smx] Retrying database connection for the 1 time


erroler 09-01-2016 17:06

Re: [CS:S] Custom Weapon Models Menu
 
Hi, that's quite weird. I'll look into it and try to provide you with a fix. I didn't much about database handles when I made this plugin.

FlawlessKush 09-04-2016 19:17

Re: [CS:S] Custom Weapon Models Menu
 
Quote:

Originally Posted by erroler (Post 2450248)
Hi, that's quite weird. I'll look into it and try to provide you with a fix. I didn't much about database handles when I made this plugin.

If you could make it sqlite i'm not sure what the issue is i can see that the plugin did create the tables in my database but its still spamming that error. Really confusing.


Here is my weapons_models.ini is there anything wrong here?

Code:

"WeaponModels"
{
        "weapon_knife"
        {
                "category_name" "Knives"
                "Bayonet"
                {
                        "view_model" "models/weapons/ninja_2002/csgo_bay_crimson.mdl"
                        "world_model" "models/weapons/ninja_2002/csgo_bay_crimson_w.mdl"
                        "flag" ""
                        "enabled" "1"
                        "description" ""
                }
        }
        "weapon_knife"
        {
                "category_name" "Knives"
                "Bowie"
                {
                        "view_model" "models/weapons/ninja_2002/bowie_knife_csgo.mdl"
                        "world_model" "models/weapons/ninja_2002/bowie_knife_csgo_w.mdl"
                        "flag" ""
                        "enabled" "1"
                        "description" ""
                }
        }
        "weapon_knife"
        {
                "category_name" "Knives"
                "Butterfly"
                {
                        "view_model" "models/weapons/butknife.mdl"
                        "world_model" "models/weapons/butknife_w.mdl"
                        "flag" ""
                        "enabled" "1"
                        "description" ""
                }
        }
        "weapon_knife"
        {
                "category_name" "Knives"
                "Combat Axe No World Model"
                {
                        "view_model" "models/weapons/combat_axe_octane/v_knife_t.mdl"
                        "world_model" ""
                        "flag" ""
                        "enabled" "1"
                        "description" ""
                }
        }
        "weapon_knife"
        {
                "category_name" "Knives"
                "Falchion"
                {
                        "view_model" "models/weapons/ninja_2002/falchion_knife_csgo.mdl"
                        "world_model" "models/weapons/ninja_2002/falchion_knife_csgo_w.mdl"
                        "flag" ""
                        "enabled" "1"
                        "description" ""
                }
        }
        "weapon_knife"
        {
                "category_name" "Knives"
                "Karambit No World Model"
                {
                        "view_model" "models/weapons/knife_redsp/v_knife_t.mdl"
                        "world_model" "models/weapons/soda_can_pack/w_eq_flashbang.mdl"
                        "flag" ""
                        "enabled" "1"
                        "description" ""
                }
        }
        "weapon_knife"
        {
                "category_name" "Knives"
                "Spider"
                {
                        "view_model" "models/weapons/ninja_2002/spider_sting_knife.mdl"
                        "world_model" "models/weapons/ninja_2002/spider_sting_knife_w.mdl"
                        "flag" ""
                        "enabled" "1"
                        "description" ""
                }
        }
}

Yes those models are for c:ss.


erroler 09-13-2016 19:43

Re: [CS:S] Custom Weapon Models Menu
 
2 Attachment(s)
Really sorry for the late reply.
Can you try the new version I attached to this reply?
It shouldn't spam your error logs anymore

Tomusiek 02-11-2017 06:40

Re: [CS:S] Custom Weapon Models Menu
 
"wmodels"
{
"driver" "mysql"
"host" "hostname"
"database" "database name"
"user" "username"
"pass" "password"
}



how i need to edit this ?? what is Driver ? Im not good at eng and i dont know how i need to edit this ;/

Angeelor 05-02-2017 00:18

Re: [CS:S] Custom Weapon Models Menu
 
update?

the menu doesnt work :/

Sourcemod 1.8

alex123pavlov 07-24-2018 17:40

Re: [CS:S] Custom Weapon Models Menu
 
Please, update excellent program expansion and make support of sqlite

ItsFoxxy 08-13-2018 07:21

Re: [CS:S] Custom Weapon Models Menu
 
Quote:

Originally Posted by erroler (Post 2449364)
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.

Can you give me a link to them please.


All times are GMT -4. The time now is 13:46.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.