View Single Post
waltercl
Member
Join Date: Jun 2011
Old 03-21-2014 , 04:20   Re: [CS:GO] Always Weapon Skins [1.2 :: 20.03.2014]
Reply With Quote #9

We're using a modified buy program from CSS, and it looks like the changes I'd need to make are with a config file. The layout of the config file is below:

"CSSBuy_Weapons"
{
//Note: Any item not defined here will not be accessible via sm_buying_commands
// - Not Defined (But Working): weapon_knife, weapon_c4

//"item"
//{
// "slot" - The physical slot the item will occupy.
// "-4" = Nightvision Goggles
// "-3" = Defuser
// "-2" = Vest & Helm
// "-1" = Vest
// "0" = Primary
// "1" = Secondary
// "2" = Knife
// "3" = Grenade
// "4" = C4
// "team" - The required team to purchase the item.
// "0" = The item is not restricted
// "1" = The item cannot be purchased
// "2" = Only Terrorists may purchase the item
// "3" = Only Counter-Terrorists may purchase the item
// "cost" - The price of the item. (-1 = Default, 0 = Free, # = Price)
// The default option for c4 and knife will always return 0; use a hardcoded value
// vest, vesthelm, and nvgs must either be free, or return the default value.
// "index" - The corresponding index for CSWeaponID, located in cstrike.inc
// The defuser occupies the Shield slot, mainly for shittles and giggles.
// "orig" - The original team the weapon belongs to, this value is not to be changed!
// "menu" - The menu category the item is classified into
// Categories are defined first come first serve, so order appropriately.
// "flag" - The optional admin flag to check for to allow the weapon to be purchased
//}





//Rifles
"ak47"
{
"slot" "0"
"team" "0"
"cost" "-1"
"index" "27"
"orig" "2"
"menu" "Rifles"
"flag" "o"
}
"m4a4"
{
"slot" "0"
"team" "0"
"cost" "-1"
"index" "21"
"orig" "3"
"menu" "Rifles"
"flag" "o"
}
"sg556"
{
"slot" "0"
"team" "0"
"cost" "-1"
"index" "48"
"orig" "2"
"menu" "Rifles"
"flag" "o"
}
"aug"
{
"slot" "0"
"team" "0"
"cost" "-1"
"index" "8"
"orig" "3"
"menu" "Rifles"
"flag" "o"
}
"awp"
{
"slot" "0"
"team" "1"
"cost" "-1"
"index" "17"
"orig" "0"
"menu" "Rifles"
"flag" ""
}


}

So it looks like I need to find the index value of the M4a1-S to make this work. Any idea where to get that?
waltercl is offline