Basic implementaion of unjamming on reload hotkey.

TODO:
text strings
check dual wielding
This commit is contained in:
Greysa
2026-05-23 21:22:28 +03:00
committed by Asdow
parent 2d4f62a5b6
commit bb55299ff6
2 changed files with 68 additions and 9 deletions
+14 -8
View File
@@ -4309,15 +4309,21 @@ void GetKeyboardInput( UINT32 *puiNewEvent )
case 'r':
if( gusSelectedSoldier != NOBODY )
{
if( fAlt ) //reload selected merc's weapon
// Greysa: Commented out for testing purposes.
//if( fAlt ) //reload selected merc's weapon
//{
// if ( CHEATER_CHEAT_LEVEL( ) )
// {
// ReloadWeapon( gusSelectedSoldier, gusSelectedSoldier->ubAttackingHand );
// }
// else
// HandleTBReload();
//}
// Remove this once testing and above commenting finished with.
if( fAlt )
{
if ( CHEATER_CHEAT_LEVEL( ) )
{
ReloadWeapon( gusSelectedSoldier, gusSelectedSoldier->ubAttackingHand );
}
else
HandleTBReload();
}
HandleTBReload();
}
else if( fCtrl )
{
if ( INFORMATION_CHEAT_LEVEL( ) )