I've been trying to add gravity to the camera so it says on the ground and not in a noclip mode.
Here is the code for just the camera :
`Setup Camera
autocam off
position camera 0,200,0
set camera range 1,100000
set camera fov 85
backdrop off
`Camera Control
cr#=0:cf#=0
if rightkey()=1 or KEYSTATE(32)=1 then cr#=-0.5
if leftkey()=1 or KEYSTATE(30)=1 then cr#=0.5
if upkey()=1 or KEYSTATE(17)=1 then cf#=0.5
if downkey()=1 or KEYSTATE(31)=1 then cf#=-0.5
ncr#=curvevalue(cr#,ncr#,2)
ncf#=curvevalue(cf#,ncf#,2)
cx#=cx#+mousemovey()*0.2
cy#=cy#+mousemovex()*0.2
if cx#>80 then cx#=80
if cx#<-80 then cx#=-80
ncx#=curveangle(cx#,ncx#,2)
ncy#=curveangle(cy#,ncy#,2)
move camera ncf#
rotate camera 0,wrapvalue(ncy#-90),0
move camera ncr#
rotate camera 0,wrapvalue(ncy#+90),0
rotate camera ncx#,ncy#,0
This is the setup to noclip. Also note im using evolved's camera code so I will have to give the credits to the code for him. The map is a mapscape .dbo file and doesn't have any collisions yet, i'm acturly adding the collisions as I speak so that's not rly a major problem.
Thanks for any help
Windows 7, Amd Athlon 7750 Black Editon (64 bit,3ghz + Dual Core), ATI Readon HD 4870 1gb Edition, 4gb Ram.