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)

ecca 04-09-2015 17:17

Re: [CS:GO] weapon paints v1.1
 
1 Attachment(s)
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 


Franc1sco 04-09-2015 18:13

Re: [CS:GO] weapon paints v1.1
 
Quote:

Originally Posted by ecca (Post 2284067)
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 (Post 2284067)
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
        }


indungi 04-09-2015 18:31

Re: [CS:GO] weapon paints v1.1
 
1 Attachment(s)
Config file updated ...

Franc1sco 04-09-2015 18:38

Re: [CS:GO] weapon paints v1.1
 
Quote:

Originally Posted by indungi (Post 2284094)
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

Mitchell 04-09-2015 18:39

Re: [CS:GO] weapon paints v1.1
 
best wear 0.1 (minimal wear) does factory new not exist or something?

Franc1sco 04-09-2015 18:42

Re: [CS:GO] weapon paints v1.1
 
A question. You like the !wskins command or you prefer something like !paints (??)

xInfectedZz 04-09-2015 18:48

Re: [CS:GO] weapon paints v1.1
 
!wskins is just fine :)

Franc1sco 04-09-2015 18:51

Re: [CS:GO] weapon paints v1.1
 
Quote:

Originally Posted by xInfectedZz (Post 2284101)
!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)

notMe2 04-09-2015 18:51

Re: [CS:GO] weapon paints v1.1
 
Quote:

Originally Posted by Mitchell (Post 2284098)
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

indungi 04-09-2015 19:27

Re: [CS:GO] weapon paints v1.2
 
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)


All times are GMT -4. The time now is 04:49.

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