Continuing the rewrite
-Brought back immunity
-Optimized some cvars
-Re-organized some functions
-Got rid of some un-needed checks
-Looks like it should work