Skip to content

Instantly share code, notes, and snippets.

View AgentRev's full-sized avatar

Agent Revolution AgentRev

  • Canada
View GitHub Profile
@AgentRev
AgentRev / gist:1b83086753f4d307b538
Created July 27, 2014 06:09
fn_resupplyTruck.sqf
// @file Version: 1.0
// @file Name: fn_resupplyTruck.sqf
// @file Author: Wiking, AgentRev
// @file Created: 13/07/2014 21:58
#define RESUPPLY_TRUCK_DISTANCE 15
#define REARM_TIME_SLICE 10
#define REPAIR_TIME_SLICE 1
#define REFUEL_TIME_SLICE 1
@AgentRev
AgentRev / Get-BattlEyeGUID.ps1
Created October 16, 2014 22:58
SteamID64 to BattlEye GUID via PowerShell
Function Get-BattlEyeGUID ([string]$steamID64)
{
Try
{
$beBytes = [System.Text.Encoding]::ASCII.GetBytes("BE")
$idBytes = [System.BitConverter]::GetBytes([Int64]::Parse($steamID64))
$sb = New-Object System.Text.StringBuilder
$md5 = New-Object System.Security.Cryptography.MD5CryptoServiceProvider
$md5.ComputeHash($beBytes + $idBytes) | %{ [void] $sb.Append($_.ToString("x2")) }
@AgentRev
AgentRev / filterExecAttempt.sqf
Created October 17, 2014 03:29
filterExecAttempt.sqf for Zeus
// @file Version: 1.0
// @file Name: filterExecAttempt.sqf
// @file Author: AgentRev
// @file Created: 14/07/2013 13:10
if (!isServer) exitWith {};
private "_packetName";
_packetName = [_this, 0, "", [""]] call BIS_fnc_param;
@AgentRev
AgentRev / cameraChecks.sqf
Last active August 29, 2015 14:07
First Person Cam
// @file Name: cameraChecks.sqf
// @file Author: AgentRev
if (!hasInterface) exitWith {};
private ["_fpOnFoot", "_forceFP"];
_fpOnFoot = (difficultyEnabled "3rdPersonView" && ["A3W_firstPersonCamOnFoot"] call isConfigOn);
while {true} do
{
@AgentRev
AgentRev / lockDoorStuff.sqf
Last active August 29, 2015 14:11
Arma 3 door locking action - proof of concept
// Arma 3 door locking action - proof of concept by AgentRev
#define SCAN_DISTANCE 1
fn_eyeIntersectGeom =
{
private ["_target", "_distance", "_eyePos"];
_target = _this select 0;
_distance = _this select 1;
_eyePos = eyePos player;
@AgentRev
AgentRev / extdb-conf.ini
Created April 7, 2015 04:08
extDB v1 config file
[Main]
;Threads = 0
; Default Value is number of CPU Cores Detected
Randomize Config File = false
;This is a legacy option to randomize config file for Arma2 Servers.
Error Database Kill Server = true
;Kill ArmaServer if Database Connection Fails.
@AgentRev
AgentRev / loadAccount.sqf
Last active August 29, 2015 14:26
loadAccount.sqf - GearLevel for Mokey
// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
// @file Name: loadAccount.sqf
// @file Author: Torndeco, AgentRev
if (!isServer) exitWith {};
private ["_UID", "_bank", "_moneySaving", "_result", "_gearLevel", "_data", "_columns", "_dataTemp", "_ghostingTimer", "_secs"];
_UID = _this;
@AgentRev
AgentRev / applyPlayerInfo.sqf
Last active August 29, 2015 14:26
applyPlayerInfo.sqf - GearLevel for Mokey
// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
// @file Name: applyPlayerInfo.sqf
// @file Author: AgentRev
// This is where you load custom player variables that must persist between deaths
private ["_data", "_name", "_value"];
@AgentRev
AgentRev / spawnAction.sqf
Last active August 29, 2015 14:26
spawnAction.sqf - GearLevel for Mokey
// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
// @file Version: 1.0
// @file Name: spawnAction.sqf
// @file Author: [404] Deadbeat, [KoS] Bewilderbeest, AgentRev
// @file Created: 20/11/2012 05:19
// @file Args: [int(type of spawn)]
#define respawn_Content_Text 3401
@AgentRev
AgentRev / gist:6426982
Created September 3, 2013 17:32
All BIS_fnc's
BIS_fnc_3Dcredits
BIS_fnc_AAN
BIS_fnc_absSpeed
BIS_fnc_addClassOO
BIS_fnc_addCommMenuItem
BIS_fnc_addCurator
BIS_fnc_addEvidence
BIS_fnc_addRespawnPosition
BIS_fnc_addScriptedEventHandler
BIS_fnc_addSupportLink