X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Flaser.qc;h=a91e13b01991e52517af210079478858eb0faae7;hb=5424bd3ad212983e33860ec76d35dbcb7c5004b4;hp=9bc5dce9d9f6c75a8b4929547eedef1a34ac8ef9;hpb=98496b8f7cbb74f30232f5c52bb38158623bb597;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/laser.qc b/qcsrc/client/laser.qc index 9bc5dce9d..a91e13b01 100644 --- a/qcsrc/client/laser.qc +++ b/qcsrc/client/laser.qc @@ -34,6 +34,7 @@ void Draw_Laser() { if(self.count & 0x10) { + makevectors(self.angles); trace_endpos = self.origin + v_forward * 1048576; trace_dphitq3surfaceflags = Q3SURFACEFLAG_SKY; } @@ -61,7 +62,7 @@ void Draw_Laser() if(self.cnt >= 0) pointparticles(self.cnt, trace_endpos, trace_plane_normal, drawframetime * 1000); if(self.colormod != '0 0 0' && self.modelscale != 0) - R_AddDynamicLight(trace_endpos + trace_plane_normal * 1, self.modelscale, self.colormod * 5); + adddynamiclight(trace_endpos + trace_plane_normal * 1, self.modelscale, self.colormod * 5); } }