HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

First person camera engine with no 3rd party programs

10-17-2004, 01:43 AM#1
a thing
http://wc3sear.ch/index.php?p=Maps&ID=2200&sid=

Just C + P the triggers and the FPCCameraFields function. You might need to adjust the FarZ in the FPCCameraFields function.
10-17-2004, 02:15 AM#2
Fluff
Awesome! I'd prefer setting the camera back a little so you can see the back of the unit, or maybe adjust it so you can see the gun like in a shooter.
10-17-2004, 02:46 AM#3
a thing
Quote:
Originally Posted by FLUFF
Awesome! I'd prefer setting the camera back a little so you can see the back of the unit, or maybe adjust it so you can see the gun like in a shooter.

1. then it wouldn't be first person

2. You'd need a custom model with an extended gun for that or a huge unit or (I'm not sure about this one) make the game fade in with a custom BLP that has a gun on the bottom of the screen like in an FPS game with the rest alphaed-out.
10-17-2004, 03:02 AM#4
truearkx
So how Would i put it In like Legacies camra? or somthing
10-17-2004, 03:35 AM#5
a thing
Umm... what's Legacies?
10-17-2004, 07:11 AM#6
rtm2
Definition:

Legacies Tides of the Serpent: A very good RPG, IMPOSSIBLE to unlock by far. Lots of noobs try to unlock it. None have succeded.
10-17-2004, 11:50 PM#7
truearkx
So how do you set the far Z??? I can't seem to do it :(
10-18-2004, 12:00 AM#8
a thing
Edit the real in the line
Code:
        call SetCameraFieldForPlayer( ConvertedPlayer(i), CAMERA_FIELD_ZOFFSET, 195.00, 0 )
in the function FPCCameraFields
10-18-2004, 11:19 PM#9
Linera
I have 2 questions.

1st. How do I make it so I can use keyboard control?

2nd. How can I make it so camera will follow unit up and down hills, ramps, etc.
10-19-2004, 06:08 AM#10
truearkx
:/ i tryed useing it on my map lol And it gave me a Complare error
10-19-2004, 12:39 PM#11
a thing
Quote:
Originally Posted by Linera
I have 2 questions.

1st. How do I make it so I can use keyboard control?

2nd. How can I make it so camera will follow unit up and down hills, ramps, etc.


1. You'll have to do that yourself. Keep in mind they can still use the move and attack commands.

2. I'm working on that.

@truearkx - Where did you get a compile error?
10-19-2004, 08:22 PM#12
Linera
I'll study your engine and try to make it so you can go up and down hills and ramps. If I finish it before you I'll post it on this threed.
10-27-2004, 08:39 PM#13
Taelrie
I can't really help much because this isnt' my computer and I can't use the WE for reference, but u can get the coordinates of the unit (called location in the GUI) which includes the z axis. If you made 2 variables, got the z loc of the unit at say the start of a second then get the zloc after the second second, then check if the second is greater or lesser then the first. If it is lower, lower the panning, if it is positive, raise the panning. It would take a lot of guess and check to get the exact amount u should pan but that is how I would do it.