]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow vehicles to push footballs
authorMario <mario@smbclan.net>
Tue, 4 Jun 2019 08:04:30 +0000 (18:04 +1000)
committerMario <mario@smbclan.net>
Tue, 4 Jun 2019 08:04:30 +0000 (18:04 +1000)
qcsrc/common/gamemodes/gamemode/nexball/nexball.qc

index f9885fefd45321c42987a5ff192fa7c9faf539df..c841079fb775016d7828964bc25c0142261f76f0 100644 (file)
@@ -306,7 +306,7 @@ void football_touch(entity this, entity toucher)
                        this.nextthink = time + autocvar_g_nexball_delay_idle;
                return;
        }
-       if (!IS_PLAYER(toucher))
+       if (!IS_PLAYER(toucher) && !IS_VEHICLE(toucher))
                return;
        if(GetResource(toucher, RES_HEALTH) < 1)
                return;