PDA

View Full Version : Animated Crosshair



Helo
01-01-08, 01:56
void cCross::CrossHair( void )
{
if (basehook.m_psCvar->vis_crosshair == 1)
{

basehook.m_psCvar->xhair = basehook.m_psCvar->xhair+1; //count a cvar up

if (basehook.m_psCvar->xhair == 70) // if enought
{
basehook.m_psCvar->xhair = -70; // set back
}

//draw a permanent circle
basehook.m_pMatSurface->DrawColoredCircle((sScreenSize.m_iWidth / 2), (sScreenSize.m_iHeight / 2),10.0f,RED(CHEAT_RED),GREEN(CHEAT_GREEN),BLUE(CH EAT_BLUE),ALPHA(CHEAT_YELLOW) );
//draw the animated circle
basehook.m_pMatSurface->DrawColoredCircle((sScreenSize.m_iWidth / 2), (sScreenSize.m_iHeight / 2),basehook.m_psCvar->xhair,RED(CHEAT_GREEN),GREEN(CHEAT_GREEN),BLUE(CHE AT_GREEN),ALPHA(CHEAT_GREEN) );


//standart cross
basehook.m_pUtil->FillRGBA( (sScreenSize.m_iWidth / 2), (sScreenSize.m_iHeight / 2) - 10, 1,20, CHEAT_GREEN );
basehook.m_pUtil->FillRGBA( (sScreenSize.m_iWidth / 2) - 10, (sScreenSize.m_iHeight / 2), 20,1, CHEAT_GREEN );
}
}

a simple method to animate a crosshair.

it?s a circle wich move bigger and smaller, i think it?s very funny.

Preview:
http://img4.imagebanana.com/img/c7zyt87n/x1.JPG http://img4.imagebanana.com/img/gsy2hhc0/x2.JPG http://img4.imagebanana.com/img/na23tzyu/x3.JPG

Credits: Helo

I credit me because i have made it ... and don?t say i have steal the idea etc.
i don?t know how they have made that in the Chronic Hook.
I just want that all could use that! and i have named they!

Idea from: Chronic Hook(belink & Reneg4d3 & LiX)


Have Fun,
Helo

shaunm2
01-01-08, 02:37
very nice i like it :D

David
01-01-08, 03:56
Seems like a Draw Fov Item.

Bolo
08-01-08, 04:53
damn straight from gd lol

Bolo
08-01-08, 04:55
my crosshair pwns

http://i44.photobucket.com/albums/f32/99LS-R/de_dust20017.jpg

Yournightmare
09-01-08, 08:45
my crosshair pwns

http://i44.photobucket.com/albums/f32/99LS-R/de_dust20017.jpg

That is straight from the vip hack.. lolzor

Bolo
10-01-08, 09:09
That is straight from the vip hack.. lolzor

which came straight from me.

Un1ver$al
10-01-08, 09:14
Lol nice^^

David
10-01-08, 11:20
I see me :D