Skip to content

Commit 67591c3

Browse files
committed
force disable damage spread on competitive
1 parent 614e57e commit 67591c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/game/shared/tf/tf_gamerules.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7261,7 +7261,7 @@ bool CTFGameRules::ApplyOnDamageModifyRules( CTakeDamageInfo &info, CBaseEntity
72617261
float flCenter = 0.5f;
72627262
float flMin = flCenter - flRandomDamageSpread;
72637263
float flMax = flCenter + flRandomDamageSpread;
7264-
const bool bNoDamageSpread = tf_damage_disablespread.GetBool() || ( pTFAttacker && pTFAttacker->m_Shared.GetCarryingRuneType() == RUNE_PRECISION );
7264+
const bool bNoDamageSpread = tf_damage_disablespread.GetBool() || IsCompetitiveGame() || ( pTFAttacker && pTFAttacker->m_Shared.GetCarryingRuneType() == RUNE_PRECISION );
72657265
const bool bHasDistanceMod = bitsDamage & DMG_USEDISTANCEMOD;
72667266
const bool bIsSniperRifle = pWeapon && WeaponID_IsSniperRifle( pWeapon->GetWeaponID() ) && bitsDamage & DMG_BULLET;
72677267
const bool bApplySpreadToRampup = IsBetaActive() ? ( bNoDamageSpread && !bHasDistanceMod && ( bIsSniperRifle || pWeapon && pWeapon->GetWeaponID() == TF_WEAPON_GRENADELAUNCHER ) ) : false;

0 commit comments

Comments
 (0)