diff --git a/src/shared/defs.h b/src/shared/defs.h index 16e697f7..1a47a975 100644 --- a/src/shared/defs.h +++ b/src/shared/defs.h @@ -503,4 +503,14 @@ Route_GetJumpVelocity(vector vecFrom, vector vecTo, float flGravMod) vecJump[2] = 280; #endif return vecJump; +} + +bool +FileExists(string filePath) +{ + if (filePath != "") /* not empty */ + if not(whichpack(filePath)) /* not present on disk */ + return false; + + return true; } \ No newline at end of file