Average/Skill damage

04/05/2016 00:44 naosou#1
How can I increase, in this code, the % of average and skill damage?

Code:
	// SKILL BONUS:
	int iSkillBonus = MINMAX(-30, (int) (gauss_random(0, 5) + 0.5f), 30);

	// HIT BONUS (based on skill bonus)
	int iNormalHitBonus = 0;
	if (abs(iSkillBonus) <= 20)
		iNormalHitBonus = -2 * iSkillBonus + abs(number(-8, 8) + number(-8, 8)) + number(1, 4);
	else
		iNormalHitBonus = -2 * iSkillBonus + number(1, 5);
04/06/2016 00:45 naosou#2
bump.
04/07/2016 15:17 naosou#3
Well that was easy, should've tried first before asking something.
You may close the topic.
04/07/2016 15:49 DasSchwarzeT#4
That's simple maths