AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   How to implement m_nSkin in csgo skin asset? (https://forums.alliedmods.net/showthread.php?t=327864)

NewWorld_ 10-14-2020 04:20

How to implement m_nSkin in csgo skin asset?
 
I know that you can use different skins for certain assets, like the model in the attached photo. Do you have different codes for each specific box?

Also, if you can give an example, I would appreciate

I would like to provide a variety of options for the model.

I am using kxnrl's store plugin.

https://imgur.com/a/B1cqx8J

https://imgur.com/euw2LuQ

Marttt 10-14-2020 09:51

Re: How to implement m_nSkin in csgo skin asset?
 
If you already have the model with skins then you can look at my plugin [L4D2] Weapons Skins Menu, is L4D2 only but can give you some direction.


If you want to create models with skins then this is more related to the steam community forum => workshop section, maybe you can try to ask there or in l4d discord.

rogeraabbccdd 10-15-2020 02:26

Re: How to implement m_nSkin in csgo skin asset?
 
Change 0, 1, 2 to your skin number.
PHP Code:

DispatchKeyValue(entity"skin""0");
DispatchKeyValue(entity"skin""1");
DispatchKeyValue(entity"skin""2"); 


NewWorld_ 10-20-2020 09:38

Re: How to implement m_nSkin in csgo skin asset?
 
Quote:

Originally Posted by rogeraabbccdd (Post 2721391)
Change 0, 1, 2 to your skin number.
PHP Code:

DispatchKeyValue(entity"skin""0");
DispatchKeyValue(entity"skin""1");
DispatchKeyValue(entity"skin""2"); 


Could you please explain in more detail?

So, defining each main index value of the skin is "skin"

Is it "0" defining the sub-index value of the skin?

Marttt 10-20-2020 09:52

Re: How to implement m_nSkin in csgo skin asset?
 
Every model has a skin, 0 is the default value.

If you have 2 skins in an model for example, you will have "0" and "1"
If you set to an unexistent skin value, e.g. "99", it will read as if it was the skin 0


All times are GMT -4. The time now is 05:33.

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