mirror of
https://github.com/DrBeef/Doom3Quest.git
synced 2024-11-10 06:41:36 +00:00
Headshot Damage per difficult level
This commit is contained in:
parent
b6c04431af
commit
99eb192003
1 changed files with 14 additions and 1 deletions
|
@ -2466,7 +2466,20 @@ int idActor::GetDamageForLocation( int damage, int location, bool headMultiplier
|
|||
{
|
||||
if ( damageScale[location] > 1.0f )
|
||||
{
|
||||
damageAmt *= vr_headshotMultiplier.GetFloat();
|
||||
if(g_skill.GetInteger() == 0)
|
||||
{
|
||||
damageAmt *= 2.5f;
|
||||
}
|
||||
else if(g_skill.GetInteger() == 1)
|
||||
{
|
||||
damageAmt *= 1.75f;
|
||||
}
|
||||
else if(g_skill.GetInteger() == 2)
|
||||
{
|
||||
damageAmt *= 1.25f;
|
||||
}
|
||||
//damageAmt *= vr_headshotMultiplier.GetFloat();
|
||||
|
||||
//common->Printf( "Head damage group detected, adding additional damage scale. New damage = %f\n", damageAmt );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue