<?xml version="1.0" ?><rss version="2.0">
    <channel>
	<title>ETF2L &#8211; Latest activity in &#8220;A hud related question?&#8221;</title>
	<link>https://staging.etf2l.org/forum/general/topic-16134/</link>
	<description><![CDATA[The latest posts to this topic.]]></description>
    	<item>
    	    <title>Reply by link.red</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-16134/page-1/?recent=289045#post=289045</link>
    	    <description><![CDATA[There is a possibility that the game wont allow you to animate anything but health value digits. That makes things a bit more tricky, but not impossible. In this case the only option I can see is making a custom font with all digits replaced with crosshairs and mask out all but the leftmost. I can't quite recall why, but I used a custom font with just squares and no spaces for the health square in my hud. I suspect that I chose that because someone told me it wouldn't be possible otherwise.

The ammo values can be moved around by editing AmmoInClip, AmmoNoClip and AmmoInReserve in tfresourceuiHudAmmoWeapons.res]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=16134&#038;post=289045</guid>
    	    <pubDate>Thu, 24 Mar 2011 17:34:54 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by CannonFodd3r</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-16134/page-1/?recent=289045#post=288917</link>
    	    <description><![CDATA[<i>Quoted from Bonkers</i>
		<blockquote>maybe you should ask war? he had a crosshair that change colour when it went over the enemy or when you'd hit them, idk but i remember seeing it in his video</blockquote>
Iirc, WAR's crosshair changed everytime he moved (= pressed WASD) and was no hud crosshair.]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=16134&#038;post=288917</guid>
    	    <pubDate>Thu, 24 Mar 2011 11:08:42 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by Stranger</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-16134/page-1/?recent=289045#post=288910</link>
    	    <description><![CDATA[<i>Quoted from Bonkers</i>
		<blockquote>maybe you should ask war? he had a crosshair that change colour when it went over the enemy or when you'd hit them, idk but i remember seeing it in his video</blockquote>

I think his crosshair changed randomly every 2 seconds or so]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=16134&#038;post=288910</guid>
    	    <pubDate>Thu, 24 Mar 2011 10:35:26 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by link.red</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-16134/page-1/?recent=289045#post=288870</link>
    	    <description><![CDATA[<i>Quoted from Stranger</i>
		<blockquote>[...]

how can you do those 2? (i have the basic knowledge of what is what and how to edit stuff in hud)</blockquote>

http://pastebin.com/raw.php?i=pmmYSB7m

Crosshair: In tfresourceuiHudPlayerHealth.res, expand the size to contain the crosshair and put something like this in there:

"YAxis"
	{
		"ControlName" "ImagePanel"
		"fieldName"   "YAxis"
		"xpos"	      "c-1"
		"ypos"        "c-5"
		"zpos"        "2"
		"wide"        "2"
		"tall"        "10"
		"visible"     "1"
		"enabled"     "1"
		"fillcolor"   "SqGreen"
	}	
	"XAxis"
	{
		"ControlName" "ImagePanel"
		"fieldName"   "XAxis"
		"xpos"        "c-5"
		"ypos"        "c-1"
		"zpos"        "1"
		"wide"        "10"
		"tall"        "2"
		"visible"     "1"
		"enabled"     "1"
		"fillcolor"   "SqGreen"
	}

Alternately you can use a CTFLabel like this:

	"Crosshair"
	{
		"ControlName"		"CTFLabel"
		"fieldName"		"Crosshair"
		"xpos"			"-15"
		"ypos"			"-15"
		"zpos"			"3"
		"wide"			"60"
		"tall"			"60"
		"visible"		"1"
		"enabled"		"1"
		"labelText"		"+"
		"textAlignment"		"West"	
		"font"			"SqSquare"
		"fgcolor"		"SqGrey"
	}

In tfscriptsHudAnimations_tf.txt, edit this section to make it animate. There are instructions at the top of the file. 

//===========================================

//health bonus pulse
event hudhealthbonuspulse
{
	animate healthsquare1 fgcolor SqGreen linear 0.0 0.0
	animate healthsquare2 fgcolor SqGreen linear 0.0 0.0
	animate healthvalue fgcolor SqWhite linear 0.0 0.0
	runevent hudhealthbonuspulseloop 1
}

// call to loop hudhealthbonuspulse
event hudhealthbonuspulseloop
{
	RunEvent hudhealthbonuspulse 0.0
}

event hudhealthbonuspulsestop
{
	stopevent hudhealthbonuspulse 0.0
	stopevent hudhealthbonuspulseloop 0.0
	animate healthsquare1 fgcolor sqGrey linear 0.0 0.0
	animate healthsquare2 fgcolor sqGrey linear 0.0 0.0
	animate healthvalue fgcolor sqCyan linear 0.0 0.0	
}

//===========================================

//health dying pulse
event hudhealthdyingpulse
{
	animate healthsquare1 fgcolor SqPink linear 0.0 0.0
	animate healthsquare2 fgcolor SqPink linear 0.0 0.0
	animate healthvalue fgcolor SqWhite linear 0.0 0.0
	runevent hudhealthdyingpulseloop 0.4
}

// call to loop hudhealthdyingpulse
event hudhealthdyingpulseloop
{
	runevent hudhealthdyingpulse 0.0
}

event hudhealthdyingpulsestop
{
	stopevent hudhealthdyingpulse 0.0
	stopevent hudhealthdyingpulseloop 0.0
	animate healthsquare1 fgcolor SqGrey linear 0.0 0.0
	animate healthsquare2 fgcolor SqGrey linear 0.0 0.0
	animate healthvalue fgcolor SqCyan linear 0.0 0.0
}

//===========================================]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=16134&#038;post=288870</guid>
    	    <pubDate>Thu, 24 Mar 2011 00:26:19 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by OHMYWORD</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-16134/page-1/?recent=289045#post=288867</link>
    	    <description><![CDATA[maybe you should ask war? he had a crosshair that change colour when it went over the enemy or when you'd hit them, idk but i remember seeing it in his video]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=16134&#038;post=288867</guid>
    	    <pubDate>Thu, 24 Mar 2011 00:14:42 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by Stranger</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-16134/page-1/?recent=289045#post=288864</link>
    	    <description><![CDATA[http://img33.imageshack.us/i/2011032400001.jpg/ &#60;- a basic idea on how it should look like]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=16134&#038;post=288864</guid>
    	    <pubDate>Thu, 24 Mar 2011 00:03:32 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by Stranger</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-16134/page-1/?recent=289045#post=288852</link>
    	    <description><![CDATA[<i>Quoted from ell</i>
		<blockquote>[...]

You can have a usual health cross/bar with health value digits in combination with a colour changing crosshair. As for the ammo, not sure what you mean by separate completely, you can move them around independently.</blockquote>

how can you do those 2? (i have the basic knowledge of what is what and how to edit stuff in hud)]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=16134&#038;post=288852</guid>
    	    <pubDate>Wed, 23 Mar 2011 23:40:12 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by link.red</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-16134/page-1/?recent=289045#post=288846</link>
    	    <description><![CDATA[<i>Quoted from Stranger</i>
		<blockquote>[...]

hmmm. Also can you keep the actual hp numbers somewhere?

oh and one other question can you completely separate ammo in clip from ammo in reserve?</blockquote>

You can have a usual health cross/bar with health value digits in combination with a colour changing crosshair. As for the ammo, not sure what you mean by separate completely, you can move them around independently.]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=16134&#038;post=288846</guid>
    	    <pubDate>Wed, 23 Mar 2011 23:36:31 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by Stranger</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-16134/page-1/?recent=289045#post=288842</link>
    	    <description><![CDATA[<i>Quoted from ell</i>
		<blockquote>Yes, it's possible.</blockquote>

hmmm. Also can you keep the actual hp numbers somewhere?

oh and one other question can you completely separate ammo in clip from ammo in reserve?]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=16134&#038;post=288842</guid>
    	    <pubDate>Wed, 23 Mar 2011 23:31:38 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by link.red</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-16134/page-1/?recent=289045#post=288841</link>
    	    <description><![CDATA[Yes, it's possible, at least in 3 discrete steps.]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=16134&#038;post=288841</guid>
    	    <pubDate>Wed, 23 Mar 2011 23:29:53 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Created by Stranger</title>
    	    <link>https://staging.etf2l.org/forum/general/topic-16134/page-1/?recent=289045#post=288840</link>
    	    <description><![CDATA[So i'm using this nice built in hud crosshair, made by garm3n.

I was thinking would it be possible to transfer hp cross in to a color changing crosshair, that changes color depending on your hp (sort of like one of the options in quakelive)?

If that is possible i might have a very awesome idea for a hud]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=general&#038;topic=16134&#038;post=288840</guid>
    	    <pubDate>Wed, 23 Mar 2011 23:25:28 +0100</pubDate>
    	</item>
    </channel>
</rss>