News:

Come Chat with us live! Learn how HERE!

Main Menu

Tesla-spark/Power cell room

Started by Mexel, August 29, 2007, 04:59:49 AM

Mexel

Interesting idea this is. "Tehpaper" over on the MG IRC had a light bulb moment when i showed him this pic:


Upon showing him this, he said it would be a great idea to have the tesla generator spark/trigger_hurt involved in that room. Which would be a sweet idea.
I looked at the shader, and trail for the tesla, and this idea proves to be somewhat complicated for me. So if anyone could help me getting 1) the shader to work right. 2) getting the trigger_hurt to work in sync with the tesla spark would be awesome!

[edit]Here's the shader for the tesla_bolt.jpg:
models/ammo/tesla/tesla_bolt
{
cull disable
{
map models/ammo/tesla/tesla_bolt.tga
blendfunc add
rgbGen vertex
tcMod scroll 0.2 0
}
{
map models/ammo/tesla/tesla_bolt.tga
blendfunc add
rgbGen wave sin 0 1 0 5
tcMod scroll 0.5 0
tcMod scale -1 1
}
}


and the bolt:


For now I'd just like to get the shader to work right.

Any and all help is greatly appreciated. Thanks, Mexel.

PM me for contact information.[/code]

Caveman

wow! 493KB for lame pics in a signature.
You get the 1. price.

Mexel

/me takes a bow.

Now back to the topic at hand.

Kaleo

So I'm guessing that you want to have a lightning blot in that room... I'd actually make it a particle system.
Quote from: Stannum
Thou canst not kill that which doth not live,
but you can blow it into chunky kibbles!
I has a cookie, and u can has a cookie, but i no givs u mai cookie...

Mexel

See if i could get some help on a partcle system, even a mapping buddy to help me. Then i would do that. But i don't know the first thing about particle systems. :'<

Odin

No. Use the shader.

Make a brush that goes from one point to the other. Move it so one of the sides is in the center of where you want the bolt. Make that side set to the shader. Make all the other sides the Nodraw/Nonsolid shader.

Done. Add effects like tesla coil ambient sound to the room.

Mexel

Quote from: OdinNo. Use the shader.

Make a brush that goes from one point to the other. Move it so one of the sides is in the center of where you want the bolt. Make that side set to the shader. Make all the other sides the Nodraw/Nonsolid shader.

Done. Add effects like tesla coil ambient sound to the room.

Thanks Odin. I was tinkering with the particle systems, and i just can't get it to do what I'm thinking of. So I'll be using the shader.

p0m

Quote from: Mexel
Quote from: OdinNo. Use the shader.

Make a brush that goes from one point to the other. Move it so one of the sides is in the center of where you want the bolt. Make that side set to the shader. Make all the other sides the Nodraw/Nonsolid shader.

Done. Add effects like tesla coil ambient sound to the room.

Thanks Odin. I was tinkering with the particle systems, and i just can't get it to do what I'm thinking of. So I'll be using the shader.

http://tremmapping.pbwiki.com/Trail+System is what you're looking for.

blood2.0

that sound is really anoing how abot just when you get zapped by it