Print front facing down, use supports. Use plenty of bottom layers to prevent damage caused by potential hits from BBs. The compensator is attached to the barrel with the thread protector cap that comes with the replica. Unscrew the cap, pop the compensator on and screw the cap back on. Use needlenose pliers for the last turns if needed.
The author hasn't provided the model origin yet.