Attaching an Effect to a Flyer Turned 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
User avatar
yuke5
Field Commander
Field Commander
Posts: 945
Joined: Wed Jun 29, 2011 10:42 pm
Games I'm Playing :: SWBF2 TF2 RC KOTOR
xbox live or psn: My steam is yuke5.
Location: Vermont

Attaching an Effect to a Flyer Turned Prop [SOLVED]

Post by yuke5 »

My map features speeders flying above a set area. I took some community made assets and modified the odfs so that they were no longer flyers and just props. However, I want to add the effects they models had as flyers to the props. For example, I used Mav's tie_fly_atr:

Mav's ODF (the part pertaining to effects):
Hidden/Spoiler:
//1
ThrustEffect = "com_sfx_exhaust_jedistarfighter_blue"
ThrustAttachPoint = "hp_thrust1"
ThrustEffectMinScale = "0.5"
ThrustEffectMaxScale = "1.4"
ThrustEffectScaleStart = "0.55"
My simplified, prop, ODF:
Hidden/Spoiler:
[GameObjectClass]
ClassLabel = "prop"
GeometryName = "tie_fly_atr6.msh"

[Properties]
GeometryName = "tie_fly_atr6"

AttachEffect = "com_sfx_exhaust_jedistarfighter_blue"
AttachToHardPoint = "hp_thrust1"
I looked at the odf parameters on Psychofred's site, but I could not find anything pertaining to scale and stuff under the "prop" section.

Basically, the problem is that I can't get an effect to show up on a model.
However, I don't know if the issue is simple, or if it can be solved by adjusting the scale of the effect somehow.

Also, if I can get this problem solved, I'm would also like to know if it is possible to attach multiple effects to a single prop, and if so, if it is possible to offset the effect.

Thanks in advance!
Last edited by yuke5 on Sat Jun 23, 2012 8:50 pm, edited 1 time in total.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Attaching an Effect to a Flyer Turned Prop

Post by AQT »

Just change your ClassLabel to armedbuilding, and the effect will show up. Be sure to keep this in mind if you plan to animate it.

I believe you can only attach one effect/ODF per hard point on a model, so you might need more hard points to attach additional effects/ODFs. Offsetting effect ODF parameters might just pertain to flyers, but it is possible for you to offset it via the position values in the .fx file itself.
User avatar
yuke5
Field Commander
Field Commander
Posts: 945
Joined: Wed Jun 29, 2011 10:42 pm
Games I'm Playing :: SWBF2 TF2 RC KOTOR
xbox live or psn: My steam is yuke5.
Location: Vermont

Re: Attaching an Effect to a Flyer Turned Prop

Post by yuke5 »

Okay, I'll try it, and let you know if it works. I don't know how to modify effects, but I guess I have to learn eventually anyway. :D

EDIT:

It works! Thank you!
Hidden/Spoiler:
Image
Post Reply