Skip to content

Instantly share code, notes, and snippets.

Avatar

Dedmen Miller dedmen

View GitHub Profile
View cleanedUpScript.sqf
//Arma #scripting 03.03.2019 10:41
[] spawn {
private _Crates = nearestObjects [SearchObj, ["plp_ct_LockerBig"], 100];
private _weaponsArray = [];
private _magazineArray = [];
private _itemArray = [];
{
private _WeaponCargo = getWeaponCargo _x;
private _MagazineCargo = getMagazineCargo _x;
View ObjectEHs
13:10:19 "_this call UK3CB_BAF_Vehicles_LandRover_fnc_ContainerClosed_EH;"
13:10:19 "_this call UK3CB_BAF_Vehicles_Wildcat_fnc_engine_EH;"
13:10:19 "_this call UK3CB_BAF_Vehicles_Apache_fnc_engine_EH;"
13:10:19 "_this call UK3CB_BAF_Vehicles_Merlin_fnc_engine_EH;"
13:10:19 "_this call ace_common_fnc_handleEngine;"
13:10:19 "if (local driver (_this select 0)) then {_this call ace_vehicles_fnc_startEngine};;"
13:10:19 "_this call asr_ai3_hitreactions_fnc_handleExplosion;"
13:10:19 "_this call asr_ai3_hitreactions_fnc_handleExplosion;"
13:10:19 "_this call asr_ai3_hitreactions_fnc_handleExplosion;"
13:10:19 "_this call asr_ai3_hitreactions_fnc_handleExplosion;"
View CuriousScript#scripting_11_12_18.sqf
params ["_unit"];
//calc sun pos and set night/day time in map view
VKN_fnc_sunEval = { //TO-DO may wanna move this to CfgFunctions
private _lat = -1 * getNumber(configFile >> "CfgWorlds" >> worldName >> "latitude");
private _day = 360 * (dateToNumber date);
private _hour = acos ((24 * sin(_lat) * cos(_day)) / ((12 * cos(_day) - 78) * cos(_lat)));
_daytime = _hour / 360 * 24;
_daytime
};
View loadoutstest.cpp
This file has been truncated, but you can view the full file.
author = "[W] rufix";
onLoadName = "xru ZGM";
onLoadMission = "xru ZGM";
overviewText = "Zeus Guided Mission";
loadScreen = "";
class Header {
gameType = "Zeus";
minPlayers = 1;
maxPlayers = 128;
View armakebuild.cpp
https://github.com/dedmen/armake/blob/master/src/main.c
https://github.com/acemod/ACE3/blob/master/Makefile
class AceModuleOptions {
force = 1; //Force build
disableWarnings[] = {"unquoted-string", "redefinition-wo-undef"};
includeFolders[] = {"include"}; //local or global path. If local then relative to buildscript
target = "release/ace_<sourceName>.pbo";
//<sourceName> is auto replaced by the folder-/filename that IterateMainAddons provides
View Rhs 0.4.6 magazine wells.
class CfgMagazineWells
{
class STANAG_556x45
{
RHS_Magazines[] = {"rhs_mag_30Rnd_556x45_M855_Stanag", "rhs_mag_30Rnd_556x45_M855_Stanag_Tracer_Red", "rhs_mag_30Rnd_556x45_M855_Stanag_Tracer_Green", "rhs_mag_30Rnd_556x45_M855_Stanag_Tracer_Yellow", "rhs_mag_30Rnd_556x45_M855_Stanag_Tracer_Orange", "rhs_mag_30Rnd_556x45_M855A1_Stanag", "rhs_mag_30Rnd_556x45_M855A1_Stanag_No_Tracer", "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Green", "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Yellow", "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Orange", "rhs_mag_30Rnd_556x45_Mk318_Stanag", "rhs_mag_30Rnd_556x45_Mk262_Stanag", "rhs_mag_30Rnd_556x45_M200_Stanag", "rhs_mag_30Rnd_556x45_M855A1_PMAG", "rhs_mag_30Rnd_556x45_M855A1_PMAG_Tracer_Red", "rhs_mag_30Rnd_556x45_M855_PMAG", "rhs_mag_30Rnd_556x45_M855_PMAG_Tracer_Red", "rhs_mag_30Rnd_556x45_Mk318_PMAG", "rhs_mag_30Rnd_556x45_Mk262_PMAG", "rhs_mag_30Rnd_556x45_M855A1_PMAG_Tan", "rhs_mag_30Rnd_556x45_M855A1_PMAG_Tan_Tracer_R
View fnc_getPos dbg.sqf
private _fnc_scriptNameParent = if (isNil '_fnc_scriptName') then {'CBA_fnc_getPos'} else {_fnc_scriptName};
private _fnc_scriptName = 'CBA_fnc_getPos';
scriptName _fnc_scriptName;
#line 1 "\x\cba\addons\common\fnc_getPos.sqf [CBA_fnc_getPos]"
View fnc_getPos postfix
"#line 1 ""x\cba\addons\common\fnc_getPos.sqf""
#line 1 ""x\cba\addons\common\script_component.hpp""
#line 1 ""x\cba\addons\main\script_mod.hpp""
#line 1 ""x\cba\addons\main\script_version.hpp""
View Arma eventhandlers 1.82
Reloaded
Killed
Deleted
Hit
Engine
GetIn
GetOut
SeatSwitched
Take
Put
View fnc_currentUnit_after.sqf
"#line 1 ""x\cba\addons\common\fnc_currentUnit.sqf""
#line 1 ""x\cba\addons\common\script_component.hpp""
#line 1 ""x\cba\addons\main\script_mod.hpp""
You can’t perform that action at this time.