From: LegendaryGuard Date: Wed, 5 Jan 2022 17:44:27 +0000 (+0100) Subject: Fix spamming CSQC errors when a vehicle is inside nade orb X-Git-Tag: xonotic-v0.8.5~240^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=93061875dfc414682825b39b7d15c85f1f323647;p=xonotic%2Fxonotic-data.pk3dir.git Fix spamming CSQC errors when a vehicle is inside nade orb --- diff --git a/qcsrc/common/mutators/mutator/nades/nades.qc b/qcsrc/common/mutators/mutator/nades/nades.qc index 04c61a6d7..cd4a00f98 100644 --- a/qcsrc/common/mutators/mutator/nades/nades.qc +++ b/qcsrc/common/mutators/mutator/nades/nades.qc @@ -589,7 +589,7 @@ void nade_entrap_touch(entity this, entity toucher) #endif } - if ( IS_REAL_CLIENT(toucher) || IS_VEHICLE(toucher) || IS_MONSTER(toucher) ) + if ( IS_REAL_CLIENT(toucher) && !IS_VEHICLE(toucher) ) { entity show_tint = (IS_VEHICLE(toucher)) ? toucher.owner : toucher; STAT(ENTRAP_ORB, show_tint) = time + 0.1; @@ -645,7 +645,7 @@ void nade_heal_touch(entity this, entity toucher) } - if ( IS_REAL_CLIENT(toucher) || IS_VEHICLE(toucher) ) + if ( IS_REAL_CLIENT(toucher) && !IS_VEHICLE(toucher) ) { entity show_red = (IS_VEHICLE(toucher)) ? toucher.owner : toucher; STAT(HEALING_ORB, show_red) = time+0.1; @@ -674,7 +674,7 @@ void nade_monster_boom(entity this) void nade_veil_touch(entity this, entity toucher) { - if ( IS_REAL_CLIENT(toucher) || IS_VEHICLE(toucher) || IS_MONSTER(toucher) ) + if ( IS_REAL_CLIENT(toucher) && !IS_VEHICLE(toucher) ) { entity show_tint = (IS_VEHICLE(toucher)) ? toucher.owner : toucher;