@name test
runOnTick(1)
EE=entity() #Expression Entity
Owner=owner()
setMass(1000)
MyHeight=vec(0,0,125)
Target=(!Owner:isCrouch() ? Owner:pos()+MyHeight : Owner:aimPos())
applyForce(((Target-EE:pos())*10-EE:vel())*EE:mass())
applyAngForce((-(EE:angles()*5):setYaw(360*2)-EE:angVel())*EE:inertia():length()/sqrt(3))
EE:setColor(0,0,255)
EE:setMaterial("Models/Debug/Debugwhite")
