Page 1 of 1

Laser Textures

Posted: Tue Aug 12, 2008 10:16 pm
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.

Re: Laser Textures

Posted: Tue Aug 12, 2008 10:20 pm
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.

Re: Laser Textures

Posted: Tue Aug 12, 2008 10:23 pm
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?

Re: Laser Textures

Posted: Tue Aug 12, 2008 10:24 pm
by -_-
Yes.

Re: Laser Textures

Posted: Tue Aug 12, 2008 10:39 pm
by Blade
K, thanks, it worked :D.