From: terencehill Date: Mon, 12 Sep 2016 13:50:41 +0000 (+0200) Subject: Really block vehicles when the game is over (racer and spiderbot used to slowly fall... X-Git-Tag: xonotic-v0.8.2~595 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=99167535b33203a2c1035f09514535282d8390ba;p=xonotic%2Fxonotic-data.pk3dir.git Really block vehicles when the game is over (racer and spiderbot used to slowly fall down) --- diff --git a/qcsrc/common/vehicles/vehicle/bumblebee.qc b/qcsrc/common/vehicles/vehicle/bumblebee.qc index 403c9de9d..8fbeb3f99 100644 --- a/qcsrc/common/vehicles/vehicle/bumblebee.qc +++ b/qcsrc/common/vehicles/vehicle/bumblebee.qc @@ -395,6 +395,7 @@ bool bumblebee_pilot_frame(entity this, float dt) { vehic.velocity = '0 0 0'; vehic.avelocity = '0 0 0'; + set_movetype(vehic, MOVETYPE_NONE); return; } diff --git a/qcsrc/common/vehicles/vehicle/racer.qc b/qcsrc/common/vehicles/vehicle/racer.qc index c8f8cf84e..09db15c4d 100644 --- a/qcsrc/common/vehicles/vehicle/racer.qc +++ b/qcsrc/common/vehicles/vehicle/racer.qc @@ -155,6 +155,7 @@ bool racer_frame(entity this, float dt) { vehic.velocity = '0 0 0'; vehic.avelocity = '0 0 0'; + set_movetype(vehic, MOVETYPE_NONE); return; } diff --git a/qcsrc/common/vehicles/vehicle/raptor.qc b/qcsrc/common/vehicles/vehicle/raptor.qc index a03c936bd..0f638569b 100644 --- a/qcsrc/common/vehicles/vehicle/raptor.qc +++ b/qcsrc/common/vehicles/vehicle/raptor.qc @@ -137,6 +137,7 @@ bool raptor_frame(entity this, float dt) { vehic.velocity = '0 0 0'; vehic.avelocity = '0 0 0'; + set_movetype(vehic, MOVETYPE_NONE); return; } diff --git a/qcsrc/common/vehicles/vehicle/spiderbot.qc b/qcsrc/common/vehicles/vehicle/spiderbot.qc index ec0610482..b8c3caa74 100644 --- a/qcsrc/common/vehicles/vehicle/spiderbot.qc +++ b/qcsrc/common/vehicles/vehicle/spiderbot.qc @@ -52,6 +52,7 @@ bool spiderbot_frame(entity this, float dt) { vehic.velocity = '0 0 0'; vehic.avelocity = '0 0 0'; + set_movetype(vehic, MOVETYPE_NONE); return; }