It’s hidden in C++ somewhere, related to Start Ranged Weapon Targeting
found in GA_Weapon_Fire I believe.
It’s probably just a trace from the muzzle to an end point. An end point gotten by first doing a trace from the camera to a forward vector, far enough to hit wherever you might have a target. That will send a bullet to the crosshair.