Thread: [Solved] Help with SM 1.11 syntax
View Single Post
Author Message
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 02-04-2022 , 11:40   Help with SM 1.11 syntax
Reply With Quote #1

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, -},        //Unknown
        
1323},        //Scout
        
1416},        //Sniper
        
1810},        //Soldier
        
1920},        //Demoman
        
1729},        //Medic
        
1511},        //Heavy
        
2112},        //Pyro
        
24735},        //Spy
        
922}        //Engineer
    
};
    return 
defweps[class][slot];


Last edited by PC Gamer; 02-07-2022 at 11:06.
PC Gamer is offline