Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

electric effects? how do i make them?

Page: 1 of 1
 stuna213
06-05-2004, 1:56 PM
#1
okay im making a flight map and i thought it would be really cool to have lasers, strobe lights, and other electric effects. could anyone tell me how to make these effects.:D
 zag
06-05-2004, 3:07 PM
#2
strobes lights can be just lights with the right style setting i think or you could script them turning on/off
laser a .efx file would be best or a func_useable with the right kinda shader applied
something like this:(an unused shader from my map)


textures/vas_party/blue_gradient
{
qer_editorimage textures/vas_party/gradient
qer_trans 0.5
surfaceparm noimpact
surfaceparm nomarks
surfaceparm nonsolid
surfaceparm nonopaque
surfaceparm trans
q3map_nolightmap
{
clampmap textures/common/gradient
blendFunc GL_ONE GL_ONE
rgbGen const ( 0.000000 0.000000 1.000000 )
}
}

i think there are several electric style .efx files already ingame check them out
 stuna213
06-05-2004, 3:48 PM
#3
thanks, the .efx files would be in my assets1.pk3 file right?
 stuna213
06-05-2004, 10:33 PM
#4
ok i found em there in the assetse1.pk3 file.
 stuna213
06-05-2004, 10:36 PM
#5
uho now ive got another prob. okay when i make a fxrunner and give it a key of fxfile and a value of lasermp(one of the .efx files i found) it doesnt work. ive tried giving it a target_position and it still doesnt work! i also made sure the start off spawnflag isnt checked. thanks
 wedge2211
06-06-2004, 10:22 AM
#6
give it key: fxFile and value: effects/env/whatever.efx
 stuna213
06-06-2004, 12:53 PM
#7
oh thank you ill try that now
 stuna213
06-06-2004, 1:03 PM
#8
YES IT WORKS WOOT. okay it looks soo cool thanks
 stuna213
06-06-2004, 1:13 PM
#9
okay now how do i make the lasers move? is it possible? if i scripted it what would i do to make the script affect the actual laser and not a func_static? :confused: thanks for the help.
 zag
06-06-2004, 1:36 PM
#10
hmmm im not sure you can script an fx_runner to move...
i guess you want a brush with the right shader instead and script that as a func_static
 stuna213
06-06-2004, 1:46 PM
#11
oh ok yeah i guess a brush with the right shader. hmmmm i dont know how to make shaders. could you point me in the direction of a nice tutorial? thanks
 RoxStar
06-06-2004, 2:09 PM
#12
Try to give the fx_runner and function_train value.
 stuna213
06-06-2004, 2:17 PM
#13
ummmmm could you explain that in english plz? :D thanks :newbie:
 wedge2211
06-06-2004, 6:01 PM
#14
I don't know what he's talking about, but you can't mix two kinds of entities. I think a moving fx_runner could be scripted, though.
 stuna213
06-06-2004, 9:57 PM
#15
oh good im not alone! okay so to get the script to afffect the fx_runner would i just give it a key of script_targetname and a value of somethin like laser1 and then tell the script to effect laser1? i think that might work.
 RoxStar
06-07-2004, 2:30 PM
#16
Originally posted by wedge2211
I don't know what he's talking about, but you can't mix two kinds of entities. I think a moving fx_runner could be scripted, though.

Thats what I meant.
 stuna213
06-08-2004, 2:44 AM
#17
okay where would i find the shader that is on the saber blades? where would it be, and can i use it? thanks :D
 lauser
06-08-2004, 1:27 PM
#18
{
clampmap textures/common/gradient
blendFunc GL_ONE GL_ONE
rgbGen const ( 0.000000 0.000000 1.000000 )
}
}

Wth is clampmap Zag? I know map.....but clampmap? Is that a typo?
 zag
06-08-2004, 1:36 PM
#19
ah no i think its where you clamp the texture so when the shader gets bigger and smaller (dunno why i made the shader do that i made it a bit back) so when it moves it doesnt repeat the shader it just streches it
 stuna213
06-08-2004, 4:35 PM
#20
hmmm i guess noone knows about the saber shaders.:confused:
 zag
06-09-2004, 1:22 PM
#21
arent sabers effects?
i assumed they were shaders with that 360 rotate view thing
 stuna213
06-09-2004, 3:33 PM
#22
yeah i guess maybe they are effects. oh well. okay so i can make a blue laser(like the one on the tripmines) but how do i make other colored lasers? can it be done?
 wedge2211
06-09-2004, 4:21 PM
#23
You could use the program EffectsEd that came with the JA SDK to directly edit the tripmine laser and make it a different color. I've never done that though, so I'm not precisely sure how. Just poke around in EffectsEd.
 stuna213
06-09-2004, 11:35 PM
#24
thanks ill try that
 zag
06-10-2004, 7:20 AM
#25
ah if you want to change the color of the effect just open the .efx file in notepad then to get the right RGB balue you can open up radient then make any entity and hit K to bring up the color thing, you then choose the color you want and then if you open up the entity properties you will see the key "_color" the value for that will be the RGB you want...
then you just find the right bracket in the .efx file it should look like this


rgb
{
start 0.0 0.2 0.6
}
Page: 1 of 1