Skip to content

Instantly share code, notes, and snippets.

View Freddo3000's full-sized avatar
😐

Fredrik Falk Freddo3000

😐
View GitHub Profile
@Freddo3000
Freddo3000 / fn_initIEDs.sqf
Created November 13, 2020 18:07
Road IED script
// Initializes scripted IEDs
// Author: Freddo
// #define DEBUG
params ["_mines", ["_detonateRadius", 5], ["_ownedSide", east]];
private _statemachine = [_mines, true] call CBA_statemachine_fnc_create;
_statemachine setVariable ["FRD_ownedSide", _ownedSide];
_statemachine setVariable ["FRD_radius", _detonateRadius];
@Freddo3000
Freddo3000 / cup_contact_replacement.sqf
Last active October 10, 2019 16:03
Script to replace CUP buildings with Contact DLC equivalents
//Author: Freddo3000
//Description: Replaces CUP buildings with Contact DLC equivalents
//License: https://www.bohemia.net/community/licenses/arma-public-license-share-alike
//Usage: [] execVM "cup_contact_replacement.sqf";
if !(isServer) exitWith {};
#define REPLACE(OLDTYPE,NEWTYPE) case OLDTYPE: {[_x, NEWTYPE] call _fnc_replaceBuilding}
_fnc_replaceBuilding =
@Freddo3000
Freddo3000 / a3update.py
Last active April 6, 2024 21:52 — forked from marceldev89/a3update.py
Arma 3 Linux server and mod updater (workshop)
#!/usr/bin/python3
# MIT License
#
# Copyright (c) 2017 Marcel de Vries
#
# 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