This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if(!isDedicated && hasInterface) then | |
| { | |
| addMissionEventHandler ["Draw3D", { | |
| { | |
| if(side _x == playerSide) then | |
| { | |
| _dst = (_x distance player); | |
| _size = 1 - (_dst / 100); | |
| _pos = position _x; | |
| _pos set[2, (_pos select 2) + 2.25]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| foo = { | |
| private["___returnValue___", "___returnedValue___"]; | |
| ___returnedValue___ = _this call { | |
| scopeName "___returnScope___"; | |
| //works only with topMost scope but not lower scopes | |
| if(false) exitWith {false}; | |
| if(true) then | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @Param 1 - ACTION: | |
| * STRING - String containing the action name, possible actions: | |
| * - init | |
| * - EH_KeyUp | |
| * - EH_KeyDown | |
| * - CreateDisplay | |
| * - DestroyDisplay | |
| * @Param 2 - PARAMETERS: | |
| * ARRAY, see: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| #include <Windows.h> | |
| #include <vector> | |
| #include <mutex> | |
| extern "C" | |
| { | |
| __declspec(dllexport) void __stdcall RVExtension(char *output, int outputSize, const char *function); | |
| }; | |
| std::vector<std::mutex*> mutexList; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| X39_fnc_Scheduler_Create = { | |
| /* | |
| * Creates the scheduler object if not yet was created | |
| * Params: -/- | |
| * Return: OBJECT - Scheduler object (also available via missionNamespace variable 'X39_var_Scheduler') | |
| * Throws: No | |
| * Notes : -/- | |
| */ | |
| if(!isNil "X39_var_Scheduler") exitWith {}; | |
| private "_scheduleFunction"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Example call: | |
| //[configFile >> "CfgVehicles" >> "B_Soldier_F"] call _fnc_printClass; | |
| _fnc_printClass = { | |
| params [ | |
| "_class" | |
| ]; | |
| private [ | |
| "_fnc_getClass", | |
| "_fnc_WriteToString", | |
| "_classArr", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| X39_fnc_genMissionUUID = { | |
| ///Generates a numbers only UUID | |
| ///Chance for duplicates is extremly low but not 100% terminated! | |
| ///Chance for duplicates can be further reduced by taking player | |
| ///UID into account (will prevent usage for servers) | |
| private [ | |
| "_fnc_toNDigitsStringRandom", | |
| "_parts" | |
| ]; | |
| _fnc_toNDigitsStringRandom = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (!isNil "EH") then | |
| { | |
| removeMissionEventHandler ["Draw3D", EH]; | |
| }; | |
| EH = addMissionEventHandler ["Draw3D", { | |
| _prefix = "_USER_DEFINED"; | |
| _prefixCount = count _prefix; | |
| _cfgMarkers = configFile >> "CfgMarkers"; | |
| _cfgMarkerColors = configFile >> "CfgMarkerColors"; | |
| _FadeDistanceMax = [2000, 3000]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <style> | |
| body { | |
| } | |
| .quiz { | |
| width: 75%; | |
| text-align: center; | |
| margin: auto; | |
| background: #929292; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (!isNil "eh") then {removeMissionEventHandler ["Draw3D", eh];}; | |
| eh = addMissionEventHandler["Draw3D", { | |
| { | |
| private _pos = position _x; | |
| drawLine3D [[(_pos select 0) - 1, (_pos select 1) - 1, (_pos select 2) - 1], [(_pos select 0) - 1, (_pos select 1) + 1, (_pos select 2) - 1], [1, 0, 0, 1]]; | |
| drawLine3D [[(_pos select 0) - 1, (_pos select 1) - 1, (_pos select 2) - 1], [(_pos select 0) - 1, (_pos select 1) - 1, (_pos select 2) + 1], [1, 0, 0, 1]]; | |
| drawLine3D [[(_pos select 0) - 1, (_pos select 1) - 1, (_pos select 2) - 1], [(_pos select 0) + 1, (_pos select 1) - 1, (_pos select 2) - 1], [1, 0, 0, 1]]; | |
| drawLine3D [[(_pos select 0) + 1, (_pos select 1) + 1, (_pos select 2) + 1], [(_pos select 0) + 1, (_pos select 1) - 1, (_pos select 2) + 1], [1, 0, 0, 1]]; | |
| drawLine3D [[(_pos select 0) + 1, (_pos select 1) + 1, (_pos select 2) + 1], [(_pos select 0) - 1, (_pos select 1) + 1, (_pos select 2) + 1], [1, 0, 0, 1]]; |
OlderNewer