Browse Source

Fix traceattack.

poke646
Night Owl 8 years ago
parent
commit
5171dfb729
  1. 4
      dlls/combat.cpp
  2. 2
      dlls/poke646/nail.cpp

4
dlls/combat.cpp

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

2
dlls/poke646/nail.cpp

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

Loading…
Cancel
Save