mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
suppress loot spawning at main traders
http://epochmod.com/forum/topic/41954-loot-spawning-at-traders/
This commit is contained in:
parent
01ff034482
commit
bb8f4f1c1e
@ -57,7 +57,7 @@ _lootBubble = {
|
||||
_lootDist = 30 + _distanceTraveled;
|
||||
_lootLoc = player getRelPos [_lootDist, (random [-180,0,180])];
|
||||
_objects = nearestObjects[_lootLoc, _lootClasses, 30];
|
||||
_jammer = nearestObjects [_lootLoc, ["PlotPole_EPOCH"], _buildingJammerRange];
|
||||
_jammer = nearestObjects [_lootLoc, ["PlotPole_EPOCH","ProtectionZone_Invisible_F"], _buildingJammerRange];
|
||||
if (!(_objects isEqualTo[]) && (_jammer isEqualTo[])) then {
|
||||
_building = selectRandom _objects;
|
||||
if !(_building in EPOCH_LootedBlds) then {
|
||||
|
Loading…
Reference in New Issue
Block a user