Restored npc hability to use the alt fire of the SMG1
coding
1
   
Award
Favorite
Favorited
Unfavorite
"Restored npc hability to use the alt fire of the SMG1

Special thanks to Nicknine to telling me about this!
Code: https://developer.valvesoftware.com/wiki/HL2_snippets#Restoring_Combine_Elite_Soldier_hability_to_use_the_alt_fire_of_the_SMG1

So apparently Valve added at first the feature to use the grenade launcher of the SMG1 for the Combine Elite Soldier, but then they decided to disable it. If you go to weapon_smg1.cpp you will see some parts commented, that are related with this. Removing the comment will not make it work, you must do first a bit of fixing since the code uses some old variables.

Notice also how the NPCs that have the RPGs are better than the ones seen in HL2. They must got improved either in EP2 or in Source 2013.

Fun fact: The part of the code that checks if is OK to fire the grenade is literally the same that has the Hgrunt in Half-Life 1, just adapted for Source."