This file contains hidden or 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: BaerMitUmlaut | |
* Adds 2D and 3D UI drawing. | |
* | |
* Arguments: | |
* 0: Eden Display <DISPLAY> | |
* | |
* Return Value: | |
* None | |
*/ |
This file contains hidden or 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
#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; |
This file contains hidden or 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
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]]; |
This file contains hidden or 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
//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"]; |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import re | |
import os | |
import fnmatch | |
def parse(filePath): | |
fileHandleInput = open(filePath, "r") | |
firstLine = fileHandleInput.readline().strip() | |
if firstLine == "/*": |
NewerOlder