Recoil in TC guns is accomplished with a a solenoid, driving the metal "slide" fixture, and covered with the plastic shell.
One in TC 1-3 guns requires 24V DC, which is supplied with a separate power supply , just for the guns...inside the TC cabinets.
The trigger relay that operates, is on the I/O board, and not in the gun pcb itself. So signal goes from trigger, to I/O board, which fires the relay telling the I/O to fire the 24V line, to activate the solenoid. (of course, happens in milliseconds)
To put that setup in a HOD gun, would be truly impractical. Taking a HOD IR sensor from inside a sega gun, and converting it inside a namco gun, is the more plausible option, but still exceedingly difficult. Due to the I/O boards not being the same, you'd basically have to build your own relay board that tells the 24V line to fire, and install it between the guns trigger switch, and the I/o board.
What would be more reasonable is to start looking at Ghost Squad guns, as they are IR, and use the similar, if not same, IR setup as HOD2 guns, along with the same analogue I/O and gun board. Sure, it's rifles over pistols, but there is recoil, and all the wiring needed would already be there in the Ghost Squad manual, rather than rigging your own complete setup from a Namco gun conversion.