fix for camo and melee

This commit is contained in:
ineedbots 2021-10-26 10:41:27 -06:00
parent 18db99ac83
commit 6f04c13a92

View File

@ -27,7 +27,7 @@ hook_callbacks()
onPlayerDamage( eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, timeOffset )
{
if ( sWeapon == "iw5_1887_mp" )
if ( isSubStr( sWeapon, "iw5_1887_mp" ) && sMeansOfDeath != "MOD_MELEE" )
iDamage = 35;
self [[level.prevCallbackPlayerDamage2]]( eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, timeOffset );