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

[CS:GO] Weapon Paints


Post New Thread Reply   
 
Thread Tools Display Modes
lay295
Senior Member
Join Date: Sep 2013
Old 04-09-2015 , 21:43   Re: [CS:GO] weapon paints v1.2
Reply With Quote #41

Quote:
Originally Posted by Franc1sco View Post
This should works for save the selection. Beta version try it. Is for all weapons.

Maybe in a future I will do it for each weapon
Loaded it, made server var spike to 50, thought it was a ddos but right when I unloaded the plugin the lag stopped
__________________

lay295 is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 04-09-2015 , 21:49   Re: [CS:GO] weapon paints v1.2
Reply With Quote #42

Quote:
Originally Posted by lay295 View Post
Loaded it, made server var spike to 50, thought it was a ddos but right when I unloaded the plugin the lag stopped
Yeah, I saw it now, I am fixing it

I am testing it with indungi
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 04-09-2015 at 21:54.
Franc1sco is offline
Send a message via MSN to Franc1sco
m22b
Senior Member
Join Date: Jul 2013
Old 04-09-2015 , 22:27   Re: [CS:GO] weapon paints v1.2
Reply With Quote #43

Quote:
Originally Posted by Franc1sco View Post
Description:

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


The commands for open the main menu are:
Code:
!wskins
!ws
!paints
Or simply press your "," button in your keyboard.
You can reload the menu with the values in the csgo_wpaints.cfg file with the command !reloadwskins (root flag required)


Installation:

Upload csgo_wpaints.cfg file to addons/sourcemod/configs
Upload the .smx file to addons/sourcemod/plugins


Todo list:

-Add clientprefs support for remember the paint selected
-Add option for stattrak
-Add knife selection too.
-Add option for set the condition of the skin
-In some weapons dont work. I would check it better.
-Complete csgo_wpaints.cfg with all the weapon paints


Note: csgo_wpaints.cfg still dont contain all the csgo paints. You can see all paint values here and complete it by yourself. I will complete it soon. If you can help with this would be good.

Changelog:
Code:
version 1.0
-Public release

Version 1.1
-Keep weapon clip and ammo when you receive a new weapon with !wskins
-Now works in custom knife plugins
-Fixed some grammatical errors
-Now dead players cant use this

Version 1.2
-Added new commands (!ws and !paints) and the option of open the main menu with the button "," of your keyboard.
-Also !reloadwskins commands is added for the root admins can reload the menu with the current values in the csgo_wpaints.cfg file

Credits:

-This to share the method for change weapon skins.
-iEx5 for shared to me netprops about change weapon skins in the past, and provide how get all the paint ids
-indungi for help in complete the csgo_wpaints.cfg with more paints
-Myself for have made this plugin


Soon more


Enjoy!


version 1.0 views: 82
version 1.1 views: 50
maybe you add "random skin" option ?
and translation support?
m22b is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 04-09-2015 , 22:33   Re: [CS:GO] weapon paints v1.2
Reply With Quote #44

Quote:
Originally Posted by lay295 View Post
Loaded it, made server var spike to 50, thought it was a ddos but right when I unloaded the plugin the lag stopped
Fixed in this version

Thanks to indungi for help me in the testing
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 05-14-2015 at 03:02.
Franc1sco is offline
Send a message via MSN to Franc1sco
asdfxD
Veteran Member
Join Date: Apr 2011
Old 04-09-2015 , 22:53   Re: [CS:GO] weapon paints v1.2
Reply With Quote #45

Quote:
Originally Posted by Franc1sco View Post
Fixed in this version

Thanks to indungi for help me in the testing
still lag spikes with this version when using a skin instant 4-5 var for a second, but it lags.

edit:
4-5 var is gone, hmn

server restart or map change, first try to use a skin gives 30 var and no skin, the second try works.
http://i.imgur.com/kn91Ljm.jpg

edit2: yes, server crashes too randomly.

Last edited by asdfxD; 04-09-2015 at 23:38.
asdfxD is offline
lay295
Senior Member
Join Date: Sep 2013
Old 04-09-2015 , 23:27   Re: [CS:GO] weapon paints v1.2
Reply With Quote #46

With the latest beta version, when the player first picks their skin it lag spikes for a second and takes 2 tries to get the skin. So with multiple people it added up. Also on map change the server crashed, it may be becuase I loaded the plugin without restarting the server.

In my logs it shows this about 50 times

Code:
L 04/09/2015 - 22:59:00: [SM]   [0]  Line 336, /home/forums/content/files/9/4/2/7/7/144006.attach::ChangePaint()
L 04/09/2015 - 22:59:00: [SM]   [1]  Line 262, /home/forums/content/files/9/4/2/7/7/144006.attach::OnPostWeaponEquip()
L 04/09/2015 - 22:59:00: [SM] Native "SetEntProp" reported: Entity 2003782724 (2003782724) is invalid
then this once just before it crashed

Code:
L 04/09/2015 - 22:59:00: [SM] Displaying call stack trace for plugin "franug_weaponpaints.smx":
L 04/09/2015 - 22:59:00: [SM]   [0]  Line 156, /home/forums/content/files/9/4/2/7/7/144006.attach::DIDMenuHandler()
I am not able to replicate the crash on my test server with only me.
__________________

lay295 is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 04-09-2015 , 23:50   Re: [CS:GO] weapon paints v1.2
Reply With Quote #47

As i said, is a beta version.

For a good version use the plugin in the first post
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
lay295
Senior Member
Join Date: Sep 2013
Old 04-10-2015 , 00:00   Re: [CS:GO] weapon paints v1.2
Reply With Quote #48

Quote:
Originally Posted by Franc1sco View Post
As i said, is a beta version.

For a good version use the plugin in the first post
I know I was expecting issues and am just reporting what I find, thanks for making this awesome plugin!
__________________

lay295 is offline
m22b
Senior Member
Join Date: Jul 2013
Old 04-10-2015 , 00:39   Re: [CS:GO] weapon paints v1.2
Reply With Quote #49

Quote:
Originally Posted by Franc1sco View Post
Fixed in this version

Thanks to indungi for help me in the testing

version = "1.3b2"
Many errors ;)
tested with humans
+20 min
Attached Files
File Type: zip errors_20150410.zip (1.5 KB, 97 views)

Last edited by m22b; 04-10-2015 at 00:40.
m22b is offline
cocobobo20
Junior Member
Join Date: Oct 2012
Old 04-10-2015 , 00:43   Re: [CS:GO] weapon paints v1.2
Reply With Quote #50

did you say it now keeps skin when you die and stuff?, Because not happening for me
cocobobo20 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 20:39.


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