]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use monster maxs for waypoint height
authorMario <mario.mario@y7mail.com>
Sat, 31 Aug 2013 16:24:12 +0000 (02:24 +1000)
committerMario <mario.mario@y7mail.com>
Sat, 31 Aug 2013 16:24:12 +0000 (02:24 +1000)
qcsrc/common/monsters/cl_monsters.qc

index ff7e9f7ae08652d61ce3871deb4e48cd6034abcc..40f5e22acc4ce745298ca7a0eddfc81fa1bef751 100644 (file)
@@ -46,7 +46,7 @@ void monster_draw2d()
        if(dist < 10240 && t != self.team)
        {
                // TODO: Vehicle tactical hud
-               o = project_3d_to_2d(self.origin + '0 0 32');
+               o = project_3d_to_2d(self.origin + '0 0 1' * (self.maxs_z + 10));
                if(o_z < 0 
                || o_x < (vid_conwidth * waypointsprite_edgeoffset_left) 
                || o_y < (vid_conheight * waypointsprite_edgeoffset_top) 
@@ -108,7 +108,7 @@ void monster_draw2d()
                
        rgb = fixrgbexcess(rgb);
 
-       o = project_3d_to_2d(self.origin + '0 0 64');
+       o = project_3d_to_2d(self.origin + '0 0 1' * (self.maxs_z + 15));
        if(o_z < 0 
        || o_x < (vid_conwidth * waypointsprite_edgeoffset_left) 
        || o_y < (vid_conheight * waypointsprite_edgeoffset_top)