The idea is that there could be a weapon type that is essentially a deployable turret.
To use the weapon you must select it's slot number and press the left mouse button to deploy it, it will face the direction that the user was facing when deployed. Once it is deployed, the user can mount the turret by pressing 'E' while near the weapon. The player can still move around while mounted but if they attempt to move too far from the gun they will dismount it and no longer be able to fire. The player can only fire in the direction that the gun was deployed.
To deactivate the turret, A player will need to crouch and press E while near it, doing so will revert it back to a standard weapon entity. If a hostile player fired at the turret enough times the weapon will also be deactivated, It can still be picked up but requires a moderate cool down before it can be used again.