Jump to content
  • 0

Gelid nitro with infistar


Th3-Hunter333

Question

Been trying to get this script here Gelid nitro working on our server with infistar installed which obviously is blocking parts of the script in some way shape or form, does anyone know what to change around to stop infistar from blocking the keystrokes from this script? Every edit i have done thus far hasnt worked as of yet.
 


This script works fully with infistar off so I know the script works in its current configuration
 

Under AH.sqf I think this is the section that is blocking the keybinding on the nitro script but im just guessing based on the link above readings.
This starts at line 1352 on down with this section posted below here, You can see the edits i have tried that are commented out that is not working as well in that line
 

Spoiler

_ALLOWED_Dialogs = "+str _ALLOWED_Dialogs+";
            while{1 == 1}do
            {
                {
                    if !(isNull (findDisplay _x))then
                    {
                        (findDisplay _x) displayRemoveAllEventHandlers 'MouseZChanged';
                        if !(_x in [-1,106,12])then
                        {
                            (findDisplay _x) displayRemoveAllEventHandlers 'MouseMoving';
                            (findDisplay _x) displayRemoveAllEventHandlers 'MouseHolding';
                            (findDisplay _x) displayRemoveAllEventHandlers 'MouseButtonDown';
                            (findDisplay _x) displayRemoveAllEventHandlers 'MouseButtonUp';
                        };
                        (findDisplay _x) displayRemoveAllEventHandlers 'KeyDown';
                        (findDisplay _x) displayRemoveAllEventHandlers 'KeyUp';
                        (findDisplay _x) displayAddEventHandler ['KeyUp',"+_randvar6+"];
                    };
                } forEach [-1,12,18,49,106,129];
                
                (findDisplay 46) displayRemoveAllEventHandlers 'MouseButtonDown';
                (findDisplay 46) displayRemoveAllEventHandlers 'MouseButtonUp';
                (findDisplay 46) displayRemoveAllEventHandlers 'MouseZChanged';
                (findDisplay 46) displayRemoveAllEventHandlers 'KeyUp';
                (findDisplay 46) displayAddEventHandler ['KeyUp',"+_randvar6+"];
                
                _kdID = 0;
                _shouldbe = 0;
                _checknow = false;

                _veh = vehicle player;
                if((_veh != player)&&{(!(_veh isKindOf 'ParachuteBase')&&!(_veh isKindOf 'BIS_Steerable_Parachute'))})then
                {
                    (findDisplay 46) displayRemoveAllEventHandlers 'MouseMoving';
                    (findDisplay 46) displayRemoveAllEventHandlers 'MouseHolding';
                    
                    // Nitro Vehicles
                    // if (!isNil 'donn_problem') then {nosKeyUp = (findDisplay 46) displayAddEventHandler ['KeyUp','_this select 1 call kUpFunc; false;'];};
                    
                    "; if(_RCK)then{ _AHstring = _AHstring + "
                        if(str _dayz_spaceInterrupt == '{}')then
                        {
                            (findDisplay 46) displayRemoveEventHandler ['KeyDown',_keyDownfncid];
                            _keyDownfncid = (finddisplay 46) displayAddEventHandler ['KeyDown',"+_randvar6+"];
                        }
                        else
                        {
                            (findDisplay 46) displayRemoveAllEventHandlers 'KeyDown';
                            (findDisplay 46) displayAddEventHandler ['KeyDown',"+_randvar6+"];
                            
                            // Nitro Vehicles
                            // (findDisplay 46) displayAddEventHandler ['KeyDown','_this call dayz_spaceInterrupt"+_randvar6+";'];
                            
                            (findDisplay 46) displayAddEventHandler ['KeyDown',_dayz_spaceInterrupt];
                        };
                    "; }; _AHstring = _AHstring + "
                };
                
                uiSleep 0.3;

Thanks again guys, this one has defeated me thus far

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...