Jump to content

Home

Non nerfed dammage?


Dest

Recommended Posts

Does anyone know the values for the non nerfed backstabs? I got it so the backstabs can spin and stuff now but I'm not sure of the damamge values. for example this is what I have for the red backstab dmg = G_GetAttackDamage(self, 30, 55, 0.5f); and it seems to be sortof close but exact numbers would be good if anyone knows them. Thanks.

Link to comment
Share on other sites

there is no exact value

 

it has to do something with animLength etc...

 

totalDamage *= damageFactor;
if (totalDamage < minDmg)
{
	totalDamage = minDmg;
}
if (totalDamage > maxDmg)
{
	totalDamage = maxDmg;
}

 

damageFactor:

 

 

 

peakPoint = attackAnimLength;
peakPoint -= attackAnimLength*multPoint;

//we treat torsoTimer as the point in the animation (closer it is to attackAnimLength, closer it is to beginning)
currentPoint = self->client->ps.torsoTimer;

if (peakPoint > currentPoint)
{
	peakDif = (peakPoint - currentPoint);
}
else
{
	peakDif = (currentPoint - peakPoint);
}

damageFactor = (float)((currentPoint/peakPoint));

 

 

I advise you to look yourself at the code from "G_GetAttackDamage"

Link to comment
Share on other sites

um I looked at G_AttackDammage... thats why it was in my post... It has exact values for min dammage max dammage and scale(not sure what scale does). I just wanted to know the exact values for min and max on those.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...