View Single Post
Old 03-05-2006, 03:39 PM   #60
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
Client bug: when using graphical hud, armor value doesnt show > 100 even if u have more than 100.


so open up cg_draw.c. we want CG_DrawArmor.

add int realArmor;

add the realArmor line:

Code:
	armor = ps->stats[STAT_ARMOR];
	realArmor = ps->stats[STAT_ARMOR]; // add this line below the above line
below this section:

Code:
	if (armor> maxArmor)
	{
		armor = maxArmor;
	}
add:

Code:
	if (realArmor > 200)
	{
		realArmor = 200;
	}
now where its drawing the numfield, change it from armor to realArmor.

Code:
		CG_DrawNumField (
			focusItem->window.rect.x, 
			focusItem->window.rect.y, 
			3, 
			realArmor,
			//armor, 
			focusItem->window.rect.w, 
			focusItem->window.rect.h, 
			NUM_FONT_SMALL,
			qfalse);


iojamp project lead / coder
ensiform is offline   you may: quote & reply,