Thread: Insane Bots
View Single Post
  #1  
Old 03-16-2015, 07:54 AM
dagulus2
Hill Giant
 
Join Date: Feb 2013
Posts: 220
Default

The Hit Points is a known issue, you need to replace the Bot:GenerateBaseHitPoints() section in bots.cpp with this code patch.

Code:
int32 Bot::GenerateBaseHitPoints()
{
	// Calc Base Hit Points
	int new_base_hp = 0;
	uint32 lm = GetClassLevelFactor();
	uint32 Post255;

	if ((GetSTA() - 255) / 2 > 0)
		Post255 = (GetSTA() - 255) / 2;
	else
		Post255 = 0;

	new_base_hp = (5) + (GetLevel()*lm / 10) + (((GetSTA() - Post255)*GetLevel()*lm / 3000)) + ((Post255*GetLevel())*lm / 6000);

	this->base_hp = new_base_hp;

	return new_base_hp;
}
Reply With Quote