Yeah, the ratio should probably be multiplied first...
This commit is contained in:
parent
3c591536dc
commit
076c2bf09e
2 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ void Damage_Apply( entity eTarget, entity eAttacker, int iDamage, vector vHitPos
|
||||||
float fRatio = 0.5;
|
float fRatio = 0.5;
|
||||||
|
|
||||||
if ( eAttacker.weapon ) {
|
if ( eAttacker.weapon ) {
|
||||||
fRatio = wptTable[ eAttacker.weapon ].fWeaponArmorRatio;
|
fRatio *= wptTable[ eAttacker.weapon ].fWeaponArmorRatio;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Simple implementation of how kevlar damage is calculated
|
// Simple implementation of how kevlar damage is calculated
|
||||||
|
|
BIN
freecs/progs.dat
BIN
freecs/progs.dat
Binary file not shown.
Loading…
Reference in a new issue