Maybe try setting me before c_trace:
me = player;

And maybe the player is not created yet when calling TeleportGun the first time.