remove DDS check
This commit is contained in:
parent
5ed0f9123c
commit
540a32c18a
@ -478,8 +478,8 @@ bool IsTargetStateGood(CachedEntity *entity)
|
|||||||
|
|
||||||
// Darwins damage correction, Darwins protects against 15% of
|
// Darwins damage correction, Darwins protects against 15% of
|
||||||
// damage
|
// damage
|
||||||
if (HasDarwins(entity))
|
// if (HasDarwins(entity))
|
||||||
cdmg = (cdmg * .85) - 1;
|
// cdmg = (cdmg * .85) - 1;
|
||||||
// Vaccinator damage correction, Vac charge protects against 75%
|
// Vaccinator damage correction, Vac charge protects against 75%
|
||||||
// of damage
|
// of damage
|
||||||
if (HasCondition<TFCond_UberBulletResist>(entity))
|
if (HasCondition<TFCond_UberBulletResist>(entity))
|
||||||
@ -888,11 +888,11 @@ int BestHitbox(CachedEntity *target)
|
|||||||
float cdmg = CE_FLOAT(LOCAL_W, netvar.flChargedDamage);
|
float cdmg = CE_FLOAT(LOCAL_W, netvar.flChargedDamage);
|
||||||
float bdmg = 50;
|
float bdmg = 50;
|
||||||
// Darwins damage correction, protects against 15% of damage
|
// Darwins damage correction, protects against 15% of damage
|
||||||
if (HasDarwins(target))
|
// if (HasDarwins(target))
|
||||||
{
|
// {
|
||||||
bdmg = (bdmg * .85) - 1;
|
// bdmg = (bdmg * .85) - 1;
|
||||||
cdmg = (cdmg * .85) - 1;
|
// cdmg = (cdmg * .85) - 1;
|
||||||
}
|
// }
|
||||||
// Vaccinator damage correction, protects against 75% of damage
|
// Vaccinator damage correction, protects against 75% of damage
|
||||||
if (HasCondition<TFCond_UberBulletResist>(target))
|
if (HasCondition<TFCond_UberBulletResist>(target))
|
||||||
{
|
{
|
||||||
|
@ -240,9 +240,10 @@ bool IsTargetStateGood(CachedEntity *entity)
|
|||||||
CE_FLOAT(g_pLocalPlayer->weapon(), netvar.flChargedDamage);
|
CE_FLOAT(g_pLocalPlayer->weapon(), netvar.flChargedDamage);
|
||||||
if (g_GlobalVars->curtime - g_pLocalPlayer->flZoomBegin <= 1.0f)
|
if (g_GlobalVars->curtime - g_pLocalPlayer->flZoomBegin <= 1.0f)
|
||||||
bdmg = 50.0f;
|
bdmg = 50.0f;
|
||||||
if ((bdmg * 3) < (HasDarwins(entity)
|
// if ((bdmg * 3) < (HasDarwins(entity)
|
||||||
? (entity->m_iHealth * 1.15)
|
// ? (entity->m_iHealth * 1.15)
|
||||||
: entity->m_iHealth))
|
// : entity->m_iHealth))
|
||||||
|
if (bdmg * 3 < entity->m_iHealth)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -463,12 +464,12 @@ bool HeadPreferable(CachedEntity *target)
|
|||||||
// Set our baseline bodyshot damage
|
// Set our baseline bodyshot damage
|
||||||
bdmg = 50;
|
bdmg = 50;
|
||||||
// Darwins damage correction
|
// Darwins damage correction
|
||||||
if (HasDarwins(target))
|
// if (HasDarwins(target))
|
||||||
{
|
// {
|
||||||
// Darwins protects against 15% of damage
|
// Darwins protects against 15% of damage
|
||||||
bdmg = (bdmg * .85) - 1;
|
// bdmg = (bdmg * .85) - 1;
|
||||||
cdmg = (cdmg * .85) - 1;
|
// cdmg = (cdmg * .85) - 1;
|
||||||
}
|
// }
|
||||||
// Vaccinator damage correction
|
// Vaccinator damage correction
|
||||||
if (HasCondition<TFCond_UberBulletResist>(target))
|
if (HasCondition<TFCond_UberBulletResist>(target))
|
||||||
{
|
{
|
||||||
|
@ -1153,6 +1153,18 @@ static CatVar wb_abandon_too_many_bots(CV_INT, "wb_population_control", "0",
|
|||||||
|
|
||||||
Timer abandon_timer{};
|
Timer abandon_timer{};
|
||||||
|
|
||||||
|
CatVar wb_abandon_players_leq(CV_SWITCH, "wb_abandon_players_leq", "0", "Leave if non-bot player count <=");
|
||||||
|
|
||||||
|
void check_player_count()
|
||||||
|
{
|
||||||
|
#if ENABLE_IPC
|
||||||
|
if (ipc::peer && wb_abandon_players_leq)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
void CheckLivingSpace()
|
void CheckLivingSpace()
|
||||||
{
|
{
|
||||||
#if ENABLE_IPC
|
#if ENABLE_IPC
|
||||||
|
Reference in New Issue
Block a user