Apr 1st, 2020

Garry's Mod Simple Third Person Bind

Never

Third Person Submitted By Hoppip 3 years ago. Version 1.5 Last Updated 2 months ago. Show Download Link. Description Images (7) Changelog 112. How to go Third Person in Gmod. ADVERTISEMENT RECENT SERVER BLOG POSTS There are no blog posts for this server. Technically, verbs aren't singular or plural. Some people call verbs singular or plural because verbs change according to the number of the subject. 'Goes' is the third person singular conjugation. A quick tutorial video on how to go third-person in Garry's mod for consolesvcheats 1only for singleplayer, won't work in multiplayer in most cases.

Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
  1. --Services
  2. local RunService = game:GetService('RunService')
  3. local TweenService = game:GetService('TweenService')
  4. --Player
  5. repeat wait()until Player.Character
  6. repeat wait()until Player.Character.HumanoidRootPart
  7. local HumanoidRootPart = Character.HumanoidRootPart
  8. local CamScript = Player.PlayerScripts.CameraScript
  9. Humanoid.AutoRotate =false
  10. --Mouse
  11. local Popper =true-- Sets whether Popper Cam behaviour is enabled
  12. local DeltaY =0
  13. local AngleV =0
  14. local SensitivityY =120-- Determines how large a change in vertical angle is through a mouse rotation
  15. local SensitivityX =120-- Determines how large a change in the horizontal angle is through a mouse rotation
  16. local A =false
  17. local D =false
  18. local Offset = CFrame.new(2,3,15)-- Determines the CFrame by which the camera is pushed from the CFrame of the HumanoidRootPart
  19. local MaxY =5*math.pi/12-- Determines maximum vertical angle
  20. local MinY =-5*math.pi/12-- Determines minimum vertical angle
  21. {true,false,false,false,0,0},
  22. {false,true,false,false,math.pi/2},
  23. {false,false,true,false,math.pi},
  24. {false,false,false,true,3*math.pi/2},
  25. }
  26. --Camera
  27. Cam.CameraType = Enum.CameraType.Scriptable
  28. local FakeCam = Cam:Clone()
  29. --Functions
  30. AngleH = AngleH - DeltaX/SensitivityX
  31. AngleV =math.clamp(AngleV - DeltaY/SensitivityY, MinY, MaxY)
  32. local FinalCFrame = CFrame.new(HumanoidRootPart.Position)* CFrame.Angles(0, AngleH,0)* CFrame.Angles(AngleV,0,0)* Offset
  33. if(Popper true)then
  34. local Direction =(FinalCFrame.p - Character.Head.Position).Unit *((Offset.p).Magnitude)
  35. local CheckRay = Ray.new(Character.Head.Position, Direction)
  36. local Part, Position = game.Workspace:FindPartOnRay(CheckRay, Character,false,true)
  37. local Distance = Cam:GetLargestCutoffDistance({Character})
  38. Cam.CoordinateFrame = Cam.CoordinateFrame * CFrame.new(0,0,-Distance)
  39. end
  40. if(W true)or(A true)or(S true)or(D true)then
  41. if(Val[1] W)and(Val[2] A)and(Val[3] S)and(Val[4] D)then
  42. local DirectionVector = Cam.CoordinateFrame.lookVector
  43. local TargetCFrame = CFrame.new(HumanoidRootPart.Position, HumanoidRootPart.Position + Vector3.new(DirectionVector.X,0, DirectionVector.Z))
  44. HumanoidRootPart.CFrame = HumanoidRootPart.CFrame:lerp(TargetCFrame * CFrame.Angles(0, Val[5],0),0.25)
  45. end
  46. end)
  47. UIS.InputChanged:Connect(function(Input, Bool)
  48. if(Input.UserInputType Enum.UserInputType.MouseMovement)then
  49. DeltaX = Input.Delta.X
  50. if(DeltaY ~= Input.Delta.Y)then
  51. end
  52. end
  53. if(Bool false)then
  54. W =true
  55. A =true
  56. S =true
  57. D =true
  58. end
  59. if(Bool false)then
  60. W =false
  61. A =false
  62. S =false
  63. D =false
  64. end
RAW Paste Data
Third person view as seen from the front of the player
Third person view as seen from the back of the player

Third person view allows the player to view the nearby environment from an 'outside' perspective.

Usage[edit]

Different perspectives can be toggled by pressingF5 (or fn + F5 on other keyboards). Pressing it once displays the back of the player, and pressing it again displays the front. Pressing it once more reverts to first-person view.

In Bedrock Edition, it can be changed in the settings; this is the only way to switch the camera when using touch to play games.

In China Bedrock Edition, it can be changed in HUD.

When in third-person view, the player can be viewed from an angle of 0 degrees (Y axis) when the mouse is leveled with the ground, up to an angle of 90 degrees when looking straight down toward the player.

If the player suffocates while in this mode, the camera automatically switches back to the first-person view. This does not apply to Pocket Edition.

A third person front view can also be seen while the survivalinventory is open; the player, in this case, always faces the cursor.

Video[edit]

How

History[edit]

Java Edition Indev
20100218The player can now be seen in the previously solid black square in the inventory.
Java Edition Alpha
v1.0.5Third person view no longer causes water particles to surround the player. This may have been an artifact of the F5 rain toggle.
v1.0.14Pressing F5 now switches the view to third person view. When in third person view, the player is off center by one block to the left, giving an 'over-the-shoulder' appearance.
Because mobs looked at the camera and not the player's head, in third person view they looked at the wrong location.
v1.0.17The player is now centered when in third person view.
v1.2.0?Holding F1 while in third person view now causes the front of the player to be shown.
Java Edition Beta
1.3The front of the player is no longer shown by holding F1 while in third person view.
Java Edition
1.0.0Beta 1.9 Prerelease 5The debugging view manipulation, known in the code as the 'deadmau5 camera',[1] was accidentally enabled.
This feature causes the keys Y, H, U, O, I, K, J, L, N, and M to change the camera position in a variety of ways, and pressing F9 freezes the view. Pressing two functionally connected keys at the same time reverts the view back to normal, except pressing U + O.
This feature was added only for deadmau5.[1]
Beta 1.9 Prerelease 6The deadmau5 camera was removed.
releasePressing F5 twice now switches the camera to the front of the player, while it now takes a third press of F5 to switch back into first person view.
1.2.112w08aThe deadmau5 camera was accidentally added again.[2]
The sides of the player's head may now be shown when rotating the view using the deadmau5 camera.
1.2The deadmau5 camera was removed again.
?Being inside of a block no longer reverts the player's view to first person.
1.14?No longer blocked by most non solid blocks like grass.
1.1620w12aNo longer obstructed by glass and other such blocks.
However, it is still obstructed by fences, slime blocks, honey blocks and ice, despite these being transparent or translucent like other such blocks; this is completely intentional.[3]
Pocket Edition Alpha
v0.1.2Added an option for third person view.
v0.12.1build 6Added the front third person view.
Bedrock Edition
1.2.1The crosshair no longer appears in third person view.

Issues[edit]

Issues relating to 'Third-person view' are maintained on the bug tracker. Report issues there.

Trivia[edit]

  • In Pocket Edition, the third-person view allows the player to reach further than in first-person.
Gmod

Gallery[edit]

  • Shoulder camera in Alpha.

References[edit]

How to go to 3rd person in gmodHow
  1. abhttps://twitter.com/jeb_/status/172983022038163456
  2. https://twitter.com/jeb_/status/172982497104240640
  3. MC-175927, MC-177512

Third Person Mode Gmod

How


Retrieved from 'https://minecraft.gamepedia.com/Third-person_view?oldid=1799642'