|
|
This tut shows how to show team mates stats when your crosshair moves over them in the game. Open up cg_draw.c and go to
line 1988 up under if (cgs.clientinfo[cg.crosshairClientNum].health){
teamstat = va("Health: %i Armor: %i",
cgs.clientinfo[ cg.crosshairClientNum ].health,
cgs.clientinfo[ cg.crosshairClientNum ].armor);
w = CG_DrawStrlen( teamstat ) * SMALLCHAR_WIDTH;
CG_DrawSmallString( 320 - w / 2, 190, teamstat, color[3] * 0.5 );
}
I spend my time programming and writing these tutorials, so please feel free to use this code in your mod as long as www.inolen.com and the author receive credit. | |
| Design Copyright inolen 2000 | |