From 9a1f3bd2ea46f83dcd8a007003e0cc1b961db8fe Mon Sep 17 00:00:00 2001 From: mittorn Date: Sat, 10 Sep 2016 17:33:59 +0000 Subject: [PATCH] Fix little bugs --- dlls/ar2.cpp | 2 +- dlls/crossbow.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/ar2.cpp b/dlls/ar2.cpp index 2b762bc1..8c734876 100644 --- a/dlls/ar2.cpp +++ b/dlls/ar2.cpp @@ -118,7 +118,7 @@ int CAR2Ball::TakeDamage(entvars_t* pevInflictor, entvars_t* pevAttacker, float Vector r = (pevInflictor->origin - pev->origin); pev->velocity = pev->velocity + r * flDamage / -7; pev->avelocity.x = pev->avelocity.x * 0.5 + RANDOM_FLOAT(100, -100); - + return 1; } void CAR2Ball::Precache() diff --git a/dlls/crossbow.cpp b/dlls/crossbow.cpp index 7fcf65be..2a9c9c09 100644 --- a/dlls/crossbow.cpp +++ b/dlls/crossbow.cpp @@ -402,6 +402,7 @@ void CCrossbow::FireSniperBolt() CBaseEntity::Instance( tr.pHit )->TraceAttack( m_pPlayer->pev, 120, vecDir, &tr, DMG_BULLET | DMG_NEVERGIB ); ApplyMultiDamage( pev, m_pPlayer->pev ); } +#if 0 CCrossbowBolt *pBolt = CCrossbowBolt::BoltCreate(); pBolt->pev->origin = tr.vecEndPos; pBolt->pev->angles = -anglesAim; @@ -409,6 +410,7 @@ void CCrossbow::FireSniperBolt() pBolt->pev->avelocity.z = 10; pBolt->SetTouch( NULL ); #endif +#endif } void CCrossbow::FireBolt()