COM_AddCommand("mousemoveoverhaul", function(player) if player.mousemoveoverhaul == false player.mousemoveoverhaul = true CONS_Printf(player, "Mouse Move Overhaul enabled.") elseif player.mousemoveoverhaul == true player.mousemoveoverhaul = false CONS_Printf(player, "Mouse Move Overhaul disabled.") end end, 0) addHook("PreThinkFrame", do for player in players.iterate if player.mo and player.mo.valid if player.mousemoveoverhaul == nil player.mousemoveoverhaul = false end if player.mousemoveoverhaul == true if mouse.rdx > 1 player.cmd.sidemove = min(mouse.rdx, 50) end if mouse.rdx < -1 player.cmd.sidemove = max(mouse.rdx, -50) end if mouse.rdy > 1 player.cmd.forwardmove = max(-mouse.rdy, -50) end if mouse.rdy < -1 player.cmd.forwardmove = min(-mouse.rdy, 50) end end end end end)