public static bool Prefix() { for (int index = 0; index < 8; ++index) { InputProfile inputProfile = InputProfile.Add("MPPlayer" + (index + 1).ToString()); inputProfile.Map((InputDevice)Input.GetDevice <GenericController>(index), "LEFT", 4, false); inputProfile.Map((InputDevice)Input.GetDevice <GenericController>(index), "RIGHT", 8, false); inputProfile.Map((InputDevice)Input.GetDevice <GenericController>(index), "UP", 1, false); inputProfile.Map((InputDevice)Input.GetDevice <GenericController>(index), "DOWN", 2, false); inputProfile.Map((InputDevice)Input.GetDevice <GenericController>(index), "JUMP", 4096, false); inputProfile.Map((InputDevice)Input.GetDevice <GenericController>(index), "SHOOT", 16384, false); inputProfile.Map((InputDevice)Input.GetDevice <GenericController>(index), "GRAB", 32768, false); inputProfile.Map((InputDevice)Input.GetDevice <GenericController>(index), "QUACK", 8192, false); inputProfile.Map((InputDevice)Input.GetDevice <GenericController>(index), "START", 16, false); inputProfile.Map((InputDevice)Input.GetDevice <GenericController>(index), "STRAFE", 256, false); inputProfile.Map((InputDevice)Input.GetDevice <GenericController>(index), "RAGDOLL", 512, false); inputProfile.Map((InputDevice)Input.GetDevice <GenericController>(index), "LTRIGGER", 8388608, false); inputProfile.Map((InputDevice)Input.GetDevice <GenericController>(index), "RTRIGGER", 4194304, false); inputProfile.Map((InputDevice)Input.GetDevice <GenericController>(index), "SELECT", 4096, false); if (index == 0) { InputProfile.active = inputProfile; } } Input.ApplyDefaultMappings(); InputProfile.Add("Blank"); return(false); }