Various editor/arma sqf stuff.
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
const createRange = (start, amount) => | |
Array.from(Array(amount), (_, idx) => start + idx); | |
/** | |
* @param {array} array | |
*/ | |
const uniqueArray = array => [...new Set(array)]; | |
/** | |
* @param {array} array |
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
// Show activation ranges of all sectors | |
KPLIB_sectors_all apply { | |
private _rangeMarker = format ["%1_range", _x]; | |
createMarkerLocal [_rangeMarker, getMarkerPos _x]; | |
_rangeMarker setMarkerShapeLocal "ELLIPSE"; | |
_rangeMarker setMarkerSizeLocal [KPLIB_param_sectorActRange, KPLIB_param_sectorActRange]; | |
_rangeMarker setMarkerBrushLocal "BORDER"; | |
_rangeMarker | |
}; |
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
# Gitlab Runner DIND | |
version: '3.2' | |
services: | |
dind: | |
restart: always | |
privileged: true | |
image: docker:17.09.0-ce-dind | |
command: | |
- --storage-driver=overlay2 |
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
function getWorkshopIdFromUrl(url) { | |
return url.split('id=')[1]; | |
}; | |
function getNodeType(node) { | |
return node.getAttribute('data-type') | |
}; | |
function getNodeDataValue(node) { | |
switch(getNodeType(node)) { |
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
/* | |
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes | |
Date: 2018-09-20 | |
Last Update: 2018-09-20 | |
License: GNU General Public License v3.0 - https://www.gnu.org/licenses/gpl-3.0.html | |
Description: | |
Creates camera that will start at given position and focus on target | |
Parameter(s): |
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
// This config intends to be a baseline for further adjustments. | |
// The default values for most of the settings seem to be more fit for good ol OFP days. | |
// Per socket (client) bandwidth settings | |
// These values are in BYTES | |
// value * 8 / 1000 to get kbits | |
class sockets { | |
// Packet MTU, keep lower than 1500 to not risk packet fragmentation, default 1400 | |
// 1444 used on official BI servers | |
maxPacketSize = 1430; |
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
// https://cdn.discordapp.com/attachments/396276036762992640/741802620078915664/Replay_2020-08-09_01-35-35_Trim.mp4 | |
["ace_unconscious", { | |
params ["_unit", "_unconscious"]; | |
if (!local _unit || {isPlayer _unit}) exitWith {}; | |
if (_unconscious) then { | |
private _weaponGh = _unit call ACE_hitreactions_fnc_throwWeapon; | |
_unit setVariable ["my_weaponGh", _weaponGh]; | |
} else { | |
private _weaponGh = _unit getVariable ["my_weaponGh", objNull]; |
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
[agent] | |
debug = false | |
interval = "5s" | |
# MSI Afterburner Remote Server | |
[[inputs.http]] | |
urls = ["http://${AFTERBURNER_HOST}:82/mahm"] | |
name_override = "msi_afterburner" |
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
// author: veteran29 | |
// execute in 3DEN editor debug console to see floating bushes as icons/lines | |
_eh = missionNamespace getVariable ["bushesEh", -1]; | |
removeMissionEventHandler ["Draw3D", _eh]; | |
bushesEh = addMissionEventHandler ["Draw3d", { | |
{ | |
_x params ["_from", "_to", "_bush"]; | |
_isClose = get3DENCamera distance _bush < 150; | |
_text = ["", getModelInfo _bush#0] select _isClose; |
OlderNewer