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: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
@AgentRev
AgentRev / player_onPause.sqf
Created September 19, 2013 21:43
Abort button notice script
private["_display","_btnRespawn","_btnAbort","_timeOut","_timeMax","_isDead"];
disableSerialization;
waitUntil {
_display = findDisplay 49;
!isNull _display;
};
_btnRespawn = _display displayCtrl 1010;
_btnAbort = _display displayCtrl 104;
_btnRespawn ctrlEnable false;
_btnAbort ctrlEnable false;
@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 / npp-SQF.xml
Last active December 25, 2023 02:43
N++ SQF syntax highlighting - Arma 3 v1.38
<NotepadPlus>
<UserLang name="SQF" ext="sqf" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="yes" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00// 01 02 03/* 04*/</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@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;