PDA

View Full Version : where is the effect files for the saber?


Charmin Deluxe
05-30-2003, 12:27 PM
i know the blade of the saber must be an effect .. but cant find it anywhere. is the effect directly in the gamecode or an effect whcih i can edit :)

Psynex
05-30-2003, 01:52 PM
It's a combination of 2 jpgs and a shader file. The shader is called saber, which will be in the shaders folder. And the images are in the /base/models/weapons2/saber dir. There are 2 images per saber color; one is the blade and the other is the glow effect.

Charmin Deluxe
05-30-2003, 06:14 PM
i know ... but i mean the effect! you cant change a saberblade into a .. hmm . flame blade which moves like a lash per shader .. this is only possible if you can edit the efx file .. but a friend of me says it's in the code and so .. hmm.. no chance for me to change edit ;(

Psynex
05-31-2003, 11:56 AM
you could make fx using shaders. Your imagination is a bit limited, but a flame saber should look okay. The reason you are limited is the way the game generates the saber. The glow effect of the saber is a repeated image. When you turn your saber on, the image (which is nothing more then a blurred circle) appears repeatedly up from the hilt. Changing that to an animated texture could give you a firey effect, which one user has done and his saber pak is out there to download.
The second option (which I tried many months ago) is to make the actual saber blade image an animated texture. This is limited by the fact that the blurred circle is layed over this image in order for it to appear. So to get a truley unique saber you'd have to get those 2 images to work together. My first attempt at this type of saber failed misserably, though, that was before I knew anything about shaders, so maybe if I were to try again I'd be more successful.

Scarlett
06-01-2003, 07:12 AM
a friend of me says it's in the code and so .. hmm.. no chance for me to change edit

This is true, it is in the code. You can change it though, since it's in the VM source. The effect type it uses is hard coded though, so you can't change that.. you could however change the effect type if you wanted.

But if programming isn't your thing, then you're out of luck if you want to go beyond simple resource replacing.

Charmin Deluxe
06-02-2003, 04:09 PM
hmm is it possible to link the saber code to an efx file ? so you can change the saber effect by edting the efx linked in the code?

Wanderer
06-04-2003, 09:36 AM
Originally posted by Charmin Deluxe
hmm is it possible to link the saber code to an efx file ? so you can change the saber effect by edting the efx linked in the code?
The blade isn't an effect like the spark or blood_sparks effect.
Maybe you can attach a new effect to the blade but I don't know how to do that.
You won't find an .efx file for the blade in the effects folder...
I tried the same...now I try to modify the sabers.shader to influence the glow