mp/src/game/shared/sdk/sdk_shareddefs.cpp
SDKWeaponID AliasToWeaponID( const char *alias )
{
	if (alias)
	{
		for( int i=0; s_WeaponAliasInfo[i] != NULL; ++i )
			if (!Q_stricmp( s_WeaponAliasInfo[i], alias ))
				return (SDKWeaponID)i;
	}

	return WEAPON_NONE;
}
//--------------------------------------------------------------------------------------------------------
//
// Given an alias, return the associated weapon ID
//
Given an alias, return the associated weapon ID
Given an alias return the associated weapon ID
SDKWeaponID AliasToWeaponID( const char *alias )
{
	if (alias)
	{
		for( int i=0; s_WeaponAliasInfo[i] != NULL; ++i )
			if (!Q_stricmp( s_WeaponAliasInfo[i], alias ))
				return (SDKWeaponID)i;
	}
	return WEAPON_NONE;
}
SDKWeaponID AliasToWeaponID ( const char * alias ) { if ( alias ) { for ( int i = 0 ; s_WeaponAliasInfo [ i ] != NULL ; ++ i ) if ( ! Q_stricmp ( s_WeaponAliasInfo [ i ] , alias ) ) return ( SDKWeaponID ) i ; } return WEAPON_NONE ; }
Given an alias, return the associated weapon ID
Given an alias return the associated weapon ID