Added the ReadZBuffer class, for motion and weapons to use