From: Mario Date: Tue, 4 Jun 2019 08:04:30 +0000 (+1000) Subject: Allow vehicles to push footballs X-Git-Tag: xonotic-v0.8.5~1487 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b640951b2bf5836ee5dda50db0e735e667a9fc13;p=xonotic%2Fxonotic-data.pk3dir.git Allow vehicles to push footballs --- diff --git a/qcsrc/common/gamemodes/gamemode/nexball/nexball.qc b/qcsrc/common/gamemodes/gamemode/nexball/nexball.qc index f9885fefd..c841079fb 100644 --- a/qcsrc/common/gamemodes/gamemode/nexball/nexball.qc +++ b/qcsrc/common/gamemodes/gamemode/nexball/nexball.qc @@ -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;