RTS View questions

What I want to know is how you get the player to spawn, but in a birds eye view. So the player itself doesn’t spawn? The view itself I already got, atleast I think so, can’t test it yet because fretta isn’t coöperating.

Anyway the view code in the class file:
[lua]function MyCalcView( ply, origin, angles, fov )

local view = {}

view.origin = origin + Vector(0,0,100)
view.angles = angles + Angle(90,0,0)

return view

end

hook.Add(“CalcView”, “MyCalcView”, MyCalcView)[/lua]

Should work right?

Also my fretta gamemode is derriving form base for some reason instead of fretta, while I did in the shared this:
[lua]DeriveGamemode( “fretta” )[/lua]

here is the code from my rts hope it helps

Big thanks there, I’ll test it out once I get my gamemode running, it just won’t derive from fretta for some reason…

If you have the time, could you explain it too me, I mean I’m happy you just gave me the code, but I don’t quite understand it yet. If I understand it I might be able to do more of this kind of stuff myself next time.