Sign in to follow this  
K4RaMbA

Buil no flag

11 posts in this topic

Advertisement
1 hour ago, Chainsaw Squirrel said:

And the User Icon .. isn't something that would make anyone want to help you either lol

this is my avatar steam mean lol ?

build no flag !

 

Edited by K4RaMbA

Share this post


Link to post
Share on other sites
53 minutes ago, WURSTKETTE said:

I powiedziałbym, że używasz do tego nadpisania.


ExileClient_util_world_canBuildHere

Maybe...

Opublikuj treść


class CfgExileCustomCode

in config.cpp

Spoiler

class CfgExileCustomCode
{
    /*
        You can overwrite every single file of our code without touching it.
        To do that, add the function name you want to overwrite plus the
        path to your custom file here. If you wonder how this works, have a
        look at our bootstrap/fn_preInit.sqf function.

        Simply add the following scheme here:

        <Function Name of Exile> = "<New File Name>";

        Example:

        ExileClient_util_fusRoDah = "myaddon\myfunction.sqf";
    */
    ExileClient_object_player_stats_update = "overwrites\ExileClient_object_player_stats_update.sqf";    
    // Disable that stupid 5 waypoint bullshit..
    ExileClient_gui_map_event_onMouseButtonUp = "overwrites\ExileClient_gui_map_event_onMouseButtonUp.sqf";
    //disable PP effect in rad zone if u have a gask mask
    ExileClient_system_radiation_thread_update = "overwrites\ExileClient_system_radiation_thread_update.sqf";
    // Custom keys
//    Duplicado    ExileClient_gui_hud_event_onKeyDown = "overwrites\ExileClient_gui_hud_event_onKeyDown.sqf";
    // Make it snow based off altitude
    ExileClient_system_snow_thread_update = "overwrites\ExileClient_system_snow_thread_update.sqf";
    // Bleed when hit
    ExileClient_object_player_event_onHandleDamage = "overwrites\ExileClient_object_player_event_onHandleDamage.sqf";
    // ExAdd
    ExileClient_gui_xm8_slide = "ExAdClient\XM8\CustomCode\ExileClient_gui_xm8_slide.sqf";
    ExileClient_gui_xm8_show = "ExAdClient\XM8\CustomCode\ExileClient_gui_xm8_show.sqf";
    //ExileServer_system_territory_database_load = "ExAdClient\VirtualGarage\CustomCode\ExileServer_system_territory_database_load.sqf";      
    // fix temp
    ExileClient_object_player_stats_updateTemperature = "overwrites\ExileClient_object_player_stats_updateTemperature.sqf";
    // Make toasts last longer
    ExileClient_gui_toaster_addToast = "overwrites\ExileClient_gui_toaster_addToast.sqf";
    // Add to inventory event handler
    ExileClient_object_player_event_onInventoryOpened = "overwrites\ExileClient_object_player_event_onInventoryOpened.sqf";
    // Change health scanner
    ExileClient_gui_xm8_slide_healthScanner_onOpen = "overwrites\ExileClient_gui_xm8_slide_healthScanner_onOpen.sqf";
    // Stats panel
    ExileClient_gui_hud_renderStatsPanel = "overwrites\ExileClient_gui_hud_renderStatsPanel.sqf";
    // Disable territory announcment
    ExileClient_util_world_getNearestLocationName = "overwrites\ExileClient_util_world_getNearestLocationName.sqf";
    // Implement bush kits -- Why hasnt exile done this? Probably broken, lets find out..
    ExileClient_object_bush_attachGreenBush = "overwrites\ExileClient_object_bush_attachGreenBush.sqf";
    // Custom sound on hit
    //ExileClient_object_player_event_onHit = "overwrites\ExileClient_object_player_event_onHit.sqf";
    /** Server overwrites **/
    // Error with ExileServer_system_garbageCollector_deleteObject
    ExileServer_system_garbageCollector_deleteObject = "overwrites\server\ExileServer_system_garbageCollector_deleteObject.sqf";
    // Esseker spawn fix
    //ExileServer_object_player_createBambi = "overwrites\server\ExileServer_object_player_createBambi.sqf";
    // manipulate garbage collection
    ExileServer_system_garbageCollector_unscheduled_deleteAllDead = "overwrites\server\ExileServer_system_garbageCollector_unscheduled_deleteAllDead.sqf";
    // Allow server to check season for key frames
    ExileServer_system_weather_thread_weatherSimulation = "overwrites\server\ExileServer_system_weather_thread_weatherSimulation.sqf";
    // MP killed
    ExileServer_object_player_event_onMpKilled = "overwrites\server\ExileServer_object_player_event_onMpKilled.sqf";
    // Make sticks n leaves spawn when cutting trees
    ExileServer_object_tree_network_chopTreeRequest = "overwrites\server\ExileServer_object_tree_network_chopTreeRequest.sqf";
    // Stop earthquakes destroying buildings near Reborn safe zones
    ExileServer_system_event_earthQuake_start = "overwrites\server\ExileServer_system_event_earthQuake_start.sqf";
    // more room for larger vehicles to spawn
    ExileServer_system_trading_network_purchaseVehicleRequest = "overwrites\server\ExileServer_system_trading_network_purchaseVehicleRequest.sqf";
    //revive
    ExileClient_object_player_death_startBleedingOut = "custom\EnigmaRevive\ExileClient_object_player_death_startBleedingOut.sqf";
    //igiload
    ExileClient_object_player_event_onEnterSafezone = "custom\ExileClient_object_player_event_onEnterSafezone.sqf";
    // BB
    ExileClient_object_construction_move = "overwrites\ExileClient_object_construction_move.sqf";
    ExileClient_gui_hud_event_onKeyDown = "overwrites\ExileClient_gui_hud_event_onKeyDown.sqf";
    ExileClient_gui_hud_event_onKeyUp = "overwrites\ExileClient_gui_hud_event_onKeyUp.sqf";
    ExileClient_construction_beginExistingObject = "overwrites\ExileClient_construction_beginExistingObject.sqf";
    ExileClient_construction_beginNewObject = "overwrites\ExileClient_construction_beginNewObject.sqf";
    ExileClient_construction_thread = "overwrites\ExileClient_construction_thread.sqf";
    ExileClient_gui_coclass CfgExileCustomCodenstructionMode_update = "overwrites\ExileClient_gui_constructionMode_update.sqf";
    ExileClient_util_world_canBuildHere = "overwrites\ExileClient_util_world_canBuildHere.sqf";

