Jump to content

He-Man

Developer
  • Posts

    808
  • Joined

  • Last visited

  • Days Won

    63

Posts posted by He-Man

  1. Arma und keine Fehler im rpt ist doch schon mal gelogen ;)

    That is not easy to answer.

    What is your vehicleLockTime in epochconfig.hpp?

    Check, if the Vehicle has a valid slot (with Infistar you can check the slot by pressing shift+i)

    Look into your DB in Vehiclelock and this slot, if there is an entry for the owner.

    What happened, when you lock the Vehicle after restart? Can no other player (outside your Group) lock it then?

  2. Hi,

    what do you mean with any "Epoch Maps"?

    Epoch uses default maps and spawn in some additional Buildings on Server start. So it is right to select a default map.

    - Unpack your mission file (epoch.altis.pbo) with pbo manager: http://www.armaholic.com/page.php?id=16369

    - create a file in the root of the unpacked mission file "init.sqf"

    - insert in this init.sqf:

    Spoiler

    if (isserver) then {

          [] execVM "mybuildings.sqf;

    };

    - create a new file in the root of the mission "mybuildings.sqf"

    - paste the exported content from E3DEN in this file

    - Safe both files and repack the epoch.altis folder to epoch.altis.pbo (with pbo manager)

    Now the Server should load these buildings on server startup

  3. I would put the systemchat in the KeyDown EH directly before the "[] call Ignatz_Client_Earplugger":

    Spoiler

    ...
    if (Ignatz_Earplugsin) then {
        systemchat 'Earplugs have been removed";
    }
    else {
        systemchat 'Earplugs have been inserted";
    };
    [] call Ignatz_Client_Earplugger;
    ...

    What do you mean with (re)disable? No pissiblility to put them in / out inside Vehicles?

  4. 2 hours ago, Tarabas said:

    Thank you for your sharing this He-Man...

    would it be possible to get the entries for Epoch AH Keydown to allow all players let the hotkey work like you did in your statusbar script ?

    Sure.

    Comment out in Ignatz_Client_StartScript.sqf:

    Spoiler

    [] call Ignatz_Client_EH_KeyDown;

    //  [] call Ignatz_Client_EH_KeyDown;

     

    And add in EPOCH_KeyDown.sqf:

    Spoiler

    .....
    if (_dikCode in (actionKeys "NightVision")) then {
        if (EPOCH_playerEnergy == 0) then {
            ["Night Vision Goggles: Need Energy", 5] call Epoch_message;
            _handled = true;
        };
    };

    if (!isnil 'Ignatz_KB_Earplug') then {
        if (_dikCode == Ignatz_KB_Earplug) then {
            [] call Ignatz_Client_Earplugger
        };
    };

    _handled

     

  5. I think in EpochAH there is no setting to disable DisplayEH revert.

    So you have to add this keydown EH directly into the Epoch Code.

    Remove from my Script:

    Spoiler

        if (_UseSwitchKey) then {
            _display displayaddeventhandler ['keydown',{
                if ((_this select 1) == Ignatz_StatusBarSwitchKey) then {
                    Ignatz_StatusbarSelected = switch Ignatz_StatusbarSelected do {
                        case 0: {1};
                        case 1: {2};
                        case 2:    {3};
                        case 3: {0};
                    };
                };
            }];

        }
        else {
            Ignatz_StatusBarSwitchKey = nil;
        };
     

    And add in EPOCH_KeyDown.sqf:

    Spoiler

    ......

    if (_dikCode in (actionKeys "NightVision")) then {
        if (EPOCH_playerEnergy == 0) then {
            ["Night Vision Goggles: Need Energy", 5] call Epoch_message;
            _handled = true;
        };
    };

    if (!isnil 'Ignatz_StatusBarSwitchKey') then {
        if (_dikCode == Ignatz_StatusBarSwitchKey) then {
            Ignatz_StatusbarSelected = switch Ignatz_StatusbarSelected do {
                case 0: {1};
                case 1: {2};
                case 2:    {3};
                case 3: {0};
            };
        };
    };

    _handled
     

     

  6. You can put it direcly in your init.sqf for testing:

    Spoiler

    [] spawn {
           if (hasinterface) then {
            uisleep 30;
               player addAction ['Test Addaction', {hint (_this select 3); systemchat (_this select 3)},'Test Action works',1.5,false,true,'','true'];
         };
    }; 

    The uisleep 30 is only to make sure, that the action is not loaded before the player self is loaded in.

    If you get a scrolldown menu with this, it is not the Antihack!

×
×
  • Create New...