Here is the modification of the source code CryENGINE 3