Code that was modded in source engine for CYF