HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

fps camera help:)

03-25-2004, 08:10 PM#1
Quetz
I've been attempting to create a first person shooter, and I have come into a bit of a snag. I'm trying to make it appear as though you really are in first person, and the camera is still showing some of the unit despite my efforts to make it otherwise. I am also having trouble when going up cliffs, as seen in the pictures below. Here is the exact camera trigger:

CamLock Red
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Camera - Apply Camera 001 Copy <gen> for Player 1 (Red) over 0.20 seconds
Camera - Set Player 1 (Red)'s camera Rotation to (Facing of Metal Marine 0010 <gen>) over 0.05 seconds
Camera - Set Player 1 (Red)'s camera Height Offset to ((Real((Terrain cliff level at (Position of Character[1])))) x (90.00 - 50.00)) over 0.00 seconds
Camera - Lock camera target for Player 1 (Red) to Metal Marine 0010 <gen>, offset by (0.00, 0.00) using The unit's rotation
Camera - Set Player 1 (Red)'s camera Field of view to -500.00 over 0.00 seconds
Camera - Set Player 1 (Red)'s camera Distance to target to -500.00 over 0.00 seconds
Camera - Change camera smoothing factor to 30.00

As you can see, I am using a modified-possibly for the worst-version of Hunter1000's fps camera trigger, as well as the actual camera.

Any possible suggestions would be appreciated.

Edit: Also, I am having some trouble adding some fog to my map...I always end up with either being able to see nothing for the whiteness (Although the lights on those marines really do work:) Good job to whoever made it. The name KD(?) Wolf comes to mind )
03-27-2004, 04:51 PM#2
Quetz
Are those screenshots working right? i'm not seeing the pictures on my screen, just wondering.

I've also got another questoin: What would the best way to get a backward motion be for when you hit the down arrow? Just a 180 degree turn or is there some secret way to get the marine to walk backwards while facing forwards, barring model editing

Also, quite a few people have looked at this thread, and sitll no replies? Please people, I really am stumped here.
03-28-2004, 11:21 AM#3
KofA_Maps
I'm having the same problem, my friend said that I would need a JASS script to do it correctly.
03-29-2004, 03:36 AM#4
Wolf Boy
just do
Code:
actions apply camera1 to unit1 (offset 20.0)
03-29-2004, 04:27 AM#5
ThyFlame
Viewable form of the top screenshots
03-29-2004, 04:29 AM#6
ThyFlame
Quote:
Originally Posted by Quetz
Are those screenshots working right? i'm not seeing the pictures on my screen, just wondering.

I've also got another questoin: What would the best way to get a backward motion be for when you hit the down arrow? Just a 180 degree turn or is there some secret way to get the marine to walk backwards while facing forwards, barring model editing

Also, quite a few people have looked at this thread, and sitll no replies? Please people, I really am stumped here.


Could move the unit to point offset by 10 towards abs(360-facing angle of marine)

Sorta jumps back, but its the closest thing you can get.. 4 works best I think.


[edit]
Meant to edit previous post, my apologies.