F9 - 1st and 3rd Person Cam Views?

Ask questions, discuss ideas, get answers
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

F9 - 1st and 3rd Person Cam Views?

Post by Swaffy »

[This place needs an "UNSOLVED" subject prefix.]

I have a few tanks, including the Sherman and Panzer 4, that have the 1st person view camera moved out of the tank, behing it, and slightly up. This allows the player to aim in 3rd person view, which is very cool. But for those wwho still like the 1st person view, they won't have it.

How can I set the F9 cameras up to where the F9 button will switch between the two [1st and 3rd person] camera views?
What is the coding that is used for such things?

This is a video showing my 3rd person camera views on the Sherman, Chi-Ha, and Panzer 4.
(Video deleted)
Last edited by Swaffy on Tue Jul 03, 2012 8:15 pm, edited 3 times in total.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: F9 - 1st and 3rd Person Cam Views?

Post by fo0k »

Use the nosecam.. So normal f9 will be inside and then when you hit f9 again for nosecam you can position the offset up and behind the turret.. Rather than on the nose.

Never tried this on a tank though so not sure if it will affect turret rotation.


easy to try though... So worth a shot.

Grab the code from the camera of a plane
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: F9 - 1st and 3rd Person Cam Views?

Post by Swaffy »

Thanks, I'm glad you know what I'm talking about. But I am asking what code I use so that:

1 - I can add the second camera view [there's only one camera when the F9 button is pressed].
2 - I would like to change the positions of both cameras.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Iced Earth
Posts: 209
Joined: Sun Oct 18, 2009 2:07 pm
Contact:

Re: F9 - 1st and 3rd Person Cam Views?

Post by Iced Earth »

You sure you know what he means? :P

Take the planes for example...you get in, you are in F9 view...but if you hit F9 again, you get the 'nose cam'...so try copying that??
Image
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: F9 - 1st and 3rd Person Cam Views?

Post by fo0k »

so in the objects.con of your vehicle you move the camera position, right?

Then for the actual 'shermancamera' object (or whatever you use) add this to the bottom. (The values I have used are a rough estimate for what you are after)

ObjectTemplate.toggleMouseLook 1
ObjectTemplate.OutsideHudOffset 0/2/-3

then then make that offset a position relative to your normal camera position.. offset behind turret.
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: F9 - 1st and 3rd Person Cam Views?

Post by fo0k »

So I tried this and camera was locked as I suspected. also would not allow mouselook when holding shift.. not sure why.

Not played heroes mod but are the tanks not more like this in that?
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: F9 - 1st and 3rd Person Cam Views?

Post by Apache Thunder »

Mouse lock only works properly if used on a vehicle set to the aircraft category I believe. Nose cam should be activated by the OutsideHudOffset command by itself and should work on any vehicle class.
ImageImageImage
I have cameras in your head!
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: F9 - 1st and 3rd Person Cam Views?

Post by fo0k »

can you have 2 seats in a pco that both control the engine/turret etc? each with a different view.
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: F9 - 1st and 3rd Person Cam Views?

Post by Apache Thunder »

Extra seats would require separate PCO objects. None of which can control a single engine/weapon child object. Sadly, this can't be done. :(
ImageImageImage
I have cameras in your head!
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: F9 - 1st and 3rd Person Cam Views?

Post by Swaffy »

Thanks for trying, guys. I guess I'll just stick with only having the 3rd person view. No big deal nonetheless.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Post Reply