Added a model locking function to the weapon code.