AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [CS:GO] Custom Weapons Menu (very easy to configure) now with sql support (https://forums.alliedmods.net/showthread.php?t=276779)

Franc1sco 12-28-2015 05:18

[CS:GO] Custom Weapons Menu (very easy to configure) now with sql support
 
This plugin is not against valve's rule if you obey this -> https://forums.alliedmods.net/showpo...44&postcount=8

Demostration video:



Description:

Plugin where you can add easily new weapon models to choose in a menu. Now you dont need know about coding for use the First Person View Models Interface. Just configure all in txt files so more easy impossible :bacon:


Requeriments:

Commands:

Open the main menu:
Code:

!cw
Refresh the configuration (ROOT adminflag required):
Code:

!reloadcw

Cvars:
Put in server.cfg
Code:

sm_customweaponsmenu_spawnmsg "1" // Enable or Disable Spawnmessages

Configuration:

Configure these two files in addons/sourcemod/configs/franug_cwm/

Example of configuration.txt file:
Code:

"CustomModels"
{
        "weapon_awp"
        {
                "AWP anime"
                {
                        "model" "models/weaponf/v_animeawp.mdl"
                        "worldmodel" "models/weaponf/w_animeawp.mdl"
                        "dropmodel" "none"
                }
        }
        "weapon_knife"
        {
                "Tri-Dagger Black"
                {
                        "model" "models/weaponf/v_knife_tridagger_v2.mdl"
                }
                "Tri-Dagger Steel"
                {
                        "model" "models/weaponf/v_knife_tridagger_steel.mdl"
                }
                "Ka-Bar"
                {
                        "model" "models/weaponf/v_knife_kabar_v2.mdl"
                }
                "Reaper Dagger"
                {
                        "model" "models/weaponf/v_knife_reaper.mdl"
                }
                "CSS Knife"
                {
                        "model" "models/weaponf/crashz.mdl"
                }
                "Bear Grylls Knife"
                {
                        "model" "models/weaponf/v_knife_ultimate.mdl"
                }
        }
        "weapon_elite"
        {
                "Dual Infinity"
                {
                        "model" "models/weaponf/v_pist_dualinfinity.mdl"
                }
        }
}

Example of downloads.txt file (here you need to include all the models routes):
Code:

//Tridagger
models/weaponf/v_knife_tridagger_v2.dx90.vtx
models/weaponf/v_knife_tridagger_v2.mdl
models/weaponf/v_knife_tridagger_v2.vvd
materials/models/weaponf/v_models/tridagger/tridagger.vmt
materials/models/weaponf/v_models/tridagger/tridagger.vtf
materials/models/weaponf/v_models/tridagger/tridagger_exp.vtf
materials/models/weaponf/v_models/tridagger/tridagger_normal.vtf

//Tridagger Steel
models/weaponf/v_knife_tridagger_steel.dx90.vtx
models/weaponf/v_knife_tridagger_steel.mdl
models/weaponf/v_knife_tridagger_steel.vvd
materials/models/weaponf/v_models/tridagger/steel/tridagger.vmt
materials/models/weaponf/v_models/tridagger/steel/tridagger_elite.vtf
materials/models/weaponf/v_models/tridagger/steel/tridagger_exp.vtf
materials/models/weaponf/v_models/tridagger/steel/tridagger_elite_normal.vtf

//Black Dagger
models/weaponf/v_knife_reaper.dx90.vtx
models/weaponf/v_knife_reaper.mdl
models/weaponf/v_knife_reaper.vvd
materials/models/weaponf/v_models/dtb_dagger/dtb.vmt
materials/models/weaponf/v_models/dtb_dagger/dtb.vtf
materials/models/weaponf/v_models/dtb_dagger/dtb_exp.vtf
materials/models/weaponf/v_models/dtb_dagger/dtb_normal.vtf

//Kabar
models/weaponf/v_knife_kabar_v2.dx90.vtx
models/weaponf/v_knife_kabar_v2.mdl
models/weaponf/v_knife_kabar_v2.vvd
materials/models/weaponf/kabar/KABAR.vmt
materials/models/weaponf/kabar/kabar.vtf
materials/models/weaponf/kabar/kabar_G.vtf
materials/models/weaponf/kabar/kabar_n.vtf

//1.6 Knife
materials/models/weaponf/v_models/knife_ct/bowieknife.vmt
materials/models/weaponf/v_models/knife_ct/knife.vtf
materials/models/weaponf/v_models/knife_ct/knife_env.vtf
materials/models/weaponf/v_models/knife_ct/knife_normal.vtf
models/weaponf/crashz.dx80.vtx
models/weaponf/crashz.dx90.vtx
models/weaponf/crashz.mdl
models/weaponf/crashz.sw.vtx
models/weaponf/crashz.vvd

//Ultimate Knife
materials/models/weaponf/ultimate/texture_1.vmt
materials/models/weaponf/ultimate/texture_1.vtf
materials/models/weaponf/ultimate/texture_2.vmt
materials/models/weaponf/ultimate/texture_2.vtf
materials/models/weaponf/ultimate/texture_3.vmt
materials/models/weaponf/ultimate/texture_3.vtf
materials/models/weaponf/ultimate/texture_4.vmt
materials/models/weaponf/ultimate/texture_4.vtf
materials/models/weaponf/ultimate/texture_5.vmt
materials/models/weaponf/ultimate/texture_5.vtf
materials/models/weaponf/ultimate/texture_6.vmt
materials/models/weaponf/ultimate/texture_6.vtf
materials/models/weaponf/ultimate/texture_7.vmt
materials/models/weaponf/ultimate/texture_7.vtf
models/weaponf/v_knife_ultimate.dx90.vtx
models/weaponf/v_knife_ultimate.mdl
models/weaponf/v_knife_ultimate.vvd

//Dual Infinity
materials/models/weaponf/w_models/w_pist_elite/01.vmt
materials/models/weaponf/w_models/w_pist_elite/01.vtf
materials/models/weaponf/w_models/w_pist_elite/02.vmt
materials/models/weaponf/w_models/w_pist_elite/02.vtf
materials/models/weaponf/w_models/w_pist_elite/exponent
materials/models/weaponf/w_models/w_pist_elite/hong02.vmt
materials/models/weaponf/w_models/w_pist_elite/hong02.vtf
materials/models/weaponf/w_models/w_pist_elite/jin01.vmt
materials/models/weaponf/w_models/w_pist_elite/jin01.vtf
materials/models/weaponf/w_models/w_pist_elite/m9a1.vmt
materials/models/weaponf/w_models/w_pist_elite/m9a1.vtf
materials/models/weaponf/w_models/w_pist_elite/m9a1_exponent.vtf
models/weaponf/v_pist_dualinfinity.dx90.vtx
models/weaponf/v_pist_dualinfinity.vvd
models/weaponf/v_pist_dualinfinity.mdl


if you want to know differences between

v_example.mdl
w_example.mdl
w_example_dropped.mdl


Database configuration:

Just add a entry called "customweapons" in addons/sourcemod/configs/databases.cfg (mysql and sqlite supported)
If not entry called "customweapons" in the file, then the plugin will use the entry called "storage-local"


Donations (optional):

If you apreciate my work, you can donate me via paypal or with a trade offer


Download:

Main repository
Direct download
Code changes

Download zip with the models: https://drive.google.com/file/d/0BzQ...ew?usp=sharing

Franc1sco 12-28-2015 05:58

Re: [ANY] Custom Weapons Menu (very easy to configure)
 
2 Attachment(s)
*Reserved for more models*


A simple tutorial of changing weapon skin:
https://forums.alliedmods.net/showpo...8&postcount=95

AK 47 Furhara and Vanti
https://forums.alliedmods.net/showpo...&postcount=175

AK47 Beast
https://forums.alliedmods.net/showpo...1&postcount=68

AK47 black holy
https://forums.alliedmods.net/showpo...&postcount=145

M4 Beast
https://forums.alliedmods.net/showth...51#post2380851

Awp Gentleman and PB Niboer
https://forums.alliedmods.net/showth...89#post2378689

Cokecola Molotov
https://forums.alliedmods.net/showth...91#post2378791

Screwdriver knife
https://forums.alliedmods.net/showth...57#post2379057

AWP Miku
https://forums.alliedmods.net/showth...98#post2378498

MP7 like CS:S MP5
https://forums.alliedmods.net/showpo...9&postcount=50

AWP anime:

Code:

        "weapon_awp"
        {
                "AWP anime"
                {
                        "model" "models/weapons/v_animeawp.mdl"
                        "worldmodel" "models/weapons/w_animeawp.mdl"
                }
        }

Screenshots:
http://steamcommunity.com/sharedfile.../?id=586821355
http://steamcommunity.com/sharedfile.../?id=586821280
http://steamcommunity.com/sharedfile.../?id=586821187
http://steamcommunity.com/sharedfile.../?id=587829197
http://steamcommunity.com/sharedfile.../?id=587828846

Download: now included with the latest version of this plugin


Gong fu knife:

Code:

        "weapon_knife"
        {
                "Gong Fu"
                {
                        "model" "models/weapons/v_gongfu.mdl"
                }
        }

Screenshot:
http://steamcommunity.com/sharedfile.../?id=586471940


Download: https://forums.alliedmods.net/attach...1&d=1452134443


Pokeball:

Code:

        "weapon_hegrenade"
        {
                "Pokeball"
                {
                        "model" "models/weapons/v_hegrenade_pokeball.mdl"
                }
        }

Screenshot: http://steamcommunity.com/sharedfile.../?id=586767579

Download: https://forums.alliedmods.net/attach...1&d=1451358583

Franc1sco 12-28-2015 06:31

Re: [ANY] Custom Weapons Menu (very easy to configure) v1.1
 
New version 1.1

-Fixed a possible crash when your configuration is not correct
-Edited the example configuration.txt for remove a invalid name

https://github.com/Franc1sco/Franug-...081659db35d6de

rogeraabbccdd 12-28-2015 06:46

Re: [ANY] Custom Weapons Menu (very easy to configure) v1.1
 
Nice :up:

rogeraabbccdd 12-28-2015 08:17

Re: [ANY] Custom Weapons Menu (very easy to configure) v1.1
 
Bug report
Will not save players weapon after map load

Franc1sco 12-28-2015 08:19

Re: [ANY] Custom Weapons Menu (very easy to configure) v1.1
 
Quote:

Originally Posted by rogeraabbccdd (Post 2377236)
Bug report
Will not save players weapon after map load

I know. I not included that feature yet.

Hallucinogenic Troll 12-28-2015 09:56

Re: [ANY] Custom Weapons Menu (very easy to configure) v1.1
 
I think you should be warning this Franc1sco.

Some ppl might be smart (or stupid) enough to extract the mdl files from the CS:GO's VPK paks and change the textures' path.

As an example, you can extract the karambit, make like an "Amber Fade" texture and add to the server.

Basicly, you can create karambits dopplers and many other skins that are on market, just extracting the files and Valve may not like that and start to be against your plugin.

Cipop 12-28-2015 10:17

Re: [ANY] Custom Weapons Menu (very easy to configure) v1.1
 
Custom atributtes and force usage ?
Wonderful plugin anyway :3

Ownkruid 12-28-2015 10:27

Re: [ANY] Custom Weapons Menu (very easy to configure) v1.1
 
Code:

L 12/28/2015 - 16:25:58: [SM] Displaying call stack trace for plugin "fpvm_interface.smx":
L 12/28/2015 - 16:25:58: [SM]  [0]  Line 154, fpvm_interface.sp::OnClientWeaponSwitchPost()
L 12/28/2015 - 16:25:58: [SM] Native "SetEntProp" reported: Property "m_iSecondaryReserveAmmoCount" not found (entity 0/worldspawn)
L 12/28/2015 - 16:25:58: [SM] Displaying call stack trace for plugin "fpvm_interface.smx":
L 12/28/2015 - 16:25:58: [SM]  [0]  Line 382, E:\franugcompiler\include\smlib/weapons.inc::Weapon_SetSecondaryAmmoCount()
L 12/28/2015 - 16:25:58: [SM]  [1]  Line 215, fpvm_interface.sp::RefreshWeapon()
L 12/28/2015 - 16:25:58: [SM]  [2]  Line 176, fpvm_interface.sp::Native_AddWeapon()
L 12/28/2015 - 16:25:58: [SM] Native "FPVMI_AddViewModelToClient" reported: Error encountered while processing a dynamic native
L 12/28/2015 - 16:25:58: [SM] Displaying call stack trace for plugin "franug_cwm.smx":
L 12/28/2015 - 16:25:58: [SM]  [0]  Line 166, franug_cwm.sp::Menu_Handler2()
L 12/28/2015 - 16:26:02: [SM] Native "GetEntProp" reported: Entity -1 (-1) is invalid
L 12/28/2015 - 16:26:02: [SM] Displaying call stack trace for plugin "fpvm_interface.smx":
L 12/28/2015 - 16:26:02: [SM]  [0]  Line 154, fpvm_interface.sp::OnClientWeaponSwitchPost()

Works on 2 out of 3 servers. On Hide'N'Seek this is being spammed in my logs.

bebe9b 12-28-2015 13:35

Re: [ANY] Custom Weapons Menu (very easy to configure) v1.1
 
Franc pls fix :

I tested the plugin server and is not stable :(

Pls fix , knife has delay then when press click mouse left and click mouse right.


write message console server:

FS: Specified two path IDs (//Tridagger, GAME).
FS: Specified two path IDs (//Tridagger, GAME).
FS: Specified two path IDs (//Tridagger Steel, GAME).
FS: Specified two path IDs (//Tridagger Steel, GAME).
FS: Specified two path IDs (//Black Dagger, GAME).
FS: Specified two path IDs (//Black Dagger, GAME).
FS: Specified two path IDs (//Kabar, GAME).
FS: Specified two path IDs (//Kabar, GAME).
FS: Specified two path IDs (//1.6 Knife, GAME).
FS: Specified two path IDs (//1.6 Knife, GAME).
FS: Specified two path IDs (//Ultimate Knife, GAME).
FS: Specified two path IDs (//Ultimate Knife, GAME).
FS: Specified two path IDs (//Dual Infinity, GAME).
FS: Specified two path IDs (//Dual Infinity, GAME).


Thx,


All times are GMT -4. The time now is 15:40.

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