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
auto unit = GetGame().GetWorld().FindEntityByName("bob"); | |
CharacterControllerComponent.Cast(unit.FindComponent(CharacterControllerComponent)).SetUnconscious(true); |
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
@echo off | |
rem the name of the script is drive path name of the Parameter %0 | |
rem (= the batch file) but with the extension ".ps1" | |
set PSScript=%~dpn0.ps1 | |
set args=%1 | |
:More | |
shift | |
if '%1'=='' goto Done | |
set args=%args%, %1 | |
goto More |
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; |
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
// 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
// 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
/* | |
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
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
# Gitlab Runner DIND | |
version: '3.2' | |
services: | |
dind: | |
restart: always | |
privileged: true | |
image: docker:17.09.0-ce-dind | |
command: | |
- --storage-driver=overlay2 |
NewerOlder