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

[CS:GO] Weapon Paints


Post New Thread Reply   
 
Thread Tools Display Modes
ecca
Sexy Santa
Join Date: Jan 2011
Old 04-09-2015 , 17:17   Re: [CS:GO] weapon paints v1.1
Reply With Quote #21

Actually my method works and your plugin works fine aswell, but you can't assign skins on default knives. You have to use it on karambit or bayonet and such. You could do submenu, letting them select knife first and then skin.

The menus would look something like

Code:
1. Weapons -> (use stattrak or not or randomize it) -> select the skin you want to apply
2. Knives -> (use stattrak or not or randomize it) -> select any knife (karambit, bayonet) etc -> select the skin you want to apply
I included how i fixed it, by moving down the Equip.

Note that i changed line 95 to

PHP Code:
new entity GivePlayerItem(client"weapon_knife_karambit"); 
for testing, so you have to change it back Franc1sco

also for best looks i recommend you setting the quality so close to the minimal wear as possible using prop

PHP Code:
SetEntPropFloat(entityProp_Send"m_flFallbackWear"0.1); // using 0.0 gives it a bad look :s ? 1.0 worst (BS) and 0.1 best (MW) 
and for some styling using the "star" next to knife name use. You would probably want to do this inside the check if it is a knife we are applying to.

PHP Code:
SetEntProp(entityProp_Send"m_iEntityQuality"3); //Sets the star icon before knife name 
also for the sake of fun, you could do randomly assign stattrak or not. -1 will set the weapon to normal and anything above will set it as stattrak and number of kills.

PHP Code:
new stattrakcount GetRandomInt(-110000);
SetEntProp(entityProp_Send"m_nFallbackStatTrak"stattrakcount); //-1 not stattrak, >= 0 is stattrak 
Attached Files
File Type: sp Get Plugin or Get Source (franug_weaponpaints.sp - 953 views - 5.3 KB)
__________________

Last edited by ecca; 04-09-2015 at 17:52.
ecca is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 04-09-2015 , 18:13   Re: [CS:GO] weapon paints v1.1
Reply With Quote #22

Quote:
Originally Posted by ecca View Post
The menus would look something like

Code:
1. Weapons -> (use stattrak or not or randomize it) -> select the skin you want to apply
2. Knives -> (use stattrak or not or randomize it) -> select any knife (karambit, bayonet) etc -> select the skin you want to apply
Good idea. Maybe I will do it.



Quote:
Originally Posted by ecca View Post
also for best looks i recommend you setting the quality so close to the minimal wear as possible using prop

PHP Code:
SetEntPropFloat(entityProp_Send"m_flFallbackWear"0.1); // using 0.0 gives it a bad look :s ? 1.0 worst (BS) and 0.1 best (MW) 
and for some styling using the "star" next to knife name use. You would probably want to do this inside the check if it is a knife we are applying to.

PHP Code:
SetEntProp(entityProp_Send"m_iEntityQuality"3); //Sets the star icon before knife name 
also for the sake of fun, you could do randomly assign stattrak or not. -1 will set the weapon to normal and anything above will set it as stattrak and number of kills.

PHP Code:
new stattrakcount GetRandomInt(-110000);
SetEntProp(entityProp_Send"m_nFallbackStatTrak"stattrakcount); //-1 not stattrak, >= 0 is stattrak 
I already know about these netprops. I am planning in add in the cfg file for define the values of these netprops. Like this:
Code:
	"GROUNDWATER" // name
	{
		"paint"		"2" // paint value
                "stattrack"  "10" // statrak value
                "Quality" "3" // quality
                "Wear" "0.1" // wear value
	}
__________________
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
indungi
Member
Join Date: Oct 2011
Location: Romania
Old 04-09-2015 , 18:31   Re: [CS:GO] weapon paints v1.1
Reply With Quote #23

Config file updated ...
Attached Files
File Type: cfg csgo_wpaints.cfg (2.1 KB, 605 views)
__________________
indungi is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 04-09-2015 , 18:38   Re: [CS:GO] weapon paints v1.1
Reply With Quote #24

Quote:
Originally Posted by indungi View Post
Config file updated ...
Thanks! I added it to the first post and you have been added in the credits for help in complete the cfg file. If someone help in complete the cfg file I will add him to the credits so now people have a reason to help.

Exist about 400 different paints so requires considerable effort
__________________
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 18:39.
Franc1sco is offline
Send a message via MSN to Franc1sco
Mitchell
~lick~
Join Date: Mar 2010
Old 04-09-2015 , 18:39   Re: [CS:GO] weapon paints v1.1
Reply With Quote #25

best wear 0.1 (minimal wear) does factory new not exist or something?
Mitchell is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 04-09-2015 , 18:42   Re: [CS:GO] weapon paints v1.1
Reply With Quote #26

A question. You like the !wskins command or you prefer something like !paints (??)
__________________
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
xInfectedZz
Junior Member
Join Date: Jul 2013
Old 04-09-2015 , 18:48   Re: [CS:GO] weapon paints v1.1
Reply With Quote #27

!wskins is just fine
xInfectedZz is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 04-09-2015 , 18:51   Re: [CS:GO] weapon paints v1.1
Reply With Quote #28

Quote:
Originally Posted by xInfectedZz View Post
!wskins is just fine
Ok, but maybe is better !ws for abbreviate. I will add it to the next version (!wskins !ws and !paints commands)
__________________
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
notMe2
Member
Join Date: Feb 2014
Old 04-09-2015 , 18:51   Re: [CS:GO] weapon paints v1.1
Reply With Quote #29

Quote:
Originally Posted by Mitchell View Post
best wear 0.1 (minimal wear) does factory new not exist or something?
i never archived the factory new, i'm still debugging csgo to find it out... the only way i could manage to force the factory new was changing the item ID to a id of an existing weapon of the skin i want that is factory new
notMe2 is offline
indungi
Member
Join Date: Oct 2011
Location: Romania
Old 04-09-2015 , 19:27   Re: [CS:GO] weapon paints v1.2
Reply With Quote #30

It will be nice a Deathmatch give weapon menu example: in this case give skin like:

- Choose skin (select skin, after that plugin ask you
1. Give this skin every round
2. Give random skin every round
3. Remove skin, use default weapon style (no skin)
__________________

Last edited by indungi; 04-09-2015 at 19:28.
indungi is offline
Reply


Thread Tools
Display Modes

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 14:07.


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