From 5ff550251ade0f555e545b1466ac39b5b318dacf Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Thu, 15 Mar 2012 17:08:39 +0200 Subject: [PATCH] Finish my last commit --- data/qcsrc/client/csqc_builtins.qc | 1 + data/qcsrc/warpzonelib/client.qc | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/data/qcsrc/client/csqc_builtins.qc b/data/qcsrc/client/csqc_builtins.qc index 9933b3ff..c5ba47e9 100644 --- a/data/qcsrc/client/csqc_builtins.qc +++ b/data/qcsrc/client/csqc_builtins.qc @@ -79,6 +79,7 @@ void () R_ClearScene = #300; void (float mask) R_AddEntities = #301; void (entity e) R_AddEntity = #302; float (float property, ...) R_SetView = #303; +vector (float property, ...) R_SetView3fv = #303; void () R_RenderScene = #304; void (vector org, float radius, vector rgb) R_AddDynamicLight = #305; void () R_CalcRefDef = #306; diff --git a/data/qcsrc/warpzonelib/client.qc b/data/qcsrc/warpzonelib/client.qc index c16fc898..e01ce8f8 100644 --- a/data/qcsrc/warpzonelib/client.qc +++ b/data/qcsrc/warpzonelib/client.qc @@ -125,9 +125,9 @@ void WarpZone_FixView() #ifndef KEEP_ROLL if(autocvar_cl_rollkillspeed) - R_SetView(VF_CL_VIEWANGLES_Z, input_angles_z * max(0, (1 - frametime * autocvar_cl_rollkillspeed))); + setproperty(VF_CL_VIEWANGLES_Z, input_angles_z * max(0, (1 - frametime * autocvar_cl_rollkillspeed))); else - R_SetView(VF_CL_VIEWANGLES_Z, 0); + setproperty(VF_CL_VIEWANGLES_Z, 0); #endif e = WarpZone_Find(warpzone_fixview_origin, warpzone_fixview_origin); @@ -156,8 +156,8 @@ void WarpZone_FixView() if(warpzone_saved) { - R_SetView(VF_ORIGIN, warpzone_fixview_origin); - R_SetView(VF_ANGLES, warpzone_fixview_angles); + setproperty(VF_ORIGIN, warpzone_fixview_origin); + setproperty(VF_ANGLES, warpzone_fixview_angles); } } void WarpZone_UnFixView() @@ -166,8 +166,8 @@ void WarpZone_UnFixView() { warpzone_fixview_origin = warpzone_saved_origin; warpzone_fixview_angles = warpzone_saved_angles; - R_SetView(VF_ORIGIN, warpzone_fixview_origin); - R_SetView(VF_ANGLES, warpzone_fixview_angles); + setproperty(VF_ORIGIN, warpzone_fixview_origin); + setproperty(VF_ANGLES, warpzone_fixview_angles); } } -- 2.39.2