Quote:
Originally Posted by Marttt
I downloaded the main post version, did a test right now and is working fine for me.
Better to test in the Whitetaker's Gun Shop (Dead Center - c1m2_streets) where you have a lot of weapons, then look for the AK47 and Magnum models which has more noticeable different skins.
There is no cvar to set a specific spawn skin yet.
I gonna add an admin command in the future to make the RNG in real-time.
|
You can always create a KV config file that accepts a "range" setting. That way users can specify which skins spawn.
Example:
PHP Code:
"WeaponSkins"
{
"weapon_rifle_ak47"
{
"skinsrange" "0-2" // choose between default and the 2 custom skins
}
"weapon_shotgun_chrome"
{
"skinsrange" "1-1" // all chrome shotguns use only the custom skin
}
}
If you want a certain skin to have a higher percentage of spawning, then maybe a config like this:
PHP Code:
"WeaponSkins"
{
"weapon_rifle_ak47"
{
"0"
{
"chance" "0.0" // 0% chance to spawn
}
"1"
{
"chance" "75.0" // 75% chance to spawn
}
"2"
{
"chance" "25.0" // 25% chance to spawn
}
}
}
__________________