    /////////////////////////////////////////////////////////
    
    //JohnO's files I am overwriting or editing

    //    Disables Building in locations
    //ExileClient_object_item_construct = "overwrites\ExileClient_object_item_construct.sqf";
    
    //    Linterna y ropa bambi
    ExileServer_object_player_network_createPlayerRequest = "overwrites\server\ExileServer_object_player_network_createPlayerRequest.sqf";

    //    Dupe vehicle fix
    ExileClient_gui_wasteDumpDialog_event_onSellButtonClick = "overwrites\ExileClient_gui_wasteDumpDialog_event_onSellButtonClick.sqf";

    //    Indestructable bases
    //    ExileServer_object_construction_database_load = "overwrites\server\ExileServer_object_construction_database_load.sqf";
    
    //    Refuel/Drain Fuel with fuel barrel
    ExileClient_object_vehicle_refuel = "overwrites\ExileClient_object_vehicle_refuel.sqf";
    ExileClient_object_vehicle_drain = "overwrites\ExileClient_object_vehicle_drain.sqf";

    //    Shipping Container Bashing - lower scrap
    ExileServer_object_shippingContainer_network_smashShippingContainerRequest = "overwrites\server\ExileServer_object_shippingContainer_network_smashShippingContainerRequest.sqf";
    
    //    Markers only with GPS
    ExileClient_gui_map_event_onDraw = "overwrites\ExileClient_gui_map_event_onDraw.sqf";

    //    Hotwire with other item
    ExileClient_action_hotwireVehicle_condition = "overwrites\ExileClient_action_hotwireVehicle_condition.sqf";

    //Disable autorun
    // ExileClient_system_autoRun_canAutoRun = "overwrites\ExileClient_system_autoRun_canAutoRun.sqf";

