Adding a flashlight to a weapon?

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
Luke
Private First Class
Posts: 75
Joined: Sat Feb 18, 2012 5:36 am
Projects :: Caron Prime - Liberation Action
Games I'm Playing :: SWBF2 SWRC
Location: Germany

Adding a flashlight to a weapon?

Post by Luke »

Hey,

here I'm again. And I've a question if it's possible to create a flashlight on a weapon or simply attach a light to a weapon.

So far, I've already tried it on the easiest way I could imagine. I simply loaded a rifle (for the test the CIS blaster rifle) with ZETools into XSI and added a new hard point for the light called hp_flashlight. The I exported it, went into the weapon's ODF file and this lines like you would do it if you are attaching a light to a hard Point of a prop:

Code: Select all

AttachOdf = "flashlight"
AttachToHardPoint = "hp_flashlight"
I also created a light ODF called "flashlight". Then I added this rifle to my B1-Battle Droid, munged Common and the cis-side.
Then I started the game a loaded my map and the rifle was there, but no light was shining on the place where it should be.

So, my question is, if it's after all possible to attach a light to a weapon or not. (Or is it just a munge issue caused of the same way my new override texture for the droid sniper isn't showing up?)
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: Adding a flashlight to a weapon?

Post by Marth8880 »

You can't really attach a flashlight to a weapon because ODFs can only be attached to the 'prop' class label (see here), but you can sort of create a flashlight weapon.

Refer to these threads:
http://www.gametoast.com/forums/viewtop ... 27&t=18788
http://www.gametoast.com/forums/viewtop ... 27&t=17878
Post Reply