Jump to content

Home

electric effects? how do i make them?


stuna213

Recommended Posts

Posted

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

Posted

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)

 

  Quote

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

Posted

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

Posted

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.

Posted

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

Posted

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

Posted

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.

Posted
  Quote
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.

Posted
  Quote
{

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?

Posted

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

Posted

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?

Posted

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.

Posted

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

 

  Quote

rgb

{

start 0.0 0.2 0.6

}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...