    // big houses loot bug
    ExileClient_system_lootManager_thread_spawn = "overwrites\ExileClient_system_lootManager_thread_spawn.sqf";
    
};

 

Share this post


Link to post
Share on other sites
10 minutes ago, WURSTKETTE said:

Please post content of:


overwrites\ExileClient_util_world_canBuildHere.sqf

and 


overwrites\ExileClient_construction_beginNewObject.sqf

 

ExileClient_util_world_canBuildHere.sqf

Spoiler

/**
 * ExileClient_util_world_canBuildHere
 *
 * Exile Mod
 * exile.majormittens.co.uk
 * © 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["_constructionConfigName","_position","_playerUID","_result","_requiresTerritory","_canBePlacedOnRoad","_allowDuplicateSnap","_minimumDistanceToTraderZones","_minimumDistanceToSpawnZones","_minimumDistanceToOtherTerritories","_maximumTerritoryRadius","_positionObject","_nearestFlags","_radius","_buildRights","_territoryLevelConfigs","_territoryLevelConfig","_numberOfConstructionsAllowed","_numberOfObjects"];
_constructionConfigName = _this select 0;
_position = _this select 1;
_playerUID = _this select 2;
_result = 0;
_requiresTerritory = getNumber (configFile >> "CfgConstruction" >> _constructionConfigName >> "requiresTerritory") isEqualTo 1;
_canBePlacedOnRoad = getNumber (configFile >> "CfgConstruction" >> _constructionConfigName >> "canBePlacedOnRoad") isEqualTo 1;
_allowDuplicateSnap = getNumber (configFile >> "CfgConstruction" >> _constructionConfigName >> "allowDuplicateSnap") isEqualTo 1;
_minimumDistanceToTraderZones = getNumber (missionConfigFile >> "CfgTerritories" >> "minimumDistanceToTraderZones");
_minimumDistanceToSpawnZones = getNumber (missionConfigFile >> "CfgTerritories" >> "minimumDistanceToSpawnZones");
_minimumDistanceToOtherTerritories = getNumber (missionConfigFile >> "CfgTerritories" >> "minimumDistanceToOtherTerritories");
_maximumTerritoryRadius = getNumber (missionConfigFile >> "CfgTerritories" >> "maximumRadius");
try
{
    if ([_position, _minimumDistanceToTraderZones] call ExileClient_util_world_isTraderZoneInRange) then
    {
        throw 4;
    };
    if ([_position, _minimumDistanceToSpawnZones] call ExileClient_util_world_isSpawnZoneInRange) then
    {
        throw 5;
    };
    if ((AGLtoASL _position) call ExileClient_util_world_isInConcreteMixerZone) then
    {
        throw 11;
    };
    if ((AGLtoASL _position) call ExileClient_util_world_isInNonConstructionZone) then
    {
        throw 10;
    };
    if ((AGLtoASL _position) call ExileClient_util_world_isInRadiatedZone) then
    {
        throw 8;
    };
    if !(_canBePlacedOnRoad) then
    {
        if (isOnRoad [_position select 0, _position select 1, 0]) then
        {
            throw 3;
        };
    };
    _numberOfObjects = 0;
    if !(_allowDuplicateSnap) then
    {
        {
            _positionObject = (ASLtoAGL (getPosASL _x));
            if (_position isEqualTo _positionObject) then
            {
                _numberOfObjects = _numberOfObjects + 1;
                if(_numberOfObjects >= 2)then{throw 7;};
            };
        }
        forEach (_position nearObjects ["Exile_Construction_Abstract_Static", 3]);
    };
    if (_constructionConfigName isEqualTo "Flag") then
    {
        if ([_position, _minimumDistanceToOtherTerritories] call ExileClient_util_world_isTerritoryInRange) then
        {
            throw 2;
        };
    }
    else
    {
        _nearestFlags = (nearestObjects [_position, ["Exile_Construction_Flag_Static"], _maximumTerritoryRadius]);
        if !(_nearestFlags isEqualTo []) then
        {
            {
                _radius = _x getVariable ["ExileTerritorySize", -1];
                if (((AGLtoASL _position) distance (getPosASL _x)) < _radius) then
                {
                    _buildRights = _x getVariable ["ExileTerritoryBuildRights", []];
                    if (_playerUID in _buildRights) then
                    {
                        _territoryLevelConfigs = getArray (missionConfigFile >> "CfgTerritories" >> "prices");
                        _territoryLevelConfig = _territoryLevelConfigs select ((_x getVariable ["ExileTerritoryLevel", 0]) - 1);
                        _numberOfConstructionsAllowed = _territoryLevelConfig select 2;
                        if ((_x getVariable ["ExileFlagStolen", 0]) isEqualTo 1) then
                        {
                            throw 9;
                        };
                        if ((_x getVariable ["ExileTerritoryNumberOfConstructions", 0]) >= _numberOfConstructionsAllowed) then
                        {
                            throw 6;
                        };
                        throw 0;
                    };
                };
                throw 2;
            }
            forEach _nearestFlags;
        };
        if (_requiresTerritory) then
        {
            throw 1;    
        };
    };
}
catch
{
    _result = _exception;
};
_result

 

ExileClient_construction_beginNewObject.sqf

Spoiler

/**
 * ExileClient_construction_beginNewObject
 *
 * Exile Mod
 * exile.majormittens.co.uk
 * © 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/.
 *
    eXpochClient_FREE_vectorBuilding
    
    Made for Anarchy, adapted to eXpoch and ported into Altis Life and Operation BlockHead by DirtySanchez
    
    and NOW EXILE WILL FEEL THE FREE VECTOR, go get a job sellers of scripts, this is a modding community.
    Sharing is caring and douchebaggery is a bannable offense
    
   http://DonkeyPunch.INFO
 */
 
