Skip to content

Instantly share code, notes, and snippets.

@BaerMitUmlaut
BaerMitUmlaut / fnc_onEdenDisplayLoad.sqf
Created October 19, 2016 21:27
Soil icon drawing test
/*
* Author: BaerMitUmlaut
* Adds 2D and 3D UI drawing.
*
* Arguments:
* 0: Eden Display <DISPLAY>
*
* Return Value:
* None
*/
@BaerMitUmlaut
BaerMitUmlaut / fn_findLoadableWeapon.sqf
Last active August 17, 2016 18:02
findLoadableWeapon draft
#include "..\script_component.hpp"
params ["_unit", "_magazine", ["_weapons", []], ["_magazines", []]];
if (_weapons isEqualTo []) then {
_weapons = [primaryWeapon _unit, handgunWeapon _unit, secondaryWeapon _unit];
_magazines = [primaryWeaponMagazine _unit, handgunMagazine _unit, secondaryWeaponMagazine _unit];
};
private _weapon = _weapons deleteAt 0;
private _loadedMagazines = _magazines deleteAt 0;
fn_suicideBomber = {
params ["_unit"];
private ["_expl1", "_expl2", "_expl3"];
_unit addItem "ACE_DeadManSwitch";
// - Code from KK ---------------------------------------------------------
_expl1 = "DemoCharge_Remote_Ammo" createVehicle (position player);
_expl1 attachTo [_unit, [-0.1,0.1,0.15],"Pelvis"];
_expl1 setVectorDirAndUp [[0.5,0.5,0],[-0.5,0.5,0]];
//PROOF OF CONCEPT
//Just put this in the initPlayerLocal.sqf, for MP you probably need to do some changes.
//Needs to be in scheduled environment - feel free to convert it to unscheduled.
_safeZones = [];
_dangerZones = [];
fncLightning = {
_pos = _this;
private ["_bolt", "_light", "_class", "_lightning", "_time"];
#!/usr/bin/env python3
import re
import os
import fnmatch
def parse(filePath):
fileHandleInput = open(filePath, "r")
firstLine = fileHandleInput.readline().strip()
if firstLine == "/*":