AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [CS:GO] Weapon Paints (https://forums.alliedmods.net/showthread.php?t=261288)

Franc1sco 04-09-2015 11:58

[CS:GO] Weapon Paints
 
Description:

Video demostration:


You can use the weapon paints of CS:GO. Use it for choose your favorite paint for your current weapon.


Commands:

The commands for open the main menu are:
Code:

!wskins
!ws
!paints
Or simply press your "," button in your keyboard.

!ss or !showskin for see what paint use your current weapon.
!reloadwskins (root flag required) for reload the menu with the values in the csgo_wpaints.cfg file


You can test this plugin in my servers (i am open on collaborate in others communities for free):

->http://cache.www.gametracker.com/ser...FFF_000000.png


Installation:

* Install required plugin: https://github.com/Franc1sco/Franug-GiveNamedItem
* Disable "FollowCSGOServerGuidelines" option. In addons/sourcemod/configs/core.cfg write this line in the end ```FollowCSGOServerGuidelines "no"```
* Unzip file in addons/sourcemod/
* Add a entry called "weaponpaints" to addons/sourcemod/configs/databases.cfg
* You dont need to upload the .sp file
* If you already use a old version. Remove your database content and start since 0
* A example of a basic databases.cfg is http://pastebin.com/XqsEjPhS
* If you want a !knife plugin can use this https://github.com/Franc1sco/Franug-valve-knifes


Admin flag supported:

Add flag "b" (or something like that) to a skin the cfg files.


Configurable cvars:

Put this in server.cfg
Code:

sm_weaponpaints_c4 "1" // Enable or disable that people can apply paints to the C4. 1 = enabled, 0 = disabled
sm_weaponpaints_saytimer "10" // Time in seconds for block that show the plugin commands in chat when someone type a command. -1 = never show the commands in chat
sm_weaponpaints_roundtimer "-1.0" // Time in seconds roundstart for can use the commands for change the paints. -1.0 = always can use the command
sm_weaponpaints_rmenu "1" // Re-open the menu when you select a option. 1 = enabled, 0 = disabled.
sm_weaponpaints_onlyadmin "0" // This feature is only for admins. 1 = enabled, 0 = disabled. (Use the value 1 and try to keep this plugin secret for the normal users because they can report it)
sm_weaponpaints_zombiesv "1" // Enable this for prevent crashes in zombie and 1v1 servers for knifes. 1 = enabled, 0 = disabled. (Use the value 1 if you use my knife plugin)


Download:

Main repository
Direct download
Code changes

Oshizu 04-09-2015 13:03

Re: [CS:GO] weapon paints
 
Oh, so changing weapon skins was that simple as altering netprops :D

And i recall months ago people been discussing reverse-engineering code to figure out how function called or something like 'SOCacheSubscribe' works to call it...

Lots of bacon to you and notMe2 :bacon!::bacon!::bacon!:

Sprilo 04-09-2015 13:05

Re: [CS:GO] weapon paints
 
Awesome work!

Mitchell 04-09-2015 13:23

Re: [CS:GO] weapon paints
 
"choosen"
if you wanted to future proof this, you could just read straight out of the item_games.txt on plugin load.

notMe2 04-09-2015 13:50

Re: [CS:GO] weapon paints
 
Quote:

Originally Posted by Mitchell (Post 2283959)
"choosen"
if you wanted to future proof this, you could just read straight out of the item_games.txt on plugin load.

the ids from item_games.txt are diferent from the actual paint kit id

iEx5 04-09-2015 13:50

Re: [CS:GO] weapon paints
 
Full list of skin id's has been given to franc1sco cuz i have an worse version of this one for half year:]

iEx5 04-09-2015 13:51

Re: [CS:GO] weapon paints
 
Quote:

Originally Posted by notMe2 (Post 2283969)
the ids from item_games.txt are diferent from the actual paint kit id

no,it's not.

asdfxD 04-09-2015 14:08

Re: [CS:GO] weapon paints
 
Doppler Knives

ruby: 415
saphire: 416
black pearl: 417
phase 1: 418
phase 2: 419
phase 3: 420
phase 4: 421

-----------------------------

Marble Fade
413

Tiger Tooth
409

Rust Coat
203

Damascus Steel
247

Ultraviolet
98

Blue Steel
42

Boreal Forest
77

Case Hardened
44

Crimson Web
12

Forest DDPAT
5

Night
40

Safari Mesh
72

Scorched
175

Slaughter
59

Stained
43

Urban Masked
143

-----------------------------

AWP Dragon Lore
344

-----------------------------

Ak47 Vulcan
302

-----------------------------

m4a1-s / ssg Cyrex
312

-----------------------------

Ak47 Fire Serpent
180

Mitchell 04-09-2015 14:14

Re: [CS:GO] weapon paints
 
Quote:

Originally Posted by asdfxD (Post 2283979)
Doppler Knives
Spoiler

410 is damascus steel knife, the one you provided is for the SSG.
you can find all the paint id's in scripts/items/items_game.txt, i've been using those ids in my own script for half a year now..

ecca 04-09-2015 14:48

Re: [CS:GO] weapon paints
 
To fix the problem with knives, you have to add this Franc1sco, EquipPlayerWeapon

btw, selfcredit at the best :) Made me laugh
Quote:

Originally Posted by Franc1sco (Post 2283916)
Description:
Credits:
-Me for the plugin.



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

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