How do I make a vehicle prop? [Solved]

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
Cattermelon
Private
Posts: 41
Joined: Mon Aug 28, 2017 12:14 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

How do I make a vehicle prop? [Solved]

Post by Cattermelon »

I was wondering if there was any way to make a vehicle into a prop, so that, for example, i could have three at-st's lined up in a row, but instead of actual vehicles you can enter, they're simply props. I looked around the forums and tried an idea from one thread I found, but with no luck. Help would be much appreciated!
Last edited by Cattermelon on Sun May 13, 2018 9:39 am, edited 1 time in total.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: How do I make a vehicle prop?

Post by Marth8880 »

Which thread did you try an idea from? :o

In any regard, all you need to do (in most cases) is create a prop ODF for the vehicle. :)

Code: Select all

[GameObjectClass]
ClassLabel      = "prop"
GeometryName    = "vehicle_mesh_name.msh"

[Properties]
GeometryName    = "vehicle_mesh_name"

FoleyFXGroup    = "metal_foley"
Cattermelon
Private
Posts: 41
Joined: Mon Aug 28, 2017 12:14 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: How do I make a vehicle prop?

Post by Cattermelon »

I honestly don't remember, ha ha. But I'm pretty sure it was the same thing you suggested to me. Anyways, I tried it, and it worked... kind of. This is what I wrote in the prop odf file, which I saved in my world's odf folder.

Code: Select all

[GameObjectClass]
ClassLabel = "prop"
GeometryName = "imp_walk_atst.msh"

[Properties]
GeometryName = "imp_walk_atst"

FoleyFXGroup = "metal_foley"
When I placed the prop in the editor as well as in-game it looked quite odd (i have screenshots ready to send but couldn't figure out how to embed pictures). I had no errors in my debug log either. So, what now?
DylanRocket
2nd Lieutenant
2nd Lieutenant
Posts: 363
Joined: Sun Sep 02, 2012 2:47 am
Projects :: None
Games I'm Playing :: SWBF2
xbox live or psn: No gamertag set
Location: HK Factory
Contact:

Re: How do I make a vehicle prop?

Post by DylanRocket »

I believe that happens because you haven't assigned any animation to the prop.

Try this:

Code: Select all

[GameObjectClass]

ClassLabel      =   "animatedprop"
GeometryName    =   "imp_walk_atst.msh"


[Properties]

GeometryName    =   "imp_walk_atst"
AnimationName   =   "imp_walk_atst"
Animation       =   "idle"

FoleyFXGroup = "metal_foley"
It will probably still look weird in Zero Editor but should look fine in-game. Be sure to copy the AT-ST animations to your map's munged folder.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: How do I make a vehicle prop?

Post by AQT »

Cattermelon
Private
Posts: 41
Joined: Mon Aug 28, 2017 12:14 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: How do I make a vehicle prop?

Post by Cattermelon »

So, everything seems to be in order now except, and I know this sounds crazy, the cockpit isn't in place. It's, like, half submerged in the ground.

UPDATE:
I found this error in the debug log, figured it would be helpful.

Code: Select all

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\FLEffect.cpp(427)
Attach: model '' [ddf82d1c] has no hardpoint '' [845f8034]
2nd update:
I went over everything again, and this time the solution AQT pointed me to worked. Everything is running smoothly now. Thanks a bunch for the help!
Post Reply