custom door


(forbidden) #1

hello. i added a custom door to my map, it looks perfect! but, when i shoot it it doesn’t have the metal sound. how do i set this?
thanks


(IndyJones) #2

doesn’t it depend on texture shader… ?


(nUllSkillZ) #3

As far as I remember you have to give the door a sound key.
But not all of the sounds work.


(th0rn3) #4

Shader problem


(merlin1991) #5

[QUOTE=forbidden;185991]hello. i added a custom door to my map, it looks perfect! but, when i shoot it it doesn’t have the metal sound. how do i set this?
thanks[/QUOTE]

you need to make a shader for your texture that contains surfaceparm metalsteps, if you just need the sound then a so called compiler only shader should be enough

therefore your shader would look like:

path/to/texture
{
	surfaceparm metalsteps
}

more information about the compiler only shaders here:
http://pumpkin.game-server.cc/q3map2/shader_manual/ch1.html#:q3map


(forbidden) #6

ok so the name of my doors are
XP_allies_door
and
XP_axis_door
the texture folder they are in is XP

so it would be?

textures/XP/XP_allies_door
{
surfaceparm metalsteps
}
then i got to make one for each?


(forbidden) #7

oh and how do i make it make the knocking noise if its the wrong team for the door?


(Pegazus) #8

Don’t name it XP_allies_door, name it xp_allies_door. Capital letters can get you issues later.
To make the knocking noise it’s rather easy.
Select your door, press N and enter these.

allowteams - axis,cvops if you want it to be allied door, just change axis to allies. Now if an enemy wants to open an Axis door they get the knocking sound.

Also you can write all your doors in one shader file. So no need to write a new shader file for every new door.

textures/xp/xp_allies_door
{
surfaceparm metalsteps
}

textures/xp/xp_axis_door
{
surfaceparm metalsteps
}


(rambo13) #9

LOL forb? isnt it easier to read/learn from manual than spamming stupid posts/topics all over the forum?

ill teach u something new… its called google, yes google, ever heard?
or u can just use this one for finding tutuorials http://www.splashdamage.com/forums/showthread.php?t=1270


(forbidden) #10

yeah ur right rambo… i did look in there, and i didnt find one, sorry i botherd u with my posting,

anyways, back on topic.

i have what u typed up there in my script folder, but it still doesnt make the metal sound when i shoot it.
is it in the wrong folder?


(Pegazus) #11

[quote=forbidden;186031]
i have what u typed up there in my script folder, but it still doesnt make the metal sound when i shoot it.
is it in the wrong folder?[/quote]

Did you update your shaderlist?


(forbidden) #12

i dont think so… how do i add those to my shader list?


(Pegazus) #13

That is simple.
Go into your scripts folder and look for a notepad file named shaderlist. When you open it you get a list of all the shaders. Add your shader name (for example doors_metal) into the bottom of the list and save the file. Then go and test it out to see if you get the metal sound.


(forbidden) #14

so,
the folder they are in is xp.
so i just add xp to my shader list?


(Pande) #15

q3map_material metal


(Qualmi) #16

here is a short howto, probably i will repeat some things:

your texture for the door needs a shader. so write what pegazus have posted in a normal texteditor and save it as myfirstshader.shader and put it in your scripts-folder.

in order to tell the engine to load up your shader, you must tell it somehow that there exist a shader which it must load. this is what the shaderlist is for. so go to the shaderlist.txt-file and simply add the name of your shader. in this case: myfirstshader.

now it should work.

if it is still not working your shader-file will probably contain wrong information about the texturepath. so to exclude that at last before you really should read some tutorials go to the shaderfile and edit the path of your texture.

example:
texturename: tex1.jpg
texturefolder: textures/mytextures/tex1.jpg.

so your shader should look like this:


textures/mytextures/tex1
{
	surfaceparm metalsteps
	implicitMap -
}