]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make sure raptor can't give fall damage when exiting during launch sequence
authorMario <mario@smbclan.net>
Mon, 17 Apr 2017 02:21:41 +0000 (12:21 +1000)
committerMario <mario@smbclan.net>
Mon, 17 Apr 2017 02:21:41 +0000 (12:21 +1000)
qcsrc/common/vehicles/vehicle/raptor.qc

index 269ea5fef9ec8aca41eb5251a1dffc7ed8a4480a..5424d1cdf5cd132479d44fdcf407efb2c8f0bfef 100644 (file)
@@ -462,6 +462,7 @@ bool raptor_takeoff(entity this, float dt)
                PHYS_INPUT_BUTTON_ATCK(this) = PHYS_INPUT_BUTTON_ATCK2(this) = PHYS_INPUT_BUTTON_CROUCH(this) = false;
 
                setorigin(this, vehic.origin + '0 0 32');
+               this.oldorigin = this.origin;
        }
        else
                this.PlayerPhysplug = raptor_frame;