private["_kitClassName","_previewObjectClassName"];
_kitClassName = _this select 0;
ExileClientConstructionConfig = ("getText(_x >> 'kitMagazine') == _kitClassName" configClasses(configFile >> "CfgConstruction")) select 0;
_previewObjectClassName = getText(ExileClientConstructionConfig >> "previewObject");
ExileClientConstructionSnapToObjectClassNames = (ExileClientConstructionConfig >> "SnapObjects") call Bis_fnc_getCfgSubClasses;
ExileClientConstructionProcess = 1;
ExileClientConstructionOffset = [0, 5, 0];
ExileClientConstructionPosition = [0, 0, 0];
DPBEAClientObjAttachedTo = player;
BuildVecYaw = 0;BuildVecPitch = 0;BuildVecRoll = 0;
ExileClientConstructionRotation = 0;
ExileClientConstructionKitClassName = _kitClassName;
ExileClientConstructionObjectDisplayName = getText(configFile >> "CfgVehicles" >> _previewObjectClassName >> "displayName");
if (ExileClientPlayerIsInCombat) then
{
    ["ErrorTitleAndText", ["Construction aborted!", "You cannot build during a combat."]] call ExileClient_gui_toaster_addTemplateToast;
}
else
{
    ExileClientConstructionMode = 1;
    ExileClientConstructionIsInSelectSnapObjectMode = true;
    ExileClientConstructionSupportSnapMode = count(ExileClientConstructionSnapToObjectClassNames) > 0;
    ExileClientConstructionCurrentSnapToObject = objNull;
    ExileClientConstructionPosition = [getPosATL player, ExileClientConstructionOffset select 1, getDir player] call ExileClient_util_math_getPositionInDirection;
    ExileClientConstructionPosition set[2, ExileClientConstructionOffset select 2];
    {
        player reveal _x;
    }
    forEach (player nearObjects  ["Exile_Construction_Abstract_Static", 20]);
    if((count _this) < 2 )then
    {
        ["buildConstructionRequest", [_previewObjectClassName,ExileClientConstructionPosition]] call ExileClient_system_network_send;
    }
    else
    {
        ["buildTerritoryRequest", [_previewObjectClassName, (ASLtoAGL (ATLtoASL ExileClientConstructionPosition)),_this select 1,_this select 2]] call ExileClient_system_network_send;
    };
};
true

 

Share this post


Link to post
Share on other sites

Might related to expochvector building overwrites (usually they should work, maybe you have a wonky file).

I try to check later - meanwhile you could disable and see if it's about that

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  

  • Recently Browsing   0 members

    No registered users viewing this page.