Page 1 of 1
First Person Jedi
Posted: Thu Mar 23, 2006 8:16 pm
by Stager00
Any ideas on how to make the hero's have a first-person view like other units? This would fit well into one of my upcoming mods(dueling).
Thanks in advance.
RE: First Person Jedi
Posted: Thu Mar 23, 2006 9:40 pm
by drummerzoid1
look at the other unit's scripts, i'll try in a maybe an hour or so, use another unit's fp screen.
RE: First Person Jedi
Posted: Thu Mar 23, 2006 10:37 pm
by dreadlordnyax
i noticed this in the geonosian odf, not a jedi, but the idea is probably the same:
Code: Select all
//this keeps the player from entering first person with this char
forcemode = 1
Posted: Thu Mar 23, 2006 10:42 pm
by Stager00
Ah..fantastic! Thanks guys. Ill tinker a bit with that when I get off work.
Posted: Fri Mar 24, 2006 6:12 am
by PAN-Fnord
You can keep someone from entering 1st person mode for a unit, as was already mentioned, but you cannot add it. It's hard coded that if a unit has a lightsaber, there is no first-person allowed.
Mike Z
Posted: Fri Mar 24, 2006 7:36 am
by Qdin
Because it then would bring up the same problems like in SWBF1?
I remember how the hand was atacking and it was like there was a HUD on the screen with the lightsaber - it didn't look well, but it DID bring some more life to the game...
so when exactly are we talking about 'when a unit has a lightsaber'...?what IS determinating whether to have First Person or 3rd view? is it when it uses the lightsaber animation? are we talking about the name of an .odf or .msh?
So what if we have our own weapons, which we name something else, and we use the same .odf for it? and what if we added our own animation to play?
It's important to know where to cross the line and where not to

Posted: Fri Mar 24, 2006 7:46 am
by DeathRow
I swear I remember seeing a pic of a first-person Obi-wan on console I think
But i cant remember :evil:
Posted: Fri Mar 24, 2006 2:44 pm
by Stager00
Ok...what about adjusting the camera angle then. When a JEDI is backed up against a wall...the camera goes to his front...showing his saber glowing but his body gone...
Is there a way to assign that camera angle?
Posted: Fri Mar 24, 2006 8:17 pm
by PAN-Fnord
If any weapon your until has is a classLabel = "melee", you don't get a first person view.
You can get a behind-the-partially-transparent-Jedi kind of view if you copy the CAMERASECTIONs that you want into your Jedi's ODF and change the TrackOffset and Center to what you need. I got decent results with:
Code: Select all
CAMERASECTION = "STAND"
EyePointOffset = "0.0 2.0 0.0"
TrackCenter = "0.0 1.7 0.0"
TrackOffset = "0.0 0.0 0.5"
TiltValue = "10"
CAMERASECTION = "CROUCH"
EyePointOffset = "0.0 1.3 0.0"
TrackCenter = "0.0 1.3 0.0
TrackOffset = "0.0 0.15 0.5"
TiltValue = "10.0"
CameraBlendTime = "0.75"
CAMERASECTION = "SPRINT"
EyePointOffset = "0.0 1.8 0.0"
TrackCenter = "0.0 1.7 0.0
TrackOffset = "0.0 0.0 0.5"
TiltValue = "10.0"
CameraBlendTime = "0.75"
The root of your character is on the floor, between his feet. TrackCenter is the offset from the root of the position the camera is looking at (in X, Y, Z format - positive Z is backward, hopefully that makes sense). TrackOffset is which direction and how far to move the camera from the TrackCenter point. Think about it like TrackCenter goes in the middle of your character, at whateve height his head is, then TrackOffset places the camera around or behind that point.
Also note that this is the ONLY view you will then get for that Jedi.
Mess around with it,
Mike Z
Posted: Fri Mar 24, 2006 11:27 pm
by Stager00
Great info! Thanks!