Advertisement
darkarchon

Untitled

May 31st, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.58 KB | None | 0 0
  1. if (mdh_nuke_destruction_zone > 0 && isServer) then
  2. {
  3.     _zonesCount = 30;
  4.     _zones = [];
  5.     for "_i" from 1 to _zonesCount do {_zones pushBack (mdh_nuke_destruction_zone * sqrt(_i/_zonesCount))};
  6.     {
  7.         _nO = (bombpos nearObjects _x select {alive _x});
  8.         _nO append (nearestTerrainObjects [bombpos, ["BUSH"], _x, false] select {alive _x});
  9.         _nO append (nearestTerrainObjects [bombpos, ["SMALL TREE", "FENCE", "WALL", "TREE"], _x, false] select {alive _x});
  10.         {
  11.             _x setDamage 1;
  12.             if (_forEachIndex%50==0) then {
  13.                 sleep 0.03;
  14.             };
  15.         } forEach _nO;
  16.  
  17.     } forEach _zones;
  18. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement