]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Predict jetpack effect and sound (yay for perfectly predicted jetpacks)
authorMario <mario@smbclan.net>
Tue, 20 Dec 2016 01:10:53 +0000 (11:10 +1000)
committerMario <mario@smbclan.net>
Tue, 20 Dec 2016 01:10:53 +0000 (11:10 +1000)
qcsrc/common/physics/player.qc

index 26454152270150477da3a12c6edb48c22d6be231..6e6dd9fb01b3e44530ca1bc58cdce987d979d426 100644 (file)
@@ -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
 }