Can someone provide a replacement for this function that works in SourceMod v 1.11?
PHP Code:
stock int GetDefaultWeaponIndex(TFClassType class, int slot)
{
static defweps[TFClassType][3] = {
{ -1, -1, -1 }, //Unknown
{ 13, 23, 0 }, //Scout
{ 14, 16, 3 }, //Sniper
{ 18, 10, 6 }, //Soldier
{ 19, 20, 1 }, //Demoman
{ 17, 29, 8 }, //Medic
{ 15, 11, 5 }, //Heavy
{ 21, 12, 2 }, //Pyro
{ 24, 735, 4 }, //Spy
{ 9, 22, 7 } //Engineer
};
return defweps[class][slot];
}