The rapier actually wasn't invented until about 1540, and didn't see widespread adoption for another century. Plate armor, pollaxes, and the arquebus (gun) all predate the rapier by more than a century.
Sidearms like the sword, rapier, katana and so forth were primarily used in close quarters...