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 2645415..6e6dd9f 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
 }