I don't know D3D but from what I see and I'm 99% sure that this is just the code to draw the box. The whole script contains 12 different line draw functions and the box has exactly 12 lines so that's what it does and the thing it's missing is the code to find the position of the actual player that the box will be drawn around. The code should be put in the () of the last line and it should work if we have some bypass and I repeat I don't know any D3D so it may not be this way