Fix little bugs

This commit is contained in:
mittorn 2016-09-10 17:33:59 +00:00
parent 116290f470
commit 9a1f3bd2ea
2 changed files with 3 additions and 1 deletions

View File

@ -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()

View File

@ -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()