<?xml version="1.0" ?><rss version="2.0">
    <channel>
	<title>ETF2L &#8211; Latest activity in &#8220;Animating a crosshair image?&#8221;</title>
	<link>https://staging.etf2l.org/forum/customise/topic-28092/</link>
	<description><![CDATA[The latest posts to this topic.]]></description>
    	<item>
    	    <title>Reply by TNTThemes</title>
    	    <link>https://staging.etf2l.org/forum/customise/topic-28092/page-1/?recent=521452#post=521452</link>
    	    <description><![CDATA[I know I'm a year late, but this works

	Animate Hitscan Alpha "255" Linear 0.0 0.00001
	Animate Hitscan Alpha "0" Linear 0.15 0.15001

Just make sure the original crosshair section also has Alpha 0 on it]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=customise&#038;topic=28092&#038;post=521452</guid>
    	    <pubDate>Fri, 19 Dec 2014 08:48:05 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Reply by Catface100</title>
    	    <link>https://staging.etf2l.org/forum/customise/topic-28092/page-1/?recent=521452#post=486272</link>
    	    <description><![CDATA[After going through the furthest reaches of the internet, I found that you can't change opacity of an image, as it acts as an overlay, so any "hitmarkers" have to be text-based.]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=customise&#038;topic=28092&#038;post=486272</guid>
    	    <pubDate>Wed, 12 Feb 2014 18:44:21 +0100</pubDate>
    	</item>
    	<item>
    	    <title>Created by Catface100</title>
    	    <link>https://staging.etf2l.org/forum/customise/topic-28092/page-1/?recent=521452#post=486249</link>
    	    <description><![CDATA[Hi folks,

Essentially what I'm trying to do is make a a crosshair that I'm using from a .vtf file flash on the screen when I hit something. To avoid confusion, it's not an actual crosshair, just a small image, but when referring to it in the hud, I've added it as a crosshair.

The image itself will appear on my hud anyway, no matter what I do to "fgcolor". As such, the animation does not change anything on hit. The only way I seem to be able to not have it on the hud constantly is to have "visible" "0", but then I cannot animate this.


Here is the part in hudlayout.res:
<code>"controlName" "CTFImagePanel"
"fieldName" "fwdslash"
"visible" "1"
"enabled" "1"
"zpos" "3"

"xpos" "c-210"
"ypos" "250"
"wide" "10"
"tall" "10"

//"font" "xHairCircleOutline"
//"font" "xHairCircle"
//"textAlignment" "center" 
"image" "replay/thumbnails/fwdslash"
"scaleImage" "1"</code>


And here is relevant information in the hudanimations.txt:
<code>event DamagedPlayer
{
	Animate DamageAccountValue         Alpha "255"          linear 0.0  0.0
	Animate DamageAccountValue         Alpha "0"            linear 10.0 0.2
	Animate DamageAccountValueBG       Alpha "255"          linear 0.0  0.0
	Animate DamageAccountValueBG       Alpha "0"            linear 10.0 0.2
	
	Animate Crosshair11 FgColor "255 255 255 255" Linear 0.0 0.00001
	Animate Crosshair11 FgColor "0 255 0 255" Linear 0.15 0.15001
	Animate fwdslash FgColor "255 0 0 255" Linear 0.0 0.00001
	Animate fwdslash FgColor "255 0 0 0" Linear 0.15 0.15001</code>


I also have a fwdslash.vtf and fwdslash.vmt in the directory:
custom-broeselhud 3.0-materials-vgui-replay-thumbnails

Loads of info, I know, but I didn't want people to have to ask for it before trying to figure it out.

Thanks for your time and help!!]]></description>
    	    <guid isPermaLink="false">generator=rsdiscuss&#038;baseurl=https://staging.etf2l.org&#038;feed=forum&#038;forum=customise&#038;topic=28092&#038;post=486249</guid>
    	    <pubDate>Wed, 12 Feb 2014 17:22:11 +0100</pubDate>
    	</item>
    </channel>
</rss>