<?xml version="1.0" ?><rss version="2.0">
    <channel>
	<title>ETF2L &#8211; Latest activity in &#8220;more hud - dmg done&#8221;</title>
	<link>https://staging.etf2l.org/forum/general/topic-8124/</link>
	<description><![CDATA[The latest posts to this topic.]]></description>
    	<item>
    	    <title>Reply by Jameslame</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-8124/page-3/?recent=139678#post=139678</link>
    	    <description><![CDATA[Thanks for sharing Link. I'll tinker with what you posted, nice idea with the color fadeout.]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=8124&#038;post=139678</guid>
    	    <pubDate>Tue, 12 Jan 2010 14:53:24 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by link.red</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-8124/page-3/?recent=139678#post=139554</link>
    	    <description><![CDATA[I just got an idea. It would be convenient to have the custom damage number change color during the first second after a hit or so that you don't assume that you hit your target with the damage displayed from before even though you didn't. This should be possible by adding a third layers identical to DamageAccountValue on top if it can be given a lifespan like with delta_lifetime. Maybe even more layers could be used to create a smoother fade effect if they disappear one after another. For instance:

Red(z=4): disappears after 1/2 s
Yellow(z=3): disappears after 1 s 
Green(z=2): never disappears
All layers activated on hit. 

or

Yellow(z=5): disappears after 1/3 s
Greenish Yellow(z=4): disappears after 2/3 s 
Yellowish Green(z=3): disappears after 1 s 
Green(z=2): never disappears
All layers activated on hit. 

I bet this is a better idea though: 

Yellow(z=3): disappears after 1/2 s 
Green(z=2): never disappears
All layers activated on hit.

This will have to wait until tomorrow, ehum, today...though.]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=8124&#038;post=139554</guid>
    	    <pubDate>Tue, 12 Jan 2010 08:08:31 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by link.red</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-8124/page-3/?recent=139678#post=139552</link>
    	    <description><![CDATA[<blockquote>Does anyone know how I can make the damage show up in a tiny font underneath my crosshair?</blockquote>

http://img193.imageshack.us/img193/3259/damagenumbers.png

<code>"Resource/UI/HudDamageAccount.res"
{
	"CDamageAccountPanel"
	{
		"fieldName"			"CDamageAccountPanel"
		"text_x"			"0"
		"text_y"			"0"
		"delta_item_end_y"		"0"
		"PositiveColor"			"255 255 0 255"
		"NegativeColor"			"255 255 0 255"
		"delta_lifetime"		"0"
		"delta_item_font"		"HudFontMediumSmall"
		"delta_item_font_big"		"HudFontMediumSmall"
	}

	"DamageAccountValue"
	{
		"ControlName"		"CTFLabel"
		"fieldName"		"DamageAccountValue"
		"xpos"			"c-11"
		"ypos"			"c+11"
		"zpos"			"2"
		"wide"			"22"
		"tall"			"8"
		"visible"		"1"
		"enabled"		"1"
		"labelText"		"%metal%"
		"textAlignment"		"left"
		"fgcolor"		"255 255 0 255"
		"font"			"HudFontMediumSmallBold"
	}
	
	"DamageAccountValueBG"
	{
		"ControlName"		"CTFLabel"
		"fieldName"		"DamageAccountValue"
		"xpos"			"c-10"
		"ypos"			"c+12"
		"zpos"			"1"
		"wide"			"22"
		"tall"			"8"
		"visible"		"1"
		"enabled"		"1"
		"labelText"		"%metal%"
		"textAlignment"		"left"
		"fgcolor"		"0 0 0 255"
		"font"			"HudFontMediumSmallBold"
	}
}</code> 

I was gone for a few weeks around xmas so chances are that you figured this out already, but I'll share it with you anyway just in case. I modified Extremer's file to fit Koeitje's request as that's what I had in mind myself.

There seems to be some confusion among some about how this works. From what i can tell from playing around with it tonight:

CDamageAccountPanel, DamageAccountValue and DamageAccountValueBG refer to the the entities of damage numbers, our custom damage value and it's background respectively. The CDamageAccountPanel must be present in hudlayout.res in addition to the file above for it to work and the command "hud_combattext" must be set to 1 in the config file to allow our custom damage number to access the data we seek to present. The popup damage numbers can instead be disabled entirely by setting "delta_item_end_y" to zero if desired. The entities are limited by commands "wide" and "tall" denoting the sideleghts in pixels. The contents of the entity will not scale to fit, you have to ensure that they are large enough to contain whatever you intend.  Their positions are specified with the xpos and ypos commands, i.e. their horisontal and vertical coordiates in a raster with the width and length corresponding to the screen resolution. I have so far seen 3 argument patterns: 

xpos x                
x pixels from left side of screen

ypos x                
x pixels from top of screen 

xpos rx                
x pixels from right side of screen

ypos rx                
x pixels from bottom of screen

xpos c+x (c-x)    
center of screen and x pixels to the right (left)

ypos c+x (c-x)    
center of screen and x pixels to downwards (upwards)

An object with zpos with value x overlaps another object with value y if x greater than y. The entities can be aligned with textAlignment command give eigher left right or center as argument.

Example:
DamageAccountValue is a left aligned box of height 8 and width 22 with coordinates (c+11,c-11) containing text of the font HudFontMediumSmallBold.

The DamageAccountValueBG is just a DamageAccountValue in black placed beneath and slightly to the right to serve as a shadow. I use left alignment since the minus sign would otherwise jump around to much, and centering gave varying positions depending on the number of digits displayed. 

What I haven't yet understod is how this file is called and how DamageAccountValue knows what to display. Could anyone please explain this?
I'm also a bit confused about PositiveColor, can you do positive damage???

NOTE: This code is made for 640x480 resolution, if you have a different one you have to adjust the parameters yourself to reach the same result. If so, I suggest you take the following approach: 

Start off with Extremer's original code and play around with different fonts and sizes until you find the one of your liking. Get the maximum amount of text by doing over 100 points of damage so that you see how big your entity will be. Adjust the size of the entity to the size of the text and after that position it as you like it. It is helpful to use windowed mode while you do this as you will be going back and forth between the game and your text editor a lot. You should also know that you can reload your changes in game by typing hud_reloadscheme into the console and thereby avoid having to restart for changes to take effect.

GL]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=8124&#038;post=139552</guid>
    	    <pubDate>Tue, 12 Jan 2010 06:41:20 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by xtala</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-8124/page-3/?recent=139678#post=138656</link>
    	    <description><![CDATA[<blockquote>Red Green Blue and Alpha ? Whats this colour ? I want it Yellow, pls someone help me :D
</blockquote>

Alpha is how opaque the text is iirc.]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=8124&#038;post=138656</guid>
    	    <pubDate>Sun, 10 Jan 2010 02:16:41 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by Gameton</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-8124/page-3/?recent=139678#post=138457</link>
    	    <description><![CDATA[<blockquote>Just tick the box in multiplayer &#62; advanced options?</blockquote>]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=8124&#038;post=138457</guid>
    	    <pubDate>Sat, 09 Jan 2010 16:12:37 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by Jameslame</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-8124/page-3/?recent=139678#post=137746</link>
    	    <description><![CDATA[<blockquote>http://www.qun.nl/HudDamageAccount.zip for big green damage and stays 2 times longer in screen.</blockquote>
Is it only me or has this stopped working after the latest patch?]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=8124&#038;post=137746</guid>
    	    <pubDate>Thu, 07 Jan 2010 17:13:18 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by Koeitje</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-8124/page-3/?recent=139678#post=133444</link>
    	    <description><![CDATA[Does anyone know how I can make the damage show up in a tiny font underneath my crosshair?]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=8124&#038;post=133444</guid>
    	    <pubDate>Thu, 24 Dec 2009 19:20:26 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by Xantraz</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-8124/page-3/?recent=139678#post=132545</link>
    	    <description><![CDATA[FYI, "delta_item_font" is the font for normal dmg, "delta_item_font_big" is the font for crit/minicrit or just bigger dmg.]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=8124&#038;post=132545</guid>
    	    <pubDate>Mon, 21 Dec 2009 18:57:08 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by Koeitje</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-8124/page-3/?recent=139678#post=132094</link>
    	    <description><![CDATA[Viq, could you post what we talked about last night? For people without custom/m0re's hud.]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=8124&#038;post=132094</guid>
    	    <pubDate>Sun, 20 Dec 2009 17:19:05 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by CaNtThInKoFaNaMe</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-8124/page-3/?recent=139678#post=131985</link>
    	    <description><![CDATA[<blockquote>Red Green Blue and Alpha ? Whats this colour ? I want it Yellow, pls someone help me :D</blockquote>
<code>"PositiveColor"			"255 255 0 255" // RED GREEN BLUE ALPHA
"NegativeColor"			"255 255 0 255"</code>]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=8124&#038;post=131985</guid>
    	    <pubDate>Sun, 20 Dec 2009 12:28:25 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by Kasuno</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-8124/page-3/?recent=139678#post=131977</link>
    	    <description><![CDATA[Red Green Blue and Alpha ? Whats this colour ? I want it Yellow, pls someone help me :D]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=8124&#038;post=131977</guid>
    	    <pubDate>Sun, 20 Dec 2009 11:59:20 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by Extremer</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-8124/page-3/?recent=139678#post=131935</link>
    	    <description><![CDATA[http://fakkelbrigade.eu/extremer/images/tr_walkway_rc0008.jpg

DMG DONE NEEDS TO GO!]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=8124&#038;post=131935</guid>
    	    <pubDate>Sun, 20 Dec 2009 09:47:40 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by CaNtThInKoFaNaMe</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-8124/page-3/?recent=139678#post=131812</link>
    	    <description><![CDATA[<blockquote>Nice, it works !

By the way is it possible to change the color of the numbers from red to say yellow in some easy way ?</blockquote>
You can by editing the HudDamageAccount.res file whereas "PositiveColor" and "NegativeColor" is your colour, "delta_lifetime" is the fade time, "delta_item_font" &#38; "delta_item_font_big" is the font.Not sure if every custom hud has that file though I used NeoN's hud which has.]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=8124&#038;post=131812</guid>
    	    <pubDate>Sat, 19 Dec 2009 20:12:25 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by EXM</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-8124/page-3/?recent=139678#post=131694</link>
    	    <description><![CDATA[nevermind, found my stupid mistake.]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=8124&#038;post=131694</guid>
    	    <pubDate>Sat, 19 Dec 2009 15:31:34 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by .nudel</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-8124/page-2/?recent=139678#post=131654</link>
    	    <description><![CDATA[How to change the time it floats around? As noone of the posted suits me very well ;(]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=8124&#038;post=131654</guid>
    	    <pubDate>Sat, 19 Dec 2009 14:37:40 +0100</pubDate>
    	</item>
    </channel>
</rss>