While not 'companions' in the traditional RPG sense, you can spawn and manipulate NPCs to act as allies, enemies, or even passive elements in your scenes.
Garry's Mod
Companion NPCs & AI
Control companion NPCs in Garry's Mod. Learn to spawn and manipulate AI units to serve as allies, enemies, or passive elements in your creations.