Laser Textures

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
Blade
Captain
Captain
Posts: 496
Joined: Fri Apr 04, 2008 11:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Laser Textures

Post by Blade »

Alright, for the map that I'm currently working on, I want one of the troop's lasers to be an aqua color. I opened up imp_weap_inf_pistol_ord and made it look like this:
Hidden/Spoiler:
[code][OrdnanceClass]
ClassParent = "com_weap_inf_pistol_ord"

[Properties]
LaserTexture = "com_sfx_laser_aqua"
LaserGlowColor = "0 197 50 100"
LightColor = "0 197 50 200"[/code]
I also made com_sfx_laser_aqua so it's well... aqua, and saved it as a .tga in BF2_Modtools\Data_***\Common\effects, and then added the dc: to the ReadDataFile for the Empire in my Lua. However, when I munged the side and tested it out in game, the laser was untextured, and there was no light thrown by it at all... I just need to know what I am doing wrong with this, and if there is like, something special to do with ordnance files to edit them.

Thanks in advance for any help.
-_-
Gametoast Staff
Gametoast Staff
Posts: 2678
Joined: Sat May 07, 2005 1:22 pm

Re: Laser Textures

Post by -_- »

Never save new effect files in Common/Effects. Put it in the new custom side's effect folder. If there isn't one, make it.
User avatar
Blade
Captain
Captain
Posts: 496
Joined: Fri Apr 04, 2008 11:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Laser Textures

Post by Blade »

Well, since this is just a test map, I just copied the whole imp side. Would I just save the effect in Sides\imp\effects then?
-_-
Gametoast Staff
Gametoast Staff
Posts: 2678
Joined: Sat May 07, 2005 1:22 pm

Re: Laser Textures

Post by -_- »

Yes.
User avatar
Blade
Captain
Captain
Posts: 496
Joined: Fri Apr 04, 2008 11:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Laser Textures

Post by Blade »

K, thanks, it worked :D.
Post Reply