]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Enhance fix nades orb
authorLegendaryGuard <rootuser999@gmail.com>
Thu, 6 Jan 2022 21:37:19 +0000 (22:37 +0100)
committerLegendaryGuard <rootuser999@gmail.com>
Thu, 6 Jan 2022 21:37:19 +0000 (22:37 +0100)
qcsrc/common/mutators/mutator/nades/nades.qc

index cd4a00f98b4ded845fffb8835ebe70b2c50bbe2f..e0666048f046002ae785ba5195212bc135cc60dd 100644 (file)
@@ -589,7 +589,7 @@ void nade_entrap_touch(entity this, entity toucher)
        #endif
        }
 
-       if ( IS_REAL_CLIENT(toucher) && !IS_VEHICLE(toucher) )
+       if ( IS_REAL_CLIENT(toucher) || (IS_VEHICLE(toucher) && toucher.owner) )
        {
                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) && toucher.owner) )
        {
                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) )
+       if ( IS_REAL_CLIENT(toucher) || (IS_VEHICLE(toucher) && toucher.owner) )
        {
                entity show_tint = (IS_VEHICLE(toucher)) ? toucher.owner : toucher;