Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xrays




One player here at CD found a helmet of xray-vision.
After playing with this for a while we considered it
to powerful. A lot of the maps are made for 
limited vision. Especially the one with several 'levels'
on the same map.

Tony

Here is a patch that limits the helmet of xray-vision
to 5 by 5 squares.

*** crossfire-0.88.0.orig/los.c	Mon Jan  4 18:04:38 1993
--- crossfire-0.88.0/los.c	Sat Jan  9 19:45:22 1993
***************
*** 277,287 ****
      return;
  #ifdef USE_LOS
    clear_los(op);
!   if(IS_WIZ(op)||XRAYS(op))
      return;
    for(i=1;i<9;i++)
      check_wall(op,5+freearr_x[i],5+freearr_y[i]);
    expand_sight(op);
  #endif
  }
  
--- 277,295 ----
      return;
  #ifdef USE_LOS
    clear_los(op);
!   if(IS_WIZ(op) /* ||XRAYS(op) */)
      return;
    for(i=1;i<9;i++)
      check_wall(op,5+freearr_x[i],5+freearr_y[i]);
    expand_sight(op);
+ 
+   if (XRAYS(op)) {
+     int x, y;
+     for (x = -2; x <= 2; x++)
+       for (y = -2; y <= 2; y++)
+ 	op->contr->blocked_los[5 + x][5 + y] = 0;
+   }
+ 
  #endif
  }