mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-25 23:29:12 +00:00
fix for camo and melee
This commit is contained in:
parent
18db99ac83
commit
6f04c13a92
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user