Shader question


(u_ny) #1

Hi, I’m trying to add some extra steps to the “explosion” animation (airtrikes, FFE…) mainly for replays and movie-making purposes.

I’ve found in _unsorted.shader the animation, I don’t know much about shaders, I just tried to edit explode1, blacksmokeanim, blacksmokeanimb and blacksmokeanimc like this:

(...)
explode122
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr021.tga
		blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

explode123
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr022.tga
		blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

[B]// Extra Steps Bellow[/B]
explode124
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr023.tga
		blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}

explode125
{
	cull none
	nofog
	nomipmaps
	nopicmip
	{
		map sprites/explode1/spr024.tga
		blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
	}
}
(...)

Unfortunately, it didn’t work. The animation was still the same.

Oh and yes i have some extra TGAs!

Is what I’m trying to do possible? If yes, some help would be really appreciated!


(IndyJones) #2

i think how many frames has explosions etc is written into game code… did u make new pk3 with new .shader?


(u_ny) #3

oh… makes sense.

yes, yes, of course, a nice pk3 with the shader and TGAs in their respective directory.