mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-11 15:38:12 +00:00
Fix little bugs
This commit is contained in:
parent
116290f470
commit
9a1f3bd2ea
@ -118,7 +118,7 @@ int CAR2Ball::TakeDamage(entvars_t* pevInflictor, entvars_t* pevAttacker, float
|
|||||||
Vector r = (pevInflictor->origin - pev->origin);
|
Vector r = (pevInflictor->origin - pev->origin);
|
||||||
pev->velocity = pev->velocity + r * flDamage / -7;
|
pev->velocity = pev->velocity + r * flDamage / -7;
|
||||||
pev->avelocity.x = pev->avelocity.x * 0.5 + RANDOM_FLOAT(100, -100);
|
pev->avelocity.x = pev->avelocity.x * 0.5 + RANDOM_FLOAT(100, -100);
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CAR2Ball::Precache()
|
void CAR2Ball::Precache()
|
||||||
|
@ -402,6 +402,7 @@ void CCrossbow::FireSniperBolt()
|
|||||||
CBaseEntity::Instance( tr.pHit )->TraceAttack( m_pPlayer->pev, 120, vecDir, &tr, DMG_BULLET | DMG_NEVERGIB );
|
CBaseEntity::Instance( tr.pHit )->TraceAttack( m_pPlayer->pev, 120, vecDir, &tr, DMG_BULLET | DMG_NEVERGIB );
|
||||||
ApplyMultiDamage( pev, m_pPlayer->pev );
|
ApplyMultiDamage( pev, m_pPlayer->pev );
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
CCrossbowBolt *pBolt = CCrossbowBolt::BoltCreate();
|
CCrossbowBolt *pBolt = CCrossbowBolt::BoltCreate();
|
||||||
pBolt->pev->origin = tr.vecEndPos;
|
pBolt->pev->origin = tr.vecEndPos;
|
||||||
pBolt->pev->angles = -anglesAim;
|
pBolt->pev->angles = -anglesAim;
|
||||||
@ -409,6 +410,7 @@ void CCrossbow::FireSniperBolt()
|
|||||||
pBolt->pev->avelocity.z = 10;
|
pBolt->pev->avelocity.z = 10;
|
||||||
pBolt->SetTouch( NULL );
|
pBolt->SetTouch( NULL );
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void CCrossbow::FireBolt()
|
void CCrossbow::FireBolt()
|
||||||
|
Loading…
Reference in New Issue
Block a user