if you're not using 'player' anywhere you could use that?

player = mouse_ent; etc... you get how it work :P