sound pack, question.


(kill4money) #1

I just made a sound pack for enemy territory. I was wondering if you could put a background picture on the Quick Chat Message???. I know you can do it in Return To Castle Wolfenstein. But i don’t know if you can do it in, ET. So if someone can help me, that would be great. I wanted to have a picture like this. http://i22.photobucket.com/albums/b314/Kill4Money/god.gif


(carnage) #2

y of course u can

first u need to write a shader for that time for the transparency etc and max 8 frames of animation is posible

then look though you pk3 files. the file u need is a .UI file (user interface) if you find the right one then u can add the needed comand to draw ur pic on it before the text

and remeber. never alter your original pk3’s make a copy


(kill4money) #3

Damn, i don’t know what the hell you talking about. This is my first time making a sound pack. The UI files will be in ui folder, right?. And in a file called ui_assets (in the script folder) i found this. O this is the pak0.pk3.

ui/assets/quickmessage_background
{
nocompress
nomipmaps
nopicmip
{
map ui/assets/quickmessage_background.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}

If you could help me out alittle bit, that would be sweet.


(kill4money) #4

Is this what i am looking for? (Found this in menudef.h)

#define WINDOW_STYLE_EMPTY 0 // no background
#define WINDOW_STYLE_FILLED 1 // filled with background color
#define WINDOW_STYLE_GRADIENT 2 // gradient bar based on background color
#define WINDOW_STYLE_SHADER 3 // gradient bar based on background color
#define WINDOW_STYLE_TEAMCOLOR 4 // team color
#define WINDOW_STYLE_CINEMATIC 5 // cinematic


(jet Pilot) #5

in your etmain/scripts folder (if it doesn’t exist, make one)

make a new .shader file, name it whatever you want, with the extension .shader
for example kill4money.shader

open it with notepad, edit it like so (replace kill4money with whatever you want to name the shader)


sprites/kill4money
{
	nocompress
	nopicmip
	{
		map sprites/kill4moneyl.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
	}
}

also in your etmain/scripts folder, copy wm_axis_chat.voice & wm_allies_chat.voice from pak0.pk3, and edit the copies to include your new chats.


kill4money
{
	sound/kill4money/kill4money.wav		"I'd kill for some money"		sprites/kill4money
}

now in etmain/sprites (again, make it if it doesn’t exist) put kill4money.tga (or whatever you named it)

now put those in your new pk3, be sure that they keep the relative paths (ie scripts and sprites) Make sure the pk3 comes after ‘pak’ alphabetically, ‘kill4money’ wouldn’t work, as pka0.pk3 would override it). Put the pk3 in etmain, and /vsay kill4money


(kill4money) #6

Thanks Alot. :drink:


(kill4money) #7

kk, i did waht you said. ( I THINK). And this what came up in console


(Shaderman) #8

You have to scale your image properly. Have a look at this thread: http://splashdamage.com/index.php?name=pnPHPbb2&file=viewtopic&t=12530


(kill4money) #9

kk, i did the coding, fix the image. An when i press v for Quick Chat, nothing comes up???


(Jaquboss) #10

just convert every gif frame to tga, add alpha channel and use animmap( or how it is , see muzzleflash shader ) if you want it animated…


(Snoman) #11

You dident do what stupid dumb me did trying to save time caugh put the script into word to make formating quicker, then finding out word puts stupid place holders in that et does not like. totally ruinining your sound pack and waisting 4 hrs of your time (I am pretty sure your sound pack is not 50MB so you wouldent be that mad if you did). Ive also had problems with leaving out a { in haste in my wm_quickmessage_alt.menu. I’d check that first. because every time I’d screw that up, the quick message fails to come up when you press V.