From 5171dfb7294641ad961c0d3b77327a3d1a977a28 Mon Sep 17 00:00:00 2001 From: Night Owl Date: Fri, 9 Dec 2016 01:47:15 +0500 Subject: [PATCH] Fix traceattack. --- dlls/combat.cpp | 4 ++-- dlls/poke646/nail.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/combat.cpp b/dlls/combat.cpp index ac1feddf..373966f2 100644 --- a/dlls/combat.cpp +++ b/dlls/combat.cpp @@ -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! diff --git a/dlls/poke646/nail.cpp b/dlls/poke646/nail.cpp index 6ec9f8ce..237337af 100644 --- a/dlls/poke646/nail.cpp +++ b/dlls/poke646/nail.cpp @@ -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);