From: Mario Date: Tue, 20 Dec 2016 01:10:53 +0000 (+1000) Subject: Predict jetpack effect and sound (yay for perfectly predicted jetpacks) X-Git-Tag: xonotic-v0.8.2~366 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=50bef5e0fcc9ffcb6693780b1ed6581a88e177f8;ds=sidebyside Predict jetpack effect and sound (yay for perfectly predicted jetpacks) --- diff --git a/qcsrc/common/physics/player.qc b/qcsrc/common/physics/player.qc index 2645415227..6e6dd9fb01 100644 --- a/qcsrc/common/physics/player.qc +++ b/qcsrc/common/physics/player.qc @@ -803,5 +803,10 @@ void CSQC_ClientMovement_PlayerMove_Frame(entity this) #ifdef SVQC this.pm_frametime = frametime; +#elif defined(CSQC) + if((ITEMS_STAT(this) & IT_USING_JETPACK) && !IS_DEAD(this) && !intermission) + this.csqcmodel_modelflags |= MF_ROCKET; + else + this.csqcmodel_modelflags &= ~MF_ROCKET; #endif }