From 40f605df49a9f34d063608dc5e535f248e23da70 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 5 Dec 2014 23:29:52 +1100 Subject: [PATCH] Add a simple delay to prevent drawing projectiles in slowmo 0 --- qcsrc/client/weapons/projectile.qc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcsrc/client/weapons/projectile.qc b/qcsrc/client/weapons/projectile.qc index fc769408bd..0d2bce9439 100644 --- a/qcsrc/client/weapons/projectile.qc +++ b/qcsrc/client/weapons/projectile.qc @@ -45,6 +45,7 @@ void Projectile_DrawTrail(vector to) } } +.float proj_time; void Projectile_Draw() { vector rot; @@ -53,6 +54,10 @@ void Projectile_Draw() float drawn; float t; float a; + float dt = time - self.proj_time; + + self.proj_time = time; + if(dt <= 0) { return; } f = self.move_flags; @@ -199,6 +204,7 @@ void Ent_Projectile() self.count = (f & 0x80); self.iflags = (self.iflags & IFLAG_INTERNALMASK) | IFLAG_AUTOANGLES | IFLAG_ANGLES | IFLAG_ORIGIN; self.solid = SOLID_TRIGGER; + self.proj_time = time; //self.effects = EF_NOMODELFLAGS; // this should make collisions with bmodels more exact, but it leads to -- 2.39.2