]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Finish my last commit
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 15 Mar 2012 15:08:39 +0000 (17:08 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 15 Mar 2012 15:08:39 +0000 (17:08 +0200)
data/qcsrc/client/csqc_builtins.qc
data/qcsrc/warpzonelib/client.qc

index 9933b3ff61bc475393a8731e83b314216c89e44e..c5ba47e99bdc421cf1ffa3ddcdf764296b074b0b 100644 (file)
@@ -79,6 +79,7 @@ void ()                                                                       R_ClearScene = #300;
 void (float mask)                                                      R_AddEntities = #301;\r
 void (entity e)                                                                R_AddEntity = #302;\r
 float (float property, ...)                                            R_SetView = #303;\r
+vector (float property, ...)                                           R_SetView3fv = #303;\r
 void ()                                                                        R_RenderScene = #304;\r
 void (vector org, float radius, vector rgb)                            R_AddDynamicLight = #305;\r
 void ()                                                                        R_CalcRefDef = #306;\r
index c16fc898b0d09232c049bb25a31babf4ffca811a..e01ce8f80a8250f7dcb24cd81728666a4aec4c26 100644 (file)
@@ -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);
        }
 }