Checks if name is based on base
See if gmod_tool is based on weapon_base, and whether weapon_base is based on itself.