Skip to content

Instantly share code, notes, and snippets.

View commy2's full-sized avatar

commy2

View GitHub Profile
// init.sqf
["Plane", "InitPost", {
params ["_plane"];
if (side group driver _plane == east) then {
_plane flyInHeightASL 600;
};
}, nil, nil, true] call CBA_fnc_addClassEventHandler;
if (!isServer) exitWith {};
private _object = "Land_Ketchup_01_F" createVehicle position cameraOn;
[_object, {
params ["_object"];
_object setVariable ["RscAttributeDiaryRecord_texture", "a3\structures_f_epc\Items\Documents\Data\document_secret_01_co.paa"];
_object setVariable ["RscAttributeDiaryRecord", ["<_intelName>", localize "STR_iV_IntelText", ""]];
_object setVariable ["recipients", west];
_object call BIS_fnc_initIntelObject;
if (!isServer) exitWith {};
private _dir = getDir player;
private _position = aimPos player;
_dir = _dir + 90;
private _direction = [cos _dir, sin _dir, 0];
private _fnc_carpetBomber = {
params ["_position", "_direction"];
private _distance = 1000;
if (!isServer) exitWith {};
private _dir = 90;
private _position = getPosASL thisTrigger;
_dir = -_dir - 90;
private _direction = [cos _dir, sin _dir, 0];
private _fnc_carpetBomber = {
params ["_position", "_direction"];
private _distance = 3000;
0 spawn {
mission_text#0 ctrlSetText "banana";
sleep 10;
mission_text#0 ctrlSetText "apple";
};
isNil {
"mission_text" cutRsc ["RscTitleDisplayEmpty", "PLAIN", 0, false];
private _display = uiNamespace getVariable "RscTitleDisplayEmpty";
private _vignette = _display displayCtrl 1202;
_vignette ctrlShow false;
private _control = _display ctrlCreate ["RscLoadingText", -1];
private _width = safeZoneW * 0.2;
private _height = getNumber (configFile >> ctrlClassName _control >> "sizeEx");
params ["_object"];
_object removeAction 0;
private _rdmmoney = random [500, 1200, 1750];
[_rdmmoney] spawn {
params ["_rdmmoney"];
for "_i" from 1 to 10 do {
2 cutText ["Breaking ATM", "PLAIN"];
// script instance 1
_object = _this select 0;
_object removeAction 0;
private _rdmmoney = random [500, 1200, 1750];
[] spawn {
// script instance 2
for "_ia" from 1 to 10 do {
2 cutText ["Breaking ATM", "PLAIN"];
sleep 1;
private _dir = 180;
private _position = getPosASL thisTrigger;
private _direction = [cos _dir, sin _dir, 0];
private _fnc_carpetBomber = {
params ["_position", "_direction"];
private _distance = 3000;
private _height = 200;
private _speed = 200;
private _config = configFile >> "CfgVehicles" >> "CAManBase" >> "SoundInjured";
private _return = [];
_return pushBack "class CfgSounds {";
{
getArray _x params ["_voices", "_sounds1", "_sounds2", "_sounds3"];
{
private _voice = _x;