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
{
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