Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --local convar = CreateConVar( "thirdperson_enabled", "0", { FCVAR_ARCHIVE, } )
- hook.Add( "ShouldDrawLocalPlayer", "ThirdPersonDrawPlayer", function()
- --if convar:GetBool() and LocalPlayer():Alive() then
- return true
- --end
- end )
- --local Laser = Material( "cable/redlaser" )
- hook.Add( "CalcView", "ThirdPersonView", function( ply, _, _, fov )
- --if convar:GetBool() and ply:Alive() then
- local ang = ply:EyeAngles()
- local dir = ply:GetAimVector()
- local origin = ply:EyePos() + (dir * -30) + (ang:Right() * 20)
- return GAMEMODE:CalcView(
- ply,
- origin,
- (ply:GetEyeTrace().HitPos - origin):Angle(),
- fov
- )
- --end
- end )
Advertisement
Add Comment
Please, Sign In to add comment