• Player model aiming in the wrong direction.
    3 replies, posted
I'm having a problem with the player model looking to the left but the actual hit direction is not where the player is looking. [IMG]http://i49.tinypic.com/21999u9.jpg[/IMG] The weapon's hit is where the flashlight is shining but the player's model is looking off into nothingness. This is what I have that is modifying the camera/player [lua] function OverHeadView( ply, origin, angles, fov, vm_origin, vm_angles ) local view = {} view.origin = origin + Vector(0,0,400) view.angles = Angle(90,angles.y,angles.r) ply:SetEyeAngles(Angle(angles.p,angles.y,angles.p)) return view end -- Disable the players pitch aiming function NoPitch( ply, cmd ) local angle = ply:GetViewAngles() ply:SetViewAngles(Angle(0,angle.y,angle.r)) end -- Should the game draw the local player function GM:ShouldDrawLocalPlayer() return true end hook.Add("CalcView", "OverHeadView", OverHeadView) hook.Add("CreateMove", "NoPitch", NoPitch) [/lua] Also, you can't see it in the picture but whenever I shoot I see tracers, is there a way to disable them?
halp
I'm having this same problem, it's not constant, nor is every player effected. But a lot of times people will spawn with their torso/upper body rotated.
I'm making a topdown-shooter too, and i'm having this problem too.. Help.. ? :S
Sorry, you need to Log In to post a reply to this thread.