(D) The provisions of this section do not apply if the defendant is charged with a violent offense, as defined by Section 16-1-60, or any felony offense involving a firearm while out on bond or other pretrial release. If the court, pursuant to the limitations of Section 17-15-30, finds that such defendant may be released pending trial, bond must be set at the full United States currency cash bond to the exclusion of all other forms of bond whether the bond is posted by the defendant or with a bondsman. After the defendant fulfills the conditions of the bond, the clerk shall return the cash bond amount paid to the defendant. However, in the event the defendant is required by the court to make restitution to the victim of his crime, the cash bond may be used for the purpose of such restitution. Any currency cash bond must be conditioned on the person charged personally appearing before the court specified to answer the charge or indictment and to do and receive what is enjoined by the court, and not to leave the State, and be of good behavior toward all the citizens of the State, or especially toward a person or persons specified by the court. Additionally, the court may impose any other conditions allowed under Chapter 15, Title 17, and any other provision of law.