Thirdperson View

Can someone tell me how i can make it so im in 3rd person in my gamemode? not using the thirdperson sv_cheats command

You need to use **[Gamemode.CalcView](** to modify the position of the players view and use **[Gamemode.ShouldDrawLocalPlayer](** to enable the drawing of the player. Both of these are clientside.


A simple example:

[lua]function GM:ShouldDrawLocalPlayer()
return true;

function GM:CalcView(ply, origin, ang, fov)
local view = {};
view.origin = origin - ply:GetAimVector()*400 + Vector(0, 0, 200);
view.angles = (view.origin - ply:GetShootPos()):Angle();
view.fov = fov

return view;



I haven’t tested the example, so it may not work.

Couldn’t you of wait-en till your Maker account was unbanned?

Why would I do that?


Couldn’t you have wait until your Cub3 account was unbanned, oh wait…

lol! flame wars! but also to the guy that posted the code, i tested it and tried to make it better but your rendering the players model in such a way that rotates it when you look arround. but apart from that you made a nice wall hack :S

Ok, it was just a quick example to give the OP an idea of what needs to be done.

ok! anyways, nice to see you


now help me with mah problems! lol


but seriously, please do

What problems?

Physcological! Nah jk , look in newboe questions and look for a problem with loops