This file contains 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
//////////////////////////////////////////////////////////////////////////// | |
// Copyright (c) 2019 Marco "X39" Silipo // | |
// // | |
// Permission is hereby granted, free of charge, to any person obtaining // | |
// a copy of this software and associated documentation files (the // | |
// "Software"), to deal in the Software without restriction, including // | |
// without limitation the rights to use, copy, modify, merge, publish, // | |
// distribute, sublicense, and/or sell copies of the Software, and to // | |
// permit persons to whom the Software is furnished to do so, subject to // | |
// the following conditions: // |
This file contains 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
//////////////////////////////////////////////////////////////////////////////////// | |
// MIT License // | |
// // | |
// Copyright (c) 2018 Marco Silipo (X39) // | |
// // | |
// Permission is hereby granted, free of charge, to any person obtaining a copy // | |
// of this software and associated documentation files (the "Software"), to deal // | |
// in the Software without restriction, including without limitation the rights // | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // | |
// copies of the Software, and to permit persons to whom the Software is // |
This file contains 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
<#@ template debug="true" hostspecific="false" language="C#" #> | |
<#@ assembly name="System.Core" #> | |
<#@ assembly name="PresentationCore" #> | |
<#@ assembly name="PresentationFramework" #> | |
<#@ import namespace="System.Linq" #> | |
<#@ import namespace="System.Text" #> | |
<#@ import namespace="System.Windows" #> | |
<#@ import namespace="System.Windows.Controls" #> | |
<#@ import namespace="System.Collections.Generic" #> | |
<#@ output extension=".cs" #> |
This file contains 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]]; |
This file contains 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 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 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 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 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 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; |
NewerOlder