Skip to content

Instantly share code, notes, and snippets.

View veteran29's full-sized avatar
🥔
💥

Filip Maciejewski veteran29

🥔
💥
View GitHub Profile
@OverlordZorn
OverlordZorn / #01 Intent.md
Last active April 1, 2024 12:10
Arma 3 - Problematic Mods
@MildlyInterested
MildlyInterested / arma_useful.md
Last active April 6, 2024 14:09
Arma useful things

Arma Preset Creator by ColinM

create HTML presets from steam collections (with a second, optional, mods collection)

https://armapresetcreator.co.uk/

PAA Converter in your Browser by Gruppe Adler

converts jpg, png to PAA and vise versa

@snakecase
snakecase / Beep on replay buffer save.lua
Last active July 4, 2024 07:09 — forked from upgradeQ/beep.lua
OBS Lua: Sound notification on replay buffer save [Windows]
local obs = obslua
local ffi = require("ffi")
local winmm = ffi.load("Winmm")
-- Put a sound of your choosing next to "Beep on replay save.lua" and don't forget to match its name either in code below or rename your file.
PROP_AUDIO_FILEPATH = script_path() .. "sound_npc_scanner_scanner_photo1.wav"
ffi.cdef[[
bool PlaySound(const char *pszSound, void *hmod, uint32_t fdwSound);
]]
@diwako
diwako / init.sqf
Created January 11, 2021 13:07
ace medical rewrite, make epi do way more
["ace_medical_treatment_medicationLocal", {
params ["_unit", "", "_classname"];
if (_classname == "Epinephrine") then {
// this guy dead or bleeding
if (!alive _unit || {
(_unit getVariable ["ace_medical_woundBleeding", 0]) > 0
}) exitWith {};
private _heartRate = _unit getVariable ["ace_medical_heartRate", 80];
private _blood = _unit getVariable ["ace_medical_bloodVolume", 6.0];
@veteran29
veteran29 / baseline_basic.cfg
Last active October 29, 2022 18:43
Arma 3 Basic.cfg experiments
// 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;
@BaerMitUmlaut
BaerMitUmlaut / MapOverlay.sqf
Created April 5, 2020 15:06
Overlays a picture over the whole map with the map still being usable
mission_fnc_mapOverlayCache = [] call CBA_fnc_createNamespace;
mission_fnc_mapOverlay = {
params ["_map"];
_map drawIcon [
getMissionPath "map.paa",
[1, 1, 1, 1],
[worldSize / 2, worldSize / 2, 0],
640 / ctrlMapScale _map,
640 / ctrlMapScale _map,

forAny

∃xC(x)

private _array = [1,2,3,4,5];
private _condition = {_x > 10};

_array findIf _condition != -1

"There is some X in _array such that X > 10."

// put this into your init.sqf like the filthy animal you are
["ace_medical_woundReceived", {
[{
params ["_unit", "_woundedHitPoint", "_receivedDamage", "", "_ammo"];
if (isPlayer _unit) exitWith {};
[_unit, _woundedHitPoint, _receivedDamage, _ammo call ace_medical_damage_fnc_getTypeOfDamage] call diw_medical_woundsHandlerAI;
},_this] call CBA_fnc_execNextFrame;
}] call CBA_fnc_addEventHandler;
diw_medical_woundsHandlerAI = {
if (!isServer) exitWith {};
private _dir = 90;
private _position = getPosASL thisTrigger;
_dir = -_dir - 90;
private _direction = [cos _dir, sin _dir, 0];
private _fnc_carpetBomber = {
params ["_position", "_direction"];
private _distance = 3000;
@X39
X39 / xml_fnc_parse.sqf
Created October 15, 2019 15:49
XML Parser
////////////////////////////////////////////////////////////////////////////
// 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: //