Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (mdh_nuke_destruction_zone > 0 && isServer) then
- {
- _zonesCount = 30;
- _zones = [];
- for "_i" from 1 to _zonesCount do {_zones pushBack (mdh_nuke_destruction_zone * sqrt(_i/_zonesCount))};
- {
- _nO = (bombpos nearObjects _x select {alive _x});
- _nO append (nearestTerrainObjects [bombpos, ["BUSH"], _x, false] select {alive _x});
- _nO append (nearestTerrainObjects [bombpos, ["SMALL TREE", "FENCE", "WALL", "TREE"], _x, false] select {alive _x});
- {
- _x setDamage 1;
- if (_forEachIndex%50==0) then {
- sleep 0.03;
- };
- } forEach _nO;
- } forEach _zones;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement