FPS Player Camera Position
by ryandewitt.com · in General Discussion · 01/20/2005 (6:16 am) · 9 replies
I would like to make the default camera position to start viewing the entire player from behind instead of the weapon view.
Thanks
Ryan
Thanks
Ryan
#2
01/21/2005 (6:12 am)
Thanks Bryce. I'll give it a try. Ryan
#3
01/21/2005 (6:16 am)
No problem. take into mind i havent tested it yet, though.
#4
starter.fps/server/scripts/game.cs in the function startGame()
just added the line "$firstPerson = false;"
Its worked for me so far, but I cannot guarantee that this is the best place.
01/21/2005 (6:26 am)
Hmm, I didn't know where exactly to add it myself when I did it. But i put it instarter.fps/server/scripts/game.cs in the function startGame()
just added the line "$firstPerson = false;"
Its worked for me so far, but I cannot guarantee that this is the best place.
#5
01/21/2005 (7:51 am)
You need to add it on the client side
#6
It seemed logical to me as it seemed like a client side operation. But the spawning of the player and starting of the game was done on server side, so I just put it in there, and its worked fine. Where would I set it on client side?
01/21/2005 (9:20 am)
Hmm, what is the reasoning for this Thomas?It seemed logical to me as it seemed like a client side operation. But the spawning of the player and starting of the game was done on server side, so I just put it in there, and its worked fine. Where would I set it on client side?
#7
01/21/2005 (2:41 pm)
I doubt its there, but maybe theres a game.cs in the client folder. Maybe theres a StartGame() function there.
#8
01/22/2005 (2:46 am)
@Vernon - this might not be relevant anymore (long time I've messed around with it), but I couldnt get the $firstperson = 1; to work when doing it server side. I then moved that line onto the client side and added a clientCommand into the server\scripts\game.cs to trigger that code when clients enter the game. That worked. So I've stuck to that ever since.
#9
[The best part: Turn on the news, look at the weather in Minnesota, and laugh your butt off at the temperatures]
01/22/2005 (6:10 am)
I hope you get some good help from other people. Im going to mexico for a week this monday.[The best part: Turn on the news, look at the weather in Minnesota, and laugh your butt off at the temperatures]
Torque Owner Bryce
Tactical AI Kit
$firstPerson = !$firstPerson;
somewhere in that function. What it does is find out if the player starts in first person view, which is by default, and then sets it to the opposite setting. Hope things work out!