Jump to content

Home

Shader problems


TK-425

Recommended Posts

Hi I want to make the force protection/absorb to have no blue or green effect. So I am working with the effects.shader and close to the bottom of the shader file there is a link to a picture. It was called protect or somthing like that so I put null in place of it but now when I use force protect/absorb it makes the places whare the color changes in the char selection screen turn green or blue when I use either foce power.

Can you help me?

Link to comment
Share on other sites

effects.shader

 

gfx/misc/forceprotect

{

qer_editorimage gfx/effects/p_shield

deformvertexes wave 100 sin 1 1 0 1

{

map gfx/effects/whiteglow

blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR

rgbGen entity

tcGen environment

tcMod rotate 10

tcMod turb 0.6 0.3 0 0.6

tcMod stretch sin 1.5 0.5 0 1

}

{

map gfx/effects/caustic1

blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR

rgbGen entity

tcMod rotate -600

tcMod scale 2 3

}

}

 

I changed gfx/misc/forceprotect to 'null'

Link to comment
Share on other sites

You see, you cannot really delete or remove anything that's in the assets#.pk3s. So, if you want to get rid of this effect, you need to replace it with something. But you can't replace something with nothing, as that would be removing in all but name. That's why you need to modify that shader entry in such a way that it's very simple, and doesn't actually look like anything in game - in practice: Null it.

 

What those modifications really are in code, that's for you to decide and make. One obvious solution might be to have only one totally transparent shader layer (change the texture appropriately).

 

And you can't do things like this unless you learn something about shaders.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...