Fix traceattack.

This commit is contained in:
Night Owl 2016-12-09 01:47:15 +05:00
parent d94bc0d5e0
commit 5171dfb729
2 changed files with 3 additions and 3 deletions

View File

@ -1524,11 +1524,11 @@ Vector CBaseEntity::FireBulletsPlayer( ULONG cShots, Vector vecSrc, Vector vecDi
default:
case BULLET_PLAYER_9MM:
case BULLET_PLAYER_NAIL1:
pEntity->TraceAttack( pevAttacker, gSkillData.plrDmg9MM, vecDir, &tr, DMG_BULLET );
pEntity->TraceAttack( pevAttacker, gSkillData.plrDmg9MM, vecDir, &tr, DMG_NEVERGIB );
break;
case BULLET_PLAYER_MP5:
case BULLET_PLAYER_NAIL2:
pEntity->TraceAttack( pevAttacker, gSkillData.plrDmgMP5, vecDir, &tr, DMG_BULLET );
pEntity->TraceAttack( pevAttacker, gSkillData.plrDmgMP5, vecDir, &tr, DMG_NEVERGIB );
break;
case BULLET_PLAYER_BUCKSHOT:
// make distance based!

View File

@ -83,7 +83,7 @@ void CNail::NailTouch(CBaseEntity *pOther)
// UNDONE: this needs to call TraceAttack instead
ClearMultiDamage();
pOther->TraceAttack(pevOwner, 0, pev->velocity.Normalize(), &tr, DMG_NEVERGIB);
//pOther->TraceAttack(pevOwner, 0, pev->velocity.Normalize(), &tr, DMG_NEVERGIB);
ApplyMultiDamage(pev, pevOwner);