Sign in to follow this  
Followers 0
humpabry

flags stop loot spawns

6 posts in this topic

does anyone know how to edit the flags spawning stopping loot from spawning? half my server dont have loot due to this and its kind of annoying.

cheers

Share this post


Link to post
Share on other sites

Funnily enough I placed a flag pole under a loot spawn, when I returned to my test base to continue building I always got 'Loot has spawned'? I will test this later, are you sure its the flags blocking the loot?

Share this post


Link to post
Share on other sites
Advertisement

ya for sure iits the flags

 

 

dwarfer is moderator and he said they do and it can be changed *somewhere*

just dont understand why they would add this *fantastic* idea of blocking loot near flags when most servers have rules against building in certain zones

Edited by humpabry

Share this post


Link to post
Share on other sites

ExileServer_system_lootManager_thread_despawnLoot.sqf

/**
 * Exile Mod
 * www.exilemod.com
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_minimumLootLifeTime","_maximumLootLifeTime","_visualThreshold","_building","_lootSpawnTime","_despawnLoot","_lootAliveTime","_groundWeaponHolderNetIDs","_groundWeaponHolder"];
_minimumLootLifeTime = getNumber (configFile >> "CfgSettings" >> "LootSettings" >>  "minimumLifeTime");
_maximumLootLifeTime = getNumber (configFile >> "CfgSettings" >> "LootSettings" >>  "maximumLifeTime");
_visualThreshold = getNumber (configFile >> "CfgSettings" >> "LootSettings" >>  "visualThreshold");
{
    _building = objectFromNetId _x;
    _lootSpawnTime = _building getVariable ["ExileLootSpawnedAt", 0];
    _despawnLoot = false;
    _lootAliveTime = time - _lootSpawnTime;
    if (_lootAliveTime > _maximumLootLifeTime) then
    {
        _despawnLoot = true;    
    }
    else 
    {
        if (_lootAliveTime > _minimumLootLifeTime) then
        {
            if !([getPosATL _building, _visualThreshold] call ExileServer_util_position_isPlayerNearby) then
            {
                _despawnLoot = true;
            };
        };
    };
    if (_despawnLoot) then
    {
        _groundWeaponHolderNetIDs = _building getVariable ["ExileLootGroundWeaponHolderNetIDs", []];
        {
            _groundWeaponHolder = objectFromNetId _x;
            if !(isNull _groundWeaponHolder) then
            {
                clearBackpackCargoGlobal _groundWeaponHolder;
                clearItemCargoGlobal _groundWeaponHolder;
                clearMagazineCargoGlobal _groundWeaponHolder;
                clearWeaponCargoGlobal _groundWeaponHolder;
                deleteVehicle _groundWeaponHolder;
            };
        }
        forEach _groundWeaponHolderNetIDs;
        _building setVariable ["ExileLootSpawnedAt", nil];
        _building setVariable ["ExileHasLoot", false];
        _building setVariable ["ExileLootGroundWeaponHolderNetIDs", []];
        ExileServerBuildingNetIdsWithLoot deleteAt _forEachIndex;
    };
}
forEach ExileServerBuildingNetIdsWithLoot;

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.