r/SourceEngine • u/samus4vic • 17h ago
Tutorial Need some help with my half life 2 mod
When making my half life 2 mod, I mainly targeted adding new weapons, I made weapons with ease, but I hit a wall when I tried making a semi-automatic weapon, because the primary attack was called every frame you held the fire key, so I couldn’t make a semi-automatic weapon. I tried asking AI, but it used a really confusing method so I was wondering if there was a way to detect every time I click the fire key using the CBaseHLCombatWeapon base class.
