Questions about 1st person

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
User avatar
destos
Chief Warrant Officer
Chief Warrant Officer
Posts: 349
Joined: Sat Sep 22, 2007 10:37 pm

Questions about 1st person

Post by destos »

ok so i was wondering if you could

1. have a unit locked in first person view

2. edit first person view so you can add certain effects (i basicly wanna make it so that it truely seems like your looking through a visor {in metroid prime if you go by a waterfall your visor fogs up on the sides and you can see water droplets upon it}
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: questions about 1st person

Post by AQT »

1. I pretty sure there is a lua comand for it.

2. You will needs to make a custom HUD.
User avatar
destos
Chief Warrant Officer
Chief Warrant Officer
Posts: 349
Joined: Sat Sep 22, 2007 10:37 pm

Re: questions about 1st person

Post by destos »

ty AQT

does any1 know the lua code?
User avatar
bobfinkl
Rebel Colonel
Rebel Colonel
Posts: 593
Joined: Sun Jul 13, 2008 9:01 am
Projects :: Lots of unreleased stuff
Games I'm Playing :: Life
xbox live or psn: No gamertag set
Location: The quaint little city gametoast.

Re: questions about 1st person

Post by bobfinkl »

It's done via odf, just look at a vehicles odf which forces 3rd person just change that to 1st person and add it to your units odf.
lesovikk1
Captain
Captain
Posts: 484
Joined: Thu Nov 20, 2008 1:29 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: In my own dream world :D
Contact:

Re: questions about 1st person

Post by lesovikk1 »

i dont know about the lua codes but i have a idea for the visor....the republic commado view? can you use it from the game?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: questions about 1st person

Post by Fiodis »

You will need to make a custom HUD, as mentioned above, but I'm not sure you can do ambient effects such as water droplets fall upon it.
User avatar
yukisuna
Rebel Sergeant
Rebel Sergeant
Posts: 210
Joined: Wed Jan 28, 2009 5:50 am
Projects :: My new PC hates the Mod Tools
Games I'm Playing :: See Interests
xbox live or psn: Samura Yukisuna
Location: Stuck in a place full of happy happiness known as Steam.

Re: questions about 1st person

Post by yukisuna »

1: type in ForceMode = 2
2: dont know. will try it myself :)
RogueKnight
Space Ranger
Posts: 2512
Joined: Sat Nov 22, 2008 1:50 pm
Projects :: Life. Work.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: Washington, US

Re: questions about 1st person

Post by RogueKnight »

yukisuna wrote:1: type in ForceMode = 2
2: dont know. will try it myself :)
um... as far as I know, there is no ForceMode=2, you can only put 0 and 1.
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: questions about 1st person

Post by Frisbeetarian »

For two, you are talking about a dynamically changing HUD with relation to surroundings (objects, regions, etc.). While I've never played around with it myself to much detail, I think Rep will confirm that it's more or less impossible.
User avatar
destos
Chief Warrant Officer
Chief Warrant Officer
Posts: 349
Joined: Sat Sep 22, 2007 10:37 pm

Re: questions about 1st person

Post by destos »

i didnt want it to change, i just wanted to add the foggy look to the siding (any1 with glasses and comes indoors after shoveling the driveway from lots of snow can understand what i mean =P) i didnt want a cycling hud even though it would be awesome =P
RogueKnight
Space Ranger
Posts: 2512
Joined: Sat Nov 22, 2008 1:50 pm
Projects :: Life. Work.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: Washington, US

Re: questions about 1st person

Post by RogueKnight »

destos wrote:i didnt want it to change, i just wanted to add the foggy look to the siding (any1 with glasses and comes indoors after shoveling the driveway from lots of snow can understand what i mean =P) i didnt want a cycling hud even though it would be awesome =P
I hate that, mine fog up really bad, and are transition lenses on top of that, so its really hard to see. I see what you mean now, I think, where you just have a non-animated HUD with fog around the outer brim of the screen, I even though about doing something like this once for a RC mod, which i still might do if i ever get around to it.....
User avatar
bobfinkl
Rebel Colonel
Rebel Colonel
Posts: 593
Joined: Sun Jul 13, 2008 9:01 am
Projects :: Lots of unreleased stuff
Games I'm Playing :: Life
xbox live or psn: No gamertag set
Location: The quaint little city gametoast.

Re: Questions about 1st person

Post by bobfinkl »

Im 50% sure you can get that effect through a custom HUD but since I have little to no experience with the HUD I wouldn't know.
VF501
Lieutenant Colonel
Lieutenant Colonel
Posts: 539
Joined: Fri Jun 08, 2007 1:18 am
Projects :: Various Stuff- Weapon models. UDK Stuff
Games I'm Playing :: Fallout New Vegas
xbox live or psn: Vintage Tagious
Location: Terra Firma, Sol System; Milky Way

Re: Questions about 1st person

Post by VF501 »

Messing with the HUD changes it for all units, HUDs are not unit specific.

To make a Unit specific view you need to make a new first person mesh with the Helmet elements placed right and weighted to a static un-animated bone, and with arms rigged/weighted to a skeleton that is setup exact to the stock one used in the games animations. The draw back is the game HUD is overlayed on top of it and if you add health and other indicators to your custom 1st view they wont work, they'll just be static and blink and scroll if you set them to.

Ambient (decal) effects (dirt, water, fog, blood/fluids, and cracks) are not possible in SWBF as far as I know, they might be in the code somewhere but all evidence in the HUD says no. The HUD is comprised of several meshes each calling on different textures. There is no singular mesh (plane) to apply decals to for those kind of effects.
Post Reply