Raised This Month: $51 Target: $400
 12% 

[CS:S] Custom Weapon Models Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author
erroler
Member
Join Date: Mar 2013
Plugin ID:
5334
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin 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.
    Old 08-29-2016 , 16:09   [CS:S] Custom Weapon Models Menu
    Reply With Quote #1

    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 - 861 views - 80.4 KB)
    File Type: zip full_package.zip (3.12 MB, 2873 views)

    Last edited by erroler; 09-01-2016 at 17:11.
    erroler is offline
    NomisCZ
    AlliedModders Donor
    Join Date: Mar 2014
    Location: Czech_Republic
    Old 08-29-2016 , 16:32   Re: [CS:S] Custom Weapon Models Menu
    Reply With Quote #2

    Very good (y)
    __________________
    NomisCZ is offline
    FlawlessKush
    Member
    Join Date: Mar 2014
    Old 08-31-2016 , 22:45   Re: [CS:S] Custom Weapon Models Menu
    Reply With Quote #3

    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

    Last edited by FlawlessKush; 08-31-2016 at 22:49.
    FlawlessKush is offline
    erroler
    Member
    Join Date: Mar 2013
    Old 09-01-2016 , 17:06   Re: [CS:S] Custom Weapon Models Menu
    Reply With Quote #4

    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.

    Last edited by erroler; 09-01-2016 at 17:09.
    erroler is offline
    FlawlessKush
    Member
    Join Date: Mar 2014
    Old 09-04-2016 , 19:17   Re: [CS:S] Custom Weapon Models Menu
    Reply With Quote #5

    Quote:
    Originally Posted by erroler View Post
    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.

    Last edited by FlawlessKush; 09-04-2016 at 19:19.
    FlawlessKush is offline
    erroler
    Member
    Join Date: Mar 2013
    Old 09-13-2016 , 19:43   Re: [CS:S] Custom Weapon Models Menu
    Reply With Quote #6

    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
    Attached Files
    File Type: sp Get Plugin or Get Source (weaponmodels.sp - 713 views - 80.4 KB)
    File Type: smx weaponmodels.smx (65.7 KB, 752 views)
    erroler is offline
    Tomusiek
    New Member
    Join Date: Feb 2017
    Old 02-11-2017 , 06:40   Re: [CS:S] Custom Weapon Models Menu
    Reply With Quote #7

    "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 ;/
    Tomusiek is offline
    Angeelor
    Member
    Join Date: Jan 2017
    Old 05-02-2017 , 00:18   Re: [CS:S] Custom Weapon Models Menu
    Reply With Quote #8

    update?

    the menu doesnt work :/

    Sourcemod 1.8
    Angeelor is offline
    alex123pavlov
    Member
    Join Date: Jun 2018
    Location: Moscow
    Old 07-24-2018 , 17:40   Re: [CS:S] Custom Weapon Models Menu
    Reply With Quote #9

    Please, update excellent program expansion and make support of sqlite
    alex123pavlov is offline
    ItsFoxxy
    Junior Member
    Join Date: Aug 2018
    Old 08-13-2018 , 07:21   Re: [CS:S] Custom Weapon Models Menu
    Reply With Quote #10

    Quote:
    Originally Posted by erroler View Post
    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.
    ItsFoxxy is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 07:14.


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