From 8808636abd0af04100a3a307f1cce417babd84d8 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 9 May 2010 17:35:02 +0200 Subject: [PATCH] fix ClientInit entity sending --- qcsrc/client/hook.qc | 7 +++++++ qcsrc/server/cl_client.qc | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/qcsrc/client/hook.qc b/qcsrc/client/hook.qc index 101ab9f01..dbd8ab2ad 100644 --- a/qcsrc/client/hook.qc +++ b/qcsrc/client/hook.qc @@ -16,6 +16,13 @@ void Draw_CylindricLine(vector from, vector to, float thickness, string texture, // direction is perpendicular to the view normal, and perpendicular to the axis thickdir = normalize(cross(axis, view_origin - from)); +/* + print("from ", vtos(from), "\n"); + print("to ", vtos(to), "\n"); + print("org ", vtos(view_origin), "\n"); + print("dir ", vtos(thickdir), "\n"); +*/ + A = from - thickdir * (thickness / 2); B = from + thickdir * (thickness / 2); C = to + thickdir * (thickness / 2); diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 0ec16a9a3..c4b8bb600 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -1059,7 +1059,6 @@ float ClientInit_SendEntity(entity to, float sf) WriteCoord(MSG_ENTITY, hook_shotorigin_x); WriteCoord(MSG_ENTITY, hook_shotorigin_y); WriteCoord(MSG_ENTITY, hook_shotorigin_z); - if(sv_foginterval && world.fog != "") WriteString(MSG_ENTITY, world.fog); else @@ -1100,10 +1099,11 @@ void ClientInit_Spawn() { entity o; entity e; + e = spawn(); e.classname = "clientinit"; e.think = ClientInit_CheckUpdate; - e.nextthink = time; Net_LinkEntity(e, FALSE, 0, ClientInit_SendEntity); + o = self; self = e; ClientInit_CheckUpdate(); -- 2.39.2