private bool atSpawn(Vector position) { // check if at the spawn coordinate for sp_a1_intro1 return !(Math.Abs(position.X - INTRO_START_POS.X) > INTRO_START_TOL.X) && !(Math.Abs(position.Y - INTRO_START_POS.Y) > INTRO_START_TOL.Y) && !(Math.Abs(position.Z - INTRO_START_POS.Z) > INTRO_START_TOL.Z); }
private bool onTheMoon(Vector position) { // check if you're in a specific cylinder of volume and far enough below the floor. return Math.Pow(position.X - FINALE_END_POS.X, 2) + Math.Pow(position.Y - FINALE_END_POS.Y, 2) < Math.Pow(50, 2) && (position.Z < FINALE_END_POS.Z); }