r4572 - trunk/data/qcsrc/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Oct 1 13:47:23 EDT 2008


Author: div0
Date: 2008-10-01 13:47:23 -0400 (Wed, 01 Oct 2008)
New Revision: 4572

Modified:
   trunk/data/qcsrc/client/teamradar.qc
Log:
add a line around the arrow in the radar to balance it (blue is too hard visible otherwise)


Modified: trunk/data/qcsrc/client/teamradar.qc
===================================================================
--- trunk/data/qcsrc/client/teamradar.qc	2008-10-01 17:35:22 UTC (rev 4571)
+++ trunk/data/qcsrc/client/teamradar.qc	2008-10-01 17:47:23 UTC (rev 4572)
@@ -54,7 +54,7 @@
 
 void(vector coord3d, vector pangles, vector rgb) draw_teamradar_player =
 {
-	vector coord;
+	vector coord, rgb2;
 
 	coord = teamradar_texcoord_to_2dcoord(teamradar_3dcoord_to_texcoord(coord3d));
 
@@ -65,6 +65,17 @@
 	v_right_x = -v_forward_y;
 	v_right_y = v_forward_x;
 
+	if(rgb != '1 1 1')
+	{
+		rgb2 = '1 1 1';
+		R_BeginPolygon("", 0);
+		R_PolygonVertex(coord+v_forward*3, '0 0 0', rgb2, 1);
+		R_PolygonVertex(coord+v_right*4-v_forward*2.5, '0 1 0', rgb2, 1);
+		R_PolygonVertex(coord-v_forward*2, '1 0 0', rgb2, 1);
+		R_PolygonVertex(coord-v_right*4-v_forward*2.5, '1 1 0', rgb2, 1);
+		R_EndPolygon();
+	}
+
 	R_BeginPolygon("", 0);
 	R_PolygonVertex(coord+v_forward*2, '0 0 0', rgb, 1);
 	R_PolygonVertex(coord+v_right*3-v_forward*2, '0 1 0', rgb, 1);




More information about the nexuiz-commits mailing list