First Person Jedi

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Stager00

First Person Jedi

Post 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.
drummerzoid1

RE: First Person Jedi

Post 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.
dreadlordnyax

RE: First Person Jedi

Post 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
Stager00

Post by Stager00 »

Ah..fantastic! Thanks guys. Ill tinker a bit with that when I get off work.
PAN-Fnord

Post 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
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post 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... :wink:

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? :o

It's important to know where to cross the line and where not to :wink:
DeathRow
Master Bounty Hunter
Master Bounty Hunter
Posts: 1561
Joined: Fri Feb 24, 2006 5:55 am
Projects :: None.
Games I'm Playing :: Life
xbox live or psn: No gamertag set
Location: Aussieland.

Post by DeathRow »

I swear I remember seeing a pic of a first-person Obi-wan on console I think
But i cant remember :evil:
Stager00

Post 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?
PAN-Fnord

Post 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
Stager00

Post by Stager00 »

Great info! Thanks!
Post Reply