Just some custom code for CryEngine game