Skip to content

Instantly share code, notes, and snippets.

//@file Name: manualCleanup.sqf
if (!isServer) exitWith{};
manualCleanup = {
_cleanList = _this;
_logmessage ="";
_logmessage = _logmessage + "*** BEFORE CLEANUP ***";
{
_logmessage = _logmessage + str [_x, count allMissionObjects _x];
@wiking-at
wiking-at / gist:c3ef07608f1b3dd51031
Created July 31, 2014 09:46
allmissionobjects ""
"["EmptyDetector"]"
"["Logic"]"
"["Land_HelipadEmpty_F"]"
"["Box_East_WpsSpecial_F"]"
"["Box_NATO_WpsSpecial_F"]"
"["Box_NATO_Wps_F"]"
"["Box_NATO_WpsSpecial_F"]"
"["Box_NATO_Wps_F"]"
"["Land_BagBunker_Small_F"]"
"["Box_East_Wps_F"]"
@wiking-at
wiking-at / c_applyPlayerData.sqf
Created August 28, 2014 14:54
BankMoney value migration
// @file Name: c_applyPlayerData.sqf
// @file Author: AgentRev
// This is where you load player status & inventory data which will be wiped upon death, for persistent variables use c_applyPlayerInfo.sqf instead
if (isDedicated) exitWith {};
private ["_data", "_name", "_value"];
_data = _this;
@wiking-at
wiking-at / ATM.sqf
Created August 28, 2014 16:23
Fix Display of Million Dollar values
private["_display","_text","_units","_type","_bankMoney","_playerMoney"];
disableSerialization;
_handle = createDialog "ATM_management";
_display = findDisplay 2700;
_text = _display displayCtrl 2701;
_units = _display displayCtrl 2703;
_bankMoney = player getVariable ["bmoney", 0];
_playerMoney = player getVariable ["cmoney", 0];
@wiking-at
wiking-at / config.sqf
Created August 28, 2014 16:25
Custom Territory Regions
// @file Version: 1.0
// @file Name: config.sqf
// @file Author: [404] Deadbeat, [404] Costlyy, [GoT] JoSchaap, AgentRev
// @file Created: 20/11/2012 05:13
// @file Description: Main config.
// For SERVER CONFIG, values are in server\init.sqf
// Towns and cities array
// Marker Name, Diameter, City Name
@wiking-at
wiking-at / s_loadAccount.sqf
Created August 29, 2014 15:35
Fix the Account load for two instances of Bankmoney
// @file Version: 1.0
// @file Name: s_loadAccount.sqf
// @file Author: AgentRev
// @file Created: 25/02/2014 22:21
if (!isServer) exitWith {};
private ["_UID", "_data", "_saveValid", "_getValue"];
_UID = _this;
// @file Version: 1.1
// @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
#define PRICE_RELATIONSHIP 4
private ["_params", "_action"];
// Parameters passed by the action
_params = _this select 3;
_action = _params select 0;
////////////////////////////////////////////////
// Handle actions
////////////////////////////////////////////////
switch (toLower _action) do
// @file Version: 1.1
// @file Name: spawnOnBeacons.sqf
// @file Author: [404] Costlyy, [GoT] JoSchaap, MercyfulFate, AgentRev
// @file Created: 08/12/2012 18:30
// @file Args:
private ["_beacon", "_pos", "_owner", "_preload", "_playerPos"];
_beacon = _this select 0;
_pos = _beacon select 0;
_owner = _beacon select 1;
@wiking-at
wiking-at / client\systems\hud\dialog\hud.hpp
Created September 28, 2014 21:34
Hud realignment for ATM
/*
@file Version: 1.0
@file Name: hud.hpp
@file Author: [404] Deadbeat, [KoS] Bewilderbeest
@file Created: 11/09/2012 04:23
@file Args:
*/
#define hud_status_idc 3600
#define hud_vehicle_idc 3601