There isn't a line that is responsible for not getting hit through windows,you alt tab while vaulting a window to make sure you don't lag back and in that case not get dedi hit aka dedicated.And the teleporting is supposed to happen,it lets you change sides easier